all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: gnuist006@gmail.com
To: help-gnu-emacs@gnu.org
Subject: Re: emacs does not record the position at which it opened a file
Date: Sun, 19 Apr 2015 23:52:24 -0700 (PDT)	[thread overview]
Message-ID: <c4943651-5e94-414c-b014-45b4d17984b1@googlegroups.com> (raw)
In-Reply-To: <mailman.1141.1429492704.904.help-gnu-emacs@gnu.org>

On Sunday, April 19, 2015 at 6:18:25 PM UTC-7, Alexis wrote:
> gnuist006@gmail.com 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.



  parent reply	other threads:[~2015-04-20  6:52 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-20  0:19 emacs does not record the position at which it opened a file gnuist006
2015-04-20  1:18 ` Alexis
2015-04-20  1:46 ` Dale Snell
     [not found] ` <mailman.1141.1429492704.904.help-gnu-emacs@gnu.org>
2015-04-20  6:52   ` gnuist006 [this message]
2015-04-20 11:52     ` Yuri Khan
2015-04-20 15:48       ` gnu ist
2015-04-20 16:21         ` Yuri Khan
2015-04-21  2:41           ` gnu ist
2015-04-21 12:53             ` Stefan Monnier
     [not found]       ` <mailman.1189.1429544936.904.help-gnu-emacs@gnu.org>
2015-04-20 22:34         ` Barry Margolin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=c4943651-5e94-414c-b014-45b4d17984b1@googlegroups.com \
    --to=gnuist006@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.