From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: gnuist006@gmail.com Newsgroups: gmane.emacs.help Subject: Re: emacs does not record the position at which it opened a file Date: Sun, 19 Apr 2015 23:52:24 -0700 (PDT) Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1429512925 32129 80.91.229.3 (20 Apr 2015 06:55:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 20 Apr 2015 06:55:25 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Apr 20 08:55:18 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Yk5bx-0001xh-LL for geh-help-gnu-emacs@m.gmane.org; Mon, 20 Apr 2015 08:55:17 +0200 Original-Received: from localhost ([::1]:52030 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yk5bx-0005Vx-3N for geh-help-gnu-emacs@m.gmane.org; Mon, 20 Apr 2015 02:55:17 -0400 X-Received: by 10.66.224.73 with SMTP id ra9mr21959146pac.9.1429512744587; Sun, 19 Apr 2015 23:52:24 -0700 (PDT) X-Received: by 10.182.116.164 with SMTP id jx4mr100286obb.27.1429512744511; Sun, 19 Apr 2015 23:52:24 -0700 (PDT) Original-Path: usenet.stanford.edu!l13no7543422iga.0!news-out.google.com!n7ni11995igk.0!nntp.google.com!m20no4790675iga.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=108.82.94.28; posting-account=REkl4woAAABFXaU7nL79XtGpnmNCQ415 Original-NNTP-Posting-Host: 108.82.94.28 User-Agent: G2/1.0 Injection-Date: Mon, 20 Apr 2015 06:52:24 +0000 Original-Xref: usenet.stanford.edu gnu.emacs.help:211599 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:103880 Archived-At: On Sunday, April 19, 2015 at 6:18:25 PM UTC-7, Alexis wrote: > gnuist006@gmail.com writes: >=20 > > emacs does not record the position at which it opened a file. If=20 > > I move the cursor and then I say > > > > C-u SPC, there is "no mark set in this buffer"=20 > > > > 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)) >=20 > Perhaps you want `saveplace'? See the save-place-* variables for=20 > setup. >=20 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 saveplac= e and then after it, if I move the cursor and type C-u SPC, it will remembe= r 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 c= ase it gets it from saveplace. =20 > Alexis.