]> git.eshelyaron.com Git - emacs.git/commitdiff
(executable-set-magic): Use make-local-hook for after-save-hook.
authorRichard M. Stallman <rms@gnu.org>
Mon, 28 Aug 1995 15:12:57 +0000 (15:12 +0000)
committerRichard M. Stallman <rms@gnu.org>
Mon, 28 Aug 1995 15:12:57 +0000 (15:12 +0000)
lisp/progmodes/executable.el

index 11dd54f1e7da10209e097479d59191efc5e8e268..c0b3e99c2270a6cd54478e1608953fa2fcb06845 100644 (file)
@@ -182,8 +182,8 @@ executable."
       (let ((point (point-marker))
            (buffer-modified-p (buffer-modified-p)))
        (goto-char (point-min))
-       (make-local-variable 'after-save-hook)
-       (add-hook 'after-save-hook 'executable-chmod)
+       (make-local-hook 'after-save-hook)
+       (add-hook 'after-save-hook 'executable-chmod nil t)
        (if (looking-at "#![ \t]*\\(.*\\)$")
            (and (goto-char (match-beginning 1))
                 (not (string= argument