aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes/executable.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/progmodes/executable.el')
-rw-r--r--lisp/progmodes/executable.el18
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 57This takes effect when you switch to certain major modes,
58 t insert or update magic number 58including Shell-script mode (`sh-mode').
59 other insert or update magic number, but mark as unmodified. 59When you type \\[executable-set-magic], it always offers to add or
60When the insertion is marked as unmodified, you can save it with \\[write-file] RET. 60update the magic number.")
61This variable is used when `executable-set-magic' is called as a function,
62e.g. when Emacs sets some Un*x interpreter script mode.
63With \\[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.
68When this is `function', only ask when called non-interactively.") 64When this is `function', only ask when called non-interactively.")
69 65
70 66