Article View: gnu.emacs.bug
Article #1546Centering on read-only end-of-buffer
From: Stavros.Macrakis
Date: Fri, 31 Mar 1989 11:17
Date: Fri, 31 Mar 1989 11:17
14 lines
970 bytes
970 bytes
When you're using a read-only buffer, you presumably don't intend to
add anything to it. So you might as well make the screenful centered
on the end of buffer contain as much text as possible (rather than
leaving space at the end for appending). For this reason, I modify
C-v and M-> to have the following behavior:
(if (and buffer-read-only (eobp))
(recenter -1))
My version of C-v also does the following: (M-v is similar)
(condition-case () (scroll-up n)
(end-of-buffer (end-of-buffer)
(beep)))
I find the above behavior quite handy.
Technical Details
Message-ID:
<8903311117.AA02383@vega.crg.bull.fr>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!crg.bull.fr!Stavros.MacrakisShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!crg.bull.fr!Stavros.Macrakis From: Stavros.Macrakis@crg.bull.fr Newsgroups: gnu.emacs.bug Subject: Centering on read-only end-of-buffer Message-ID: <8903311117.AA02383@vega.crg.bull.fr> Date: 31 Mar 89 11:17:03 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 14