help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: emacs does not record the position at which it opened a file


From: gnuist006
Subject: Re: emacs does not record the position at which it opened a file
Date: Sun, 19 Apr 2015 23:52:24 -0700 (PDT)
User-agent: G2/1.0

On Sunday, April 19, 2015 at 6:18:25 PM UTC-7, Alexis wrote:
> address@hidden writes:
> 
> > emacs does not record the position at which it opened a file. If 
> > I move the cursor and then I say
> >
> > C-u SPC, there is "no mark set in this buffer" 
> >
> > I am sick of C-@ as I tend to forget.
> >
> > Is there any remedy like this but it does not work, I tried
> >
> > (set-mark-command nil) (set-mark-command (point))
> 
> Perhaps you want `saveplace'? See the save-place-* variables for 
> setup.
> 

Thanks to both of you ... however, ~/.emacs-places or saveplace is not what I 
am looking for. This saves a place in between sessions. My old emacs has this 
feature that when I open a file, it goes to a place from the saveplace and then 
after it, if I move the cursor and type C-u SPC, it will remember the old place 
in that same session and possibly other locations it pushed into some kind of 
stack and go back in the reverse order based on C-u SPC.

The new latest emacs does not do that, unless before the first move of the 
cursor, I use C-@ to memorize it.

Suppose I forget the first C-@, then I have lost the original place unless I 
open the same file in a 2nd emacs before closing the first one in which case it 
gets it from saveplace.
 
> Alexis.



reply via email to

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