;ELC   
;;; Compiled by handa@melange.gnu.org on Thu Oct 23 21:19:16 1997
;;; from file /fs/gd/1/gnu/emacs/lisp/saveplace.el
;;; in Emacs version 20.2.3
;;; with bytecomp version 2.35
;;; with all optimizations.
;;; This file uses opcodes which do not exist in Emacs 18.

(if (and (boundp 'emacs-version)
	 (< (aref emacs-version (1- (length emacs-version))) ?A)
	 (or (and (boundp 'epoch::version) epoch::version)
	     (string-lessp emacs-version "19.29")))
    (error "`saveplace.el' was compiled for Emacs 19.29 or later"))


(custom-declare-group 'save-place nil "Automatically save place in files." :group 'data)
#@255 Alist of saved places to go back to when revisiting files.
Each element looks like (FILENAME . POSITION);
visiting file FILENAME goes automatically to position POSITION
rather than the beginning of the buffer.
This alist is saved between Emacs sessions.
(defvar save-place-alist nil (#$ . 626))
#@359 *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)
(custom-declare-variable 'save-place 'nil '(#$ . -928) :type 'boolean :group 'save-place)
(make-variable-buffer-local 'save-place)
#@58 *Name of the file that records `save-place-alist' value.
(custom-declare-variable 'save-place-file '(convert-standard-filename "~/.emacs-places") '(#$ . -1423) :type 'file :group 'save-place)
#@297 *Controls whether to make numbered backups of master save-place file.
It can have four values: t, nil, `never', and `nospecial'.  The first
three have the same meaning that they do for the variable
`version-control', and the final value `nospecial' means just use the
value of `version-control'.
(custom-declare-variable 'save-place-version-control 'nil '(#$ . -1622) :type '(radio (const :tag "Unconditionally" t) (const :tag "For VC Files" nil) (const never) (const :tag "Use value of `version-control'" nospecial)) :group 'save-place)
#@59 Non-nil means that the `save-place-file' has been loaded.
(defvar save-place-loaded nil (#$ . 2166))
#@70 Maximum number of entries to retain in the list; nil means no limit.
(custom-declare-variable 'save-place-limit 'nil '(#$ . 2273) :type '(choice (integer :tag "Entries" :value 1) (const :tag "No Limit" nil)) :group 'save-place)
#@428 Toggle whether to save your place in this file between sessions.
If this mode is enabled, point is recorded when you kill the buffer
or exit Emacs.  Visiting this file again will go to that position,
even in a later Emacs session.

If called with a prefix arg, the mode is enabled if and only if
the argument is positive.

To save places automatically in all files, put this in your `.emacs' file:

(setq-default save-place t)
(defalias 'toggle-save-place #[(&optional parg) "„\n ÁÂÃ \"‡\fƒ  ƒ ÆXƒ  ÁÇ!ˆÈ‰‡ÁÉ!ˆÊ‰‡" [buffer-file-name message "Buffer `%s' not visiting a file" buffer-name save-place parg 0 "No place will be saved in this file" nil "Place will be saved" t] 3 (#$ . 2508) "P"])
(defalias 'save-place-to-alist #[nil "„ Á ˆ\n…@ Ã\n\f\"Æ=„ `‚ Ç T‰	ƒ* Ê	\f\"…? ÌU?…? \nB\fB‰*‡" [save-place-loaded load-save-place-alist-from-file buffer-file-name assoc save-place-alist major-mode hexl-mode hexl-current-address position cell delq save-place 1] 4])
(defalias 'save-place-alist-to-file #[nil "À	!ŠÃÄ\n\"ˆÅÆ!qˆed|ˆÇ\n!ƒ È\n!ˆed|ˆebˆÉ\np\"ˆ„3 Ì‚K Í=ƒ> Í‚K Î=ƒJ ‚K ÐÑ\n!ˆÒp!ˆÃÓ\n\"+‡" [expand-file-name save-place-file file message "Saving places to %s..." get-buffer-create " *Saved Places*" file-readable-p insert-file-contents print save-place-alist save-place-version-control nil never nospecial version-control t write-file kill-buffer "Saving places to %s...done"] 3])
(defalias 'load-save-place-alist-from-file #[nil "?…w ÁÂ!Å\f!ƒu ŠÆÇ\"ˆÈÉ!qˆed|ˆÊ\f!ˆebˆËed{!@\fƒk ÎXƒA Ï\f‚k \fÐ‰ƒj Yƒ\\ Ï¡ˆ‚a TA‰„L *Óp!ˆÆÔ\f\"ˆ))Ï‡" [save-place-loaded t expand-file-name save-place-file file file-readable-p message "Loading places from %s..." get-buffer-create " *Saved Places*" insert-file-contents read-from-string save-place-alist save-place-limit 0 nil 1 count s kill-buffer "Loading places from %s...done"] 4])
(defalias 'save-places-to-alist #[nil "À 	… Š	@qˆ\nƒ Ã ˆ	A)‚ )‡" [buffer-list buf-list buffer-file-name save-place-to-alist] 1])
(defalias 'save-place-find-file-hook #[nil "„ Á ˆÂ\f\"‰… „ AbˆÇ‰)‡" [save-place-loaded load-save-place-alist-from-file assoc buffer-file-name save-place-alist cell after-find-file-from-revert-buffer t save-place] 4])
(defalias 'save-place-kill-emacs-hook #[nil "À ˆ	…	 Â ‡" [save-places-to-alist save-place-loaded save-place-alist-to-file] 1])
(byte-code "ÀÁÂÃ#ˆÀÄÅ\"ˆÀÆÇ\"ˆÈÉ!‡" [add-hook find-file-hooks save-place-find-file-hook t kill-emacs-hook save-place-kill-emacs-hook kill-buffer-hook save-place-to-alist provide saveplace] 4)
