;ELC ;;; compiled by kwzh@hal.gnu.ai.mit.edu on Mon Apr 17 19:50:06 1995 ;;; from file /gd/gnu/emacs/19.0/lisp/saveplace.el ;;; emacs version 19.28.90.26. ;;; bytecomp version FSF 2.10 ;;; optimization is on. ;;; this file uses opcodes which do not exist in Emacs 18. (if (and (boundp 'emacs-version) (or (and (boundp 'epoch::version) epoch::version) (string-lessp emacs-version "19"))) (error "`/gd/gnu/emacs/19.0/lisp/saveplace.el' was compiled for Emacs 19")) #@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 (#$ . 488)) #@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) (defvar save-place nil (#$ . -790)) (make-variable-buffer-local (quote save-place)) #@58 *Name of the file that records `save-place-alist' value. (defvar save-place-file "~/.emacs-places" (#$ . -1238)) #@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'. (defvar save-place-version-control (quote nospecial) (#$ . -1358)) #@59 Non-nil means that the `save-place-file' has been loaded. (defvar save-place-loaded nil (#$ . 1727)) #@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) "„\fÁÂÃÄ \"!‡ ƒ$ƒÇXƒ$ÁÈ!ˆÉ‰‡ÁÊ!ˆË‰‡" [buffer-file-name message format "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] 4 (#$ . 1835) "P"]) (defalias 'save-place-to-alist #[nil "„Á ˆ\n…&Ã\n\f\"‰ƒÆ \f\")…&\n`B\fB‰‡" [save-place-loaded load-save-place-alist-from-file buffer-file-name assoc save-place-alist cell delq save-place] 4]) (defalias 'save-place-alist-to-file #[nil "À !ŠÃÄÅ\n\"!ˆÆÇ!qˆed|ˆÈ\n!ƒÉ\n!ˆed|ˆebˆÊ p\"ˆ\f„5Í‚M\fÎ=ƒ@΂M\fÏ=ƒL‚MÑÒ\n!ˆÓp!ˆÃÄÔ\n\"!+‡" [expand-file-name save-place-file file message format "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."] 4]) (defalias 'load-save-place-alist-from-file #[nil "?…?Á !Å\f!ƒ=ŠÆÇÈ \"!ˆÉÊ!qˆed|ˆË\f!ˆebˆÌed{!@ Îp!ˆÆÇÏ\f\"!ˆ))Ї" [save-place-loaded t expand-file-name save-place-file file file-readable-p message format "Loading places from %s..." get-buffer-create " *Saved Places*" insert-file-contents read-from-string save-place-alist kill-buffer "Loading places from %s... done." nil] 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-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)