diff options
| author | Dave Love | 2000-06-09 09:42:05 +0000 |
|---|---|---|
| committer | Dave Love | 2000-06-09 09:42:05 +0000 |
| commit | 22ddd2994787b9c10332b5356c040ea06ee99027 (patch) | |
| tree | df071a2d6de4659012f38511dc56a675b9092d85 | |
| parent | 778e1d17edb36cc53fd7419436311f2e2bc622ff (diff) | |
| download | emacs-22ddd2994787b9c10332b5356c040ea06ee99027.tar.gz emacs-22ddd2994787b9c10332b5356c040ea06ee99027.zip | |
(after-save-hook): Customize, with
make-buffer-file-executable-if-script-p as an option.
| -rw-r--r-- | lisp/ChangeLog | 11 | ||||
| -rw-r--r-- | lisp/files.el | 7 |
2 files changed, 16 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 7cc7198b371..33c5f78f5d1 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,14 @@ | |||
| 1 | 2000-06-09 Dave Love <fx@gnu.org> | ||
| 2 | |||
| 3 | * executable.el: Byte compile dynamic. | ||
| 4 | (executable-insert): Change custom type. | ||
| 5 | (executable-find): Add autoload cookie. | ||
| 6 | (make-buffer-file-executable-if-script-p): New function. From | ||
| 7 | Noah Friedman. | ||
| 8 | |||
| 9 | * files.el (after-save-hook): Customize, with | ||
| 10 | make-buffer-file-executable-if-script-p as an option. | ||
| 11 | |||
| 1 | 2000-06-09 Kenichi Handa <handa@etl.go.jp> | 12 | 2000-06-09 Kenichi Handa <handa@etl.go.jp> |
| 2 | 13 | ||
| 3 | * ps-mule.el (ps-mule-font-info-database-bdf): Prefer the font | 14 | * ps-mule.el (ps-mule-font-info-database-bdf): Prefer the font |
diff --git a/lisp/files.el b/lisp/files.el index dfeefc1277e..a4e205c47f4 100644 --- a/lisp/files.el +++ b/lisp/files.el | |||
| @@ -2495,8 +2495,11 @@ the last real save, but optional arg FORCE non-nil means delete anyway." | |||
| 2495 | (defvar auto-save-hook nil | 2495 | (defvar auto-save-hook nil |
| 2496 | "Normal hook run just before auto-saving.") | 2496 | "Normal hook run just before auto-saving.") |
| 2497 | 2497 | ||
| 2498 | (defvar after-save-hook nil | 2498 | (defcustom after-save-hook nil |
| 2499 | "Normal hook that is run after a buffer is saved to its file.") | 2499 | "Normal hook that is run after a buffer is saved to its file." |
| 2500 | :options '(make-buffer-file-executable-if-script-p) | ||
| 2501 | :type 'hook | ||
| 2502 | :group 'files) | ||
| 2500 | 2503 | ||
| 2501 | (defvar save-buffer-coding-system nil | 2504 | (defvar save-buffer-coding-system nil |
| 2502 | "If non-nil, use this coding system for saving the buffer. | 2505 | "If non-nil, use this coding system for saving the buffer. |