emacs-pretest-bug
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: fontified shell prompt not recognized


From: Luc Teirlinck
Subject: Re: fontified shell prompt not recognized
Date: Sat, 23 Apr 2005 17:15:36 -0500 (CDT)

Peter Dyballa wrote:

   My shell prompt looks like "pete 125 /\ " and I tried to beautify it in 
   customization. Now C-a on the command line does not stop at the 
   command's start but at line's beginning.

That is not a bug.  Some people prefer C-a to always go to the
beginning of the line, because one can always use C-c C-a to go to the
beginning of the input.

   The customization code is 
   approximately that:

'(comint-use-prompt-regexp-instead-of-fields t)

This one is the reason for the behavior.  The reason why C-a stops at
the beginning of the input when this variable is nil is due to the
field text property, which is not used if the variable is t.  If you
want to both set comint-use-prompt-regexp-instead-of-field to t and
have C-a move to the beginning of the input, you can just bind C-a to
comint-bol-or-process-mark.  (This is the command normally bound to
C-c C-a).

Sincerely,

Luc.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]