unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Dale Snell <ddsnell@frontier.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 18:46:15 -0700	[thread overview]
Message-ID: <20150419184615.34e9700b@zothique.localdomain> (raw)
In-Reply-To: <d339042b-1cb8-4ca5-ba9d-3c70a8314cbd@googlegroups.com>

[-- Attachment #1: Type: text/plain, Size: 1508 bytes --]

On Sun, 19 Apr 2015 17:19:36 -0700 (PDT), in message
d339042b-1cb8-4ca5-ba9d-3c70a8314cbd@googlegroups.com,
gnuist006@gmail.com wrote:

> emacs does not record the position at which it opened a file.

Indeed, by default it does not.  However, you can set it to do so.
See the EmacsWiki page:

    <http://www.emacswiki.org/emacs/SavePlace>

> If I
> move the cursor and then I say
> 
> C-u SPC, there is "no mark set in this buffer" 

C-u SPC should give you four spaces.  If it doesn't, you've got
something mis-configured somewhere.  C-x SPC sets the mark for
rectangle mode; C-SPC sets the mark.  

> I am sick of C-@ as I tend to forget.

Use C-SPC instead.

> Is there any remedy like this but it does not work, I tried
> 
> (set-mark-command nil)
> (set-mark-command (point))

"set-mark-command" is a function that is bound to a keystroke.  By
default, C-@ and C-SPC.  Either will work.

Have you gone through the Emacs tutorial?  If not, you should;
it's got lots of very useful information.  It's the first entry in
the "Help" menu, or available through "C-h t" if you don't use the
menus.  The Info manual is also very useful, especially the
Concept Index.

Hope this helps.

--Dale

-- 
+----------+  +----------+  +-----------+  +---------+  +-------+
| Space is |  | Space is |  | It's Hard |  | A Place |  | Burma |
|   Big    |  |   Dark   |  |  to Find  |  | to Park |  | Shave |
+----------+  +----------+  +-----------+  +---------+  +-------+

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 473 bytes --]

  parent reply	other threads:[~2015-04-20  1:46 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 [this message]
     [not found] ` <mailman.1141.1429492704.904.help-gnu-emacs@gnu.org>
2015-04-20  6:52   ` gnuist006
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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=20150419184615.34e9700b@zothique.localdomain \
    --to=ddsnell@frontier.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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).