Mercurial > emacs
comparison lisp/saveplace.el @ 46899:f00337f04e78
Use find-file-hook instead of find-file-hooks.
author | Stefan Monnier <monnier@iro.umontreal.ca> |
---|---|
date | Thu, 15 Aug 2002 00:48:20 +0000 |
parents | 237849e2e2ac |
children | e88404e8f2cf |
comparison
equal
deleted
inserted
replaced
46898:0b0448a9c183 | 46899:f00337f04e78 |
---|---|
228 ;; Now save the alist in the file, if we have ever loaded the file | 228 ;; Now save the alist in the file, if we have ever loaded the file |
229 ;; (including just now). | 229 ;; (including just now). |
230 (if save-place-loaded | 230 (if save-place-loaded |
231 (save-place-alist-to-file))) | 231 (save-place-alist-to-file))) |
232 | 232 |
233 (add-hook 'find-file-hooks 'save-place-find-file-hook t) | 233 (add-hook 'find-file-hook 'save-place-find-file-hook t) |
234 | 234 |
235 (add-hook 'kill-emacs-hook 'save-place-kill-emacs-hook) | 235 (add-hook 'kill-emacs-hook 'save-place-kill-emacs-hook) |
236 | 236 |
237 (add-hook 'kill-buffer-hook 'save-place-to-alist) | 237 (add-hook 'kill-buffer-hook 'save-place-to-alist) |
238 | 238 |