summaryrefslogtreecommitdiff
path: root/lisp/obsolete/uncompress.el
diff options
context:
space:
mode:
authorJuanma Barranquero <lekktu@gmail.com>2005-05-09 00:34:58 +0000
committerJuanma Barranquero <lekktu@gmail.com>2005-05-09 00:34:58 +0000
commit3df029c708874303ae6039c1047751883c42a4d4 (patch)
tree75a090abbe0d1a5d3b117ccd8967d94313f95f8d /lisp/obsolete/uncompress.el
parent05d7f72fadc9d338f6407854567ea13c870255ec (diff)
downloademacs-3df029c708874303ae6039c1047751883c42a4d4.tar.gz
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'.
Diffstat (limited to 'lisp/obsolete/uncompress.el')
-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."
(goto-char (point-min))
(message "Uncompressing...done")
(set-buffer-modified-p nil)
- (make-local-variable 'write-file-hooks)
- (or (memq 'uncompress-backup-file write-file-hooks)
- (setq write-file-hooks (cons 'uncompress-backup-file write-file-hooks)))
+ (add-hook 'write-file-functions 'uncompress-backup-file nil t)
(normal-mode))
-(or (memq 'find-compressed-version find-file-not-found-hooks)
- (setq find-file-not-found-hooks
- (cons 'find-compressed-version find-file-not-found-hooks)))
+(add-hook 'find-file-not-found-functions 'find-compressed-version)
(defun find-compressed-version ()
"Hook to read and uncompress the compressed version of a file."