summaryrefslogtreecommitdiff
path: root/lisp/progmodes/executable.el
diff options
context:
space:
mode:
authorGlenn Morris <rgm@gnu.org>2015-06-10 16:19:13 -0400
committerGlenn Morris <rgm@gnu.org>2015-06-10 16:19:13 -0400
commitdfa1dc1c2b05eff6336cfac0f36c6137b4a57733 (patch)
treefebade5c22d7d9669bad8b959e7bd8998f5c63d1 /lisp/progmodes/executable.el
parenta0f0f08a521d3119ab08da3c4f1697fd67092183 (diff)
downloademacs-dfa1dc1c2b05eff6336cfac0f36c6137b4a57733.tar.gz
* lisp/progmodes/executable.el (executable-self-display):
Use non-obsolete tail syntax. (Bug#20779) (executable-self-display): Doc update.
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 bdc6403c316..367a2e72d74 100644
--- a/lisp/progmodes/executable.el
+++ b/lisp/progmodes/executable.el
@@ -104,7 +104,7 @@ Typical values are 73 (+x) or -493 (rwxr-xr-x)."
(defvar executable-command nil)
(defcustom executable-self-display "tail"
- "Command you use with argument `+2' to make text files self-display.
+ "Command you use with argument `-n+2' to make text files self-display.
Note that the like of `more' doesn't work too well under Emacs \\[shell]."
:type 'string
:group 'executable)
@@ -258,7 +258,7 @@ The magic number of such a command displays all lines but itself."
(interactive)
(if (eq this-command 'executable-self-display)
(setq this-command 'executable-set-magic))
- (executable-set-magic executable-self-display "+2"))
+ (executable-set-magic executable-self-display "-n+2"))
;;;###autoload
(defun executable-make-buffer-file-executable-if-script-p ()