aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuanma Barranquero2005-05-09 00:34:58 +0000
committerJuanma Barranquero2005-05-09 00:34:58 +0000
commitb6ad7253d24afd99678fd4aaea7c373f7ba8a5f8 (patch)
tree0a32e4d41e55ba2cc0b05207232943e0879cc97b
parenta4e03fe5e29a8af2e06ce65ecb5dd460cbd594bf (diff)
downloademacs-b6ad7253d24afd99678fd4aaea7c373f7ba8a5f8.tar.gz
emacs-b6ad7253d24afd99678fd4aaea7c373f7ba8a5f8.zip
Set `find-file-not-found-functions', not `find-file-not-found-hooks'; use
`add-hook'. (uncompress-while-visiting): Set `write-file-functions', not `write-file-hooks'; use `add-hook'.
-rw-r--r--lisp/obsolete/uncompress.el8
1 files changed, 2 insertions, 6 deletions
diff --git a/lisp/obsolete/uncompress.el b/lisp/obsolete/uncompress.el
index ac567be67b0..28ad5f06c7b 100644
--- a/lisp/obsolete/uncompress.el
+++ b/lisp/obsolete/uncompress.el
@@ -83,14 +83,10 @@ It then selects a major mode from the uncompressed file name and contents."
83 (goto-char (point-min)) 83 (goto-char (point-min))
84 (message "Uncompressing...done") 84 (message "Uncompressing...done")
85 (set-buffer-modified-p nil) 85 (set-buffer-modified-p nil)
86 (make-local-variable 'write-file-hooks) 86 (add-hook 'write-file-functions 'uncompress-backup-file nil t)
87 (or (memq 'uncompress-backup-file write-file-hooks)
88 (setq write-file-hooks (cons 'uncompress-backup-file write-file-hooks)))
89 (normal-mode)) 87 (normal-mode))
90 88
91(or (memq 'find-compressed-version find-file-not-found-hooks) 89(add-hook 'find-file-not-found-functions 'find-compressed-version)
92 (setq find-file-not-found-hooks
93 (cons 'find-compressed-version find-file-not-found-hooks)))
94 90
95(defun find-compressed-version () 91(defun find-compressed-version ()
96 "Hook to read and uncompress the compressed version of a file." 92 "Hook to read and uncompress the compressed version of a file."