summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1995-08-10 18:38:17 +0000
committerRichard M. Stallman <rms@gnu.org>1995-08-10 18:38:17 +0000
commit0ffb8952df3d69a42bae4d79506dfc5f7d84e1ca (patch)
tree7904b1986cf2644ccddfd645cdc062f5b474a770
parentb0a27ffd603e90db59799c4ed33a09eb880d7677 (diff)
downloademacs-0ffb8952df3d69a42bae4d79506dfc5f7d84e1ca.tar.gz
Comment change.
-rw-r--r--lisp/progmodes/executable.el11
1 files changed, 7 insertions, 4 deletions
diff --git a/lisp/progmodes/executable.el b/lisp/progmodes/executable.el
index 3711ec4f67a..3e92700da6b 100644
--- a/lisp/progmodes/executable.el
+++ b/lisp/progmodes/executable.el
@@ -21,10 +21,13 @@
;; the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
;;; Commentary:
-
-;; Provide or modify interpreter magic number for buffer, and make file
-;; executable if it isn't. Support code for the likes of sh-, awk-, perl-,
-;; tcl- or makefile-mode.
+;; This is support code for the likes of sh-, awk-, perl-, tcl- or
+;; makefile-mode. Those mode-setting commands can call the like of
+;; `(executable-set-magic "sh")' or `(executable-set-magic "perl" "-f")'.
+;; Unless the file name matches `executable-magicless-file-regexp' this will
+;; search $PATH if the given interpreter isn't absolute, and then insert a
+;; first line like `#! /bin/sh' or `#! /usr/local/bin/perl -f' and the file
+;; will be made executable as soon as it's saved if it wasn't.
;; Would someone please explain clearly what this is to be used for? -- rms.