;ELC   
;;; Compiled by pot@pot.cnuce.cnr.it on Tue Mar 18 15:51:56 2003
;;; from file /home/pot/gnu/emacs-pretest.new/lisp/saveplace.el
;;; in Emacs version 21.3
;;; with bytecomp version 2.85.4.1
;;; with all optimizations.

;;; This file uses dynamic docstrings, first added in Emacs 19.29.
(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 (#$ . 710))
#@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 '(#$ . -1012) :type 'boolean :require 'saveplace :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") '(#$ . -1528) :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 '(#$ . -1727) :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 (#$ . 2271))
#@70 Maximum number of entries to retain in the list; nil means no limit.
(custom-declare-variable 'save-place-limit 'nil '(#$ . 2378) :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) "\204\n \303\304\305 \"\207	\203  \n\203 \n\306X\203  \303\307!\210\310\211\207\303\311!\210\312\211\207" [buffer-file-name save-place parg message "Buffer `%s' not visiting a file" buffer-name 0 "No place will be saved in this file" nil "Place will be saved" t] 3 (#$ . 2613) "P"])
(defalias 'save-place-to-alist #[nil "\204 \306 \210	\205; \307	\n\"\310=\204 `\202 \311 T\211\203' \312\n\"\f\205: \f\313U?\205: 	\fB\nB\211*\207" [save-place-loaded buffer-file-name save-place-alist major-mode position cell load-save-place-alist-from-file assoc hexl-mode hexl-current-address delq 1 save-place] 4])
(defalias 'save-place-alist-to-file #[nil "\305!\212\306\307	\"\210\310\311!q\210ed|\210\312\np\"\210\204  \313\2025 \314=\203* \314\2025 \315=\2034 \f\2025 \316\317	!\210\320p!\210\306\321	\"+\207" [save-place-file file save-place-alist save-place-version-control version-control expand-file-name message "Saving places to %s..." get-buffer-create " *Saved Places*" print nil never nospecial t write-file kill-buffer "Saving places to %s...done"] 3])
(defalias 'load-save-place-alist-from-file #[nil "?\205m \306\307	!\310\n!\203k \212\311\312	\"\210\313\314!q\210ed|\210\315\n!\210eb\210\316ed{!@\f\203a \f\317X\203= \320\202a \321\211\203` \fY\203T \320\241\210\202W TA\211\204F *\322p!\210\311\323\n\"\210))\320\207" [save-place-loaded save-place-file file save-place-alist save-place-limit count t expand-file-name file-readable-p message "Loading places from %s..." get-buffer-create " *Saved Places*" insert-file-contents read-from-string 0 nil 1 kill-buffer "Loading places from %s...done" s] 4])
(defalias 'save-places-to-alist #[nil "\302 \205 \212@q\210	\203 \303 \210A)\202 )\207" [buf-list buffer-file-name buffer-list save-place-to-alist] 1])
(defalias 'save-place-find-file-hook #[nil "\204 \306 \210\307	\n\"\211\205 \f\204 Ab\210\310\211)\207" [save-place-loaded buffer-file-name save-place-alist cell after-find-file-from-revert-buffer save-place load-save-place-alist-from-file assoc t] 4])
(defalias 'save-place-kill-emacs-hook #[nil "\301 \210\205	 \302 \207" [save-place-loaded save-places-to-alist save-place-alist-to-file] 1])
(byte-code "\300\301\302\303#\210\300\304\305\"\210\300\306\307\"\210\310\311!\207" [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)
