comparison lisp/progmodes/executable.el @ 12818:3ef9f196e634

Comment change.
author Richard M. Stallman <rms@gnu.org>
date Thu, 10 Aug 1995 18:55:44 +0000
parents 9066b33175e6
children bc084caba958
comparison
equal deleted inserted replaced
12817:9066b33175e6 12818:3ef9f196e634
19 ;; You should have received a copy of the GNU General Public License 19 ;; You should have received a copy of the GNU General Public License
20 ;; along with GNU Emacs; see the file COPYING. If not, write to 20 ;; along with GNU Emacs; see the file COPYING. If not, write to
21 ;; the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. 21 ;; the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
22 22
23 ;;; Commentary: 23 ;;; Commentary:
24
25 ;; executable.el is used by certain major modes to insert a suitable
26 ;; #! line at the beginning of the file, if the file does not already
27 ;; have one.
28
24 ;; This is support code for the likes of sh-, awk-, perl-, tcl- or 29 ;; This is support code for the likes of sh-, awk-, perl-, tcl- or
25 ;; makefile-mode. Those mode-setting commands can call the like of 30 ;; makefile-mode. Those mode-setting commands can call the like of
26 ;; `(executable-set-magic "sh")' or `(executable-set-magic "perl" "-f")'. 31 ;; `(executable-set-magic "sh")' or `(executable-set-magic "perl" "-f")'.
27 ;; Unless the file name matches `executable-magicless-file-regexp' this will 32 ;; Unless the file name matches `executable-magicless-file-regexp' this will
28 ;; search $PATH if the given interpreter isn't absolute, and then insert a 33 ;; search $PATH if the given interpreter isn't absolute, and then insert a
29 ;; first line like `#! /bin/sh' or `#! /usr/local/bin/perl -f' and the file 34 ;; first line like `#! /bin/sh' or `#! /usr/local/bin/perl -f'.
30 ;; will be made executable as soon as it's saved if it wasn't. 35 ;; Also it makes the file executable as soon as it's saved, if it wasn't.
31
32 ;; Would someone please explain clearly what this is to be used for? -- rms.
33 36
34 ;;; Code: 37 ;;; Code:
35 38
36 (defvar executable-insert 'not-modified 39 (defvar executable-insert 'not-modified
37 "*What to do when newly found file has no or wrong magic number: 40 "*What to do when newly found file has no or wrong magic number: