Article View: gnu.emacs.bug
Article #8769619.26 comint-mode C-a "misfeature" -- fix /// PRAISE (Mouse-modeline)
From: Martin Maechler
Date: Fri, 09 Sep 1994 11:48
Date: Fri, 09 Sep 1994 11:48
54 lines
2755 bytes
2755 bytes
19.26 comint-mode [i.e. shell-mode] C-a "misfeature" -- user fix :
Since installing Emacs 19.26 which went great,
I HAD to put the following in my .emacs (equivalent)
--- [otherwise I would go nuts...]
(add-hook
'comint-mode-hook
(function
(lambda ()
;;-- un-wise people removed this to \C-c\C-a in emacs-19.26,
;;-- even though with the following, you can use C-u C-a for 'beg.-line'
(define-key comint-mode-map "\C-a" 'comint-bol)
)))
This made things work okay, BUT NOT for 'shell'
---> because of a BUG IN shell.el
--------------- --> see my next posting for a patch !
The workaround for the BUG in shell.el ---for this situation only---
would be [[[ if can rather install the patch in the next msg!]]]
(add-hook
'shell-mode-hook
(function (lambda () (define-key shell-mode-map "\C-a" 'comint-bol))))
This makes emacs-19.26 backwards compatible to 19.x (x < 26) behavior of
comint based modes, like shell-mode [what you get by M-x shell].
This makes it also compatible to 'tcsh' behavior of C-a / C-e.....
NOTE: if you really must go BEFORE the prompt, you can always use C-u C-a,
but this is so RARE compared to the other case!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To end, also a user's PRAISE:
~~~~~~
The coolest new feature for me is
------------------------------- from NEWS "C-h n" ----------------
** You can now change the height of a window by pressing mouse-1 on
the mode line and dragging it up and down.
------------------------------- from NEWS "C-h n" ----------------
this is really just a NEAT idea ! --- and so useful !!
[I VERY often work with two visible buffers/windows]
--
Martin Maechler <maechler@stat.math.ethz.ch> <>< _
Seminar fuer Statistik, SOL F5 _| |_
ETH (Federal Inst. Technology) 8092 Zurich SWITZERLAND |_ _|
phone: x-41-1-632-3408 fax: ...-1086 |_|
Technical Details
Message-ID:
<199409091145.NAA12340@ingrid.ethz.ch>Path:
arc1-ca.pugleaf.net!nntp.gmd.de!Germany.EU.net!EU.net!howland.reston.ans.net!usenet.ins.cwru.edu!magnus.acs.ohio-state.edu!cis.ohio-state.edu!stat.math.ethz.CH!maechlerShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fb2f1,bf143e6d3161343d,start X-Google-Attributes: gidfb2f1,public X-Google-ArrivalTime: 1994-09-12 04:01:20 PST Path: arc1-ca.pugleaf.net!nntp.gmd.de!Germany.EU.net!EU.net!howland.reston.ans.net!usenet.ins.cwru.edu!magnus.acs.ohio-state.edu!cis.ohio-state.edu!stat.math.ethz.CH!maechler From: maechler@stat.math.ethz.CH (Martin Maechler) Newsgroups: gnu.emacs.bug Subject: 19.26 comint-mode C-a "misfeature" -- fix /// PRAISE (Mouse-modeline) Date: 9 Sep 1994 07:48:29 -0400 Organization: GNUs Not Usenet Lines: 54 Sender: daemon@cis.ohio-state.edu Approved: bug-gnu-emacs@prep.ai.mit.edu Distribution: gnu Message-ID: <199409091145.NAA12340@ingrid.ethz.ch> Reply-To: Martin Maechler <maechler@stat.math.ethz.ch>