🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.bug
Article #88032

saveplaces needs a before-revert-hook

#88032
From: Peter Moore
Date: Tue, 16 Aug 1994 04:48
23 lines
1401 bytes
In GNU Emacs 19.25.1 of Sun Aug 14 1994 on objy7 (sparc-sun-sunos4.1)

If you revert a buffer, the save-place-find-file-hook seems to run,
jumping the point to wherever you happened to have been at the last
kill buffer.  This is annoying.  The fix is to add

    (add-hook 'before-revert-hook 'save-place-to-alist)

to the set of hooks it already sets.

(If you wish to reproduce the behavior:

    visit a file that is at least a couple of screen fulls long
    go to the beginning of the file
    kill the buffer
    visit the file again
    move to the end of the file
    revert the buffer
    You are now back at the beginning of the file
)
    
    Peter Moore
    peter@objy.com
Technical Details
Message-ID: <9408160444.AA26321@objy7.objy.com>
Path: arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!redstone.interpath.net!ddsw1!panix!MathWorks.Com!yeshua.marcam.com!usc!math.ohio-state.edu!pacific.mps.ohio-state.edu!cis.ohio-state.edu!objy.COM!peter

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fb2f1,ec62ad24dfcc2dca,start
X-Google-Attributes: gidfb2f1,public
X-Google-ArrivalTime: 1994-08-15 22:26:18 PST
Path: arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!redstone.interpath.net!ddsw1!panix!MathWorks.Com!yeshua.marcam.com!usc!math.ohio-state.edu!pacific.mps.ohio-state.edu!cis.ohio-state.edu!objy.COM!peter
From: peter@objy.COM (Peter Moore)
Newsgroups: gnu.emacs.bug
Subject: saveplaces needs a before-revert-hook
Date: 16 Aug 1994 00:48:22 -0400
Organization: GNUs Not Usenet
Lines: 23
Sender: daemon@cis.ohio-state.edu
Approved: bug-gnu-emacs@prep.ai.mit.edu
Distribution: gnu
Message-ID: <9408160444.AA26321@objy7.objy.com>