Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 352063 - app-misc/screen: default screenrc tells emacs users to use C-p for command prefix which is previous-line command.
Summary: app-misc/screen: default screenrc tells emacs users to use C-p for command pr...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Sven Wegener
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-18 19:36 UTC by zach.flynn
Modified: 2011-01-23 20:15 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
patch for files/screenrc (screenrc.diff,392 bytes, patch)
2011-01-19 20:33 UTC, Ulrich Müller
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description zach.flynn 2011-01-18 19:36:23 UTC
While not a major issue, the default screenrc generated advises emacs users to switch from C-a to C-p as a command prefix.  C-p is used for moving up one line in emacs making it an extremely common command.  I propose changing that advice to something else (I use C-L--not a capital, just to distinguish it from one).

Reproducible: Always

Steps to Reproduce:
1. emerge screen
2. emacs /etc/screenrc 
3. be advised to map C-p to command if using emacs.



Actual Results:  
Advised to use C-p if using emacs.

Expected Results:  
Be advised to choose a command that is not commonly used in emacs.
Comment 1 Ulrich Müller gentoo-dev 2011-01-19 18:33:34 UTC
C-l isn't much better as a choice because it's also bound to an Emacs command. I'm using C-^ since a long time, i.e. in screenrc the line would be:

   escape ^^^^

That's also what is recommended in EmacsWiki: <http://www.emacswiki.org/emacs/GnuScreen>
Comment 2 zach.flynn 2011-01-19 20:26:58 UTC
Yeah, that's true.  I should have mentioned that I bound it to that one because I never use that command.  Also, since I am usually on my netbook, C-^ is, for me, only accessible through C-S-6 (the benefit of C-l being I can keep my hand on home row while switching).  Still, you are right.  Definitely a better recommendation in the config file would be C-^ as that interferes with no one's preferences.

(In reply to comment #1)
> C-l isn't much better as a choice because it's also bound to an Emacs command.
> I'm using C-^ since a long time, i.e. in screenrc the line would be:
> 
>    escape ^^^^
> 
> That's also what is recommended in EmacsWiki:
> <http://www.emacswiki.org/emacs/GnuScreen>
> 

Comment 3 Ulrich Müller gentoo-dev 2011-01-19 20:33:23 UTC
Created attachment 260287 [details, diff]
patch for files/screenrc

Trivial patch attached.
@swegener, shell-tools: Shall I commit this for you?
Comment 4 Sven Wegener gentoo-dev 2011-01-23 20:15:10 UTC
Commited.