-;;; saveplace.el --- automatically save place in files.
+;;; saveplace.el --- automatically save place in files
-;; Copyright (C) 1993, 1994 Free Software Foundation, Inc.
+;; Copyright (C) 1993, 1994, 2001 Free Software Foundation, Inc.
;; Author: Karl Fogel <kfogel@red-bean.com>
;; Maintainer: FSF
\(setq-default save-place t\)"
:type 'boolean
+ :require 'saveplace
:group 'save-place)
(make-variable-buffer-local 'save-place)
(delete-region (point-min) (point-max))
(insert-file-contents file)
(goto-char (point-min))
- (setq save-place-alist
+ (setq save-place-alist
(car (read-from-string
(buffer-substring (point-min) (point-max)))))
(setcdr s nil)
(setq count (1+ count)))
(setq s (cdr s))))))
-
+
(kill-buffer (current-buffer))
(message "Loading places from %s...done" file)))
nil))))
(if save-place-loaded
(save-place-alist-to-file)))
-(add-hook 'find-file-hooks 'save-place-find-file-hook t)
+(add-hook 'find-file-hook 'save-place-find-file-hook t)
(add-hook 'kill-emacs-hook 'save-place-kill-emacs-hook)
(provide 'saveplace) ; why not...
+;;; arch-tag: 3c2ef47b-0a22-4558-b116-118c9ef454a0
;;; saveplace.el ends here
-