;ELC ;;; compiled by jwz@thalidomide on Mon Dec 27 18:34:24 1993 ;;; from file /th/jwz/emacs19/lisp/packages/saveplace.el ;;; emacs version 19.9 Lucid (beta6). ;;; bytecomp version 2.22; 22-dec-93. ;;; 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 "This file was compiled for Emacs 19.")) (defvar save-place-alist nil "\ 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 nil "\ *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)") (make-variable-buffer-local 'save-place) (defvar save-place-file "~/.emacs-places" "\ *Name of the file that records `save-place-alist' value.") (defvar save-place-loaded nil "\ Non-nil means that the `save-place-file' has been loaded.") (fset 'toggle-save-place #[(&optional parg) "¬ˆÁÂÃÄ \"!‡ «’«†Ç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 "\ 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)" "P"]) (byte-code "ÀÁMˆÂÃMˆÄÅMˆÆÇMˆÈÉÊ\"ˆÈËÌ\"ˆÈÍÀ\"ˆÎÏ!‡" [save-place-to-alist #[nil "¬ƒÁ ˆ\n­™Ã\n \"‰«…Æ \")­‡\n`B B‰‡" [save-place-loaded load-save-place-alist-from-file buffer-file-name assoc save-place-alist cell delq save-place] 4] save-place-alist-to-file #[nil "À !ŠÃÄÅ\n\"!ˆÆÇ!qˆed|ˆÈ\n!«„É\n!ˆed|ˆebˆÊ p\"ˆÌ\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 write-file kill-buffer "Saving places to %s... done."] 4] load-save-place-alist-from-file #[nil "?­¹Á !Å !«¬ŠÆÇÈ \"!ˆÉÊ!qˆed|ˆË !ˆebˆÌed{!@ Îp!ˆÆÇÏ \"!ˆ))Ї" [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] save-places-to-alist #[nil "À  ­‘Š @qˆ\n«ƒÃ ˆ A)ªl)‡" [buffer-list buf-list buffer-file-name save-place-to-alist] 1] add-hook find-file-hooks #[nil "¬ƒÁ ˆÂ \"‰­ˆ AbˆÆ‰)‡" [save-place-loaded load-save-place-alist-from-file assoc buffer-file-name save-place-alist cell t save-place] 4] kill-emacs-hook #[nil "À ˆÁ ‡" [save-places-to-alist save-place-alist-to-file] 1] kill-buffer-hook provide saveplace] 3)