aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes/executable.el
diff options
context:
space:
mode:
authorRichard M. Stallman <[email protected]>1995-08-28 15:12:57 +0000
committerRichard M. Stallman <[email protected]>1995-08-28 15:12:57 +0000
commitfa75f22d5931fa85b48ddf6e8fa1f483dacd0db9 (patch)
tree6e6eceae6c87d99548e17ddf8fe2fe4f020d8890 /lisp/progmodes/executable.el
parentf067044f476426b64f1444b82acc8d7911133550 (diff)
(executable-set-magic): Use make-local-hook for after-save-hook.
Diffstat (limited to 'lisp/progmodes/executable.el')
-rw-r--r--lisp/progmodes/executable.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/progmodes/executable.el b/lisp/progmodes/executable.el
index 11dd54f1e7..c0b3e99c22 100644
--- a/lisp/progmodes/executable.el
+++ b/lisp/progmodes/executable.el
@@ -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