(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 11dd54f..c0b3e99 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