]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/progmodes/executable.el (executable-self-display):
authorGlenn Morris <rgm@gnu.org>
Wed, 10 Jun 2015 20:19:13 +0000 (16:19 -0400)
committerGlenn Morris <rgm@gnu.org>
Wed, 10 Jun 2015 20:19:13 +0000 (16:19 -0400)
Use non-obsolete tail syntax.  (Bug#20779)
(executable-self-display): Doc update.

lisp/progmodes/executable.el

index bdc6403c316d3bf9ded249a25dc0a68fd652bf9d..367a2e72d742cfdd2ef629a72a580f6118d5cbf8 100644 (file)
@@ -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 ()