Article View: gnu.emacs.bug
Article #8760319.26: comint C-a suggestion
From: Walt Buehring
Date: Sat, 10 Sep 1994 22:21
Date: Sat, 10 Sep 1994 22:21
19 lines
1400 bytes
1400 bytes
I noticed the following in etc/NEWS for 19.26
** In Shell mode and other comint modes, C-a has now returned to
its ordinary meaning: move to the beginning of the line.
Use C-c C-a to move to the end of the prompt.
I agree the previous behavior was undesirable. The following, bound
via comint-mode-hook, has always worked flawlessly for me:
(defun beginning-of-input ()
"If within command input area, move point to start of input.
Otherwise just do beginning-of-line."
(interactive)
(let* ((proc (get-buffer-process (current-buffer)))
(p (and proc (marker-position (process-mark proc)))))
(if (and p (> (point) p))
(goto-char p)
(call-interactively 'beginning-of-line))))
Technical Details
Message-ID:
<9409100854.AA04021@nil.intellection.com>Path:
arc1-ca.pugleaf.net!nntp.gmd.de!xlink.net!fauern!gs.dfn.de!news.dfn.de!Germany.EU.net!EU.net!howland.reston.ans.net!math.ohio-state.edu!pacific.mps.ohio-state.edu!cis.ohio-state.edu!i2.COM!waltShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fb2f1,7872d66ef011a012,start X-Google-Attributes: gidfb2f1,public X-Google-ArrivalTime: 1994-09-12 06:25:49 PST Path: arc1-ca.pugleaf.net!nntp.gmd.de!xlink.net!fauern!gs.dfn.de!news.dfn.de!Germany.EU.net!EU.net!howland.reston.ans.net!math.ohio-state.edu!pacific.mps.ohio-state.edu!cis.ohio-state.edu!i2.COM!walt From: walt@i2.COM (Walt Buehring) Newsgroups: gnu.emacs.bug Subject: 19.26: comint C-a suggestion Date: 10 Sep 1994 18:21:51 -0400 Organization: GNUs Not Usenet Lines: 20 Sender: daemon@cis.ohio-state.edu Approved: bug-gnu-emacs@prep.ai.mit.edu Distribution: gnu Message-ID: <9409100854.AA04021@nil.intellection.com>