diff options
Diffstat (limited to 'lisp/progmodes/executable.el')
| -rw-r--r-- | lisp/progmodes/executable.el | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/lisp/progmodes/executable.el b/lisp/progmodes/executable.el index 27dd1799f01..62d6f59fbbb 100644 --- a/lisp/progmodes/executable.el +++ b/lisp/progmodes/executable.el | |||
| @@ -52,19 +52,15 @@ | |||
| 52 | 52 | ||
| 53 | ;;; Code: | 53 | ;;; Code: |
| 54 | 54 | ||
| 55 | (defvar executable-insert 'not-modified | 55 | (defvar executable-insert t |
| 56 | "*What to do when newly found file has no or wrong magic number: | 56 | "*Non-nil means offer to add a magic number to a file. |
| 57 | nil do nothing | 57 | This takes effect when you switch to certain major modes, |
| 58 | t insert or update magic number | 58 | including Shell-script mode (`sh-mode'). |
| 59 | other insert or update magic number, but mark as unmodified. | 59 | When you type \\[executable-set-magic], it always offers to add or |
| 60 | When the insertion is marked as unmodified, you can save it with \\[write-file] RET. | 60 | update the magic number.") |
| 61 | This variable is used when `executable-set-magic' is called as a function, | ||
| 62 | e.g. when Emacs sets some Un*x interpreter script mode. | ||
| 63 | With \\[executable-set-magic], this is always treated as if it were `t'.") | ||
| 64 | |||
| 65 | 61 | ||
| 66 | (defvar executable-query 'function | 62 | (defvar executable-query 'function |
| 67 | "*If non-`nil', ask user before inserting or changing magic number. | 63 | "*If non-nil, ask user before changing an existing magic number. |
| 68 | When this is `function', only ask when called non-interactively.") | 64 | When this is `function', only ask when called non-interactively.") |
| 69 | 65 | ||
| 70 | 66 | ||