[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: default point ?
From: |
Tassilo Horn |
Subject: |
Re: default point ? |
Date: |
Wed, 29 Feb 2012 21:41:25 +0100 |
User-agent: |
Gnus/5.130004 (Ma Gnus v0.4) Emacs/24.0.93 (gnu/linux) |
Muhali <muhali@shaw.ca> writes:
> And sometimes I think GNU Emacs caches point and when I re-open the
> file the text cursor is at point where it was when I closed the before
> before...
I think, there's some confusion about files, buffers, and windows in
this thread. But for the case of finding a file anew, i.e., there's no
buffer for that file already, the saveplace library might restore the
last point position if enabled.
,----[ C-h v save-place RET ]
| save-place is a variable defined in `saveplace.el'.
| Its value is t
| Original value was nil
|
| Automatically becomes buffer-local when set in any fashion.
|
| Documentation:
| Non-nil means automatically save place in each file.
| This means when you visit a file, point goes to the last place
| where it was when you previously visited the same file.
| This variable is automatically buffer-local.
|
| If you wish your place in any file to always be automatically saved,
| simply put this in your `~/.emacs' file:
|
| (setq-default save-place t)
| (require 'saveplace)
|
| or else use the Custom facility to set this option.
`----
Bye,
Tassilo