mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-06 03:40:56 -08:00
(executable-set-magic): Use make-local-hook for after-save-hook.
This commit is contained in:
parent
f067044f47
commit
fa75f22d59
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue