Mercurial > emacs
comparison lisp/progmodes/executable.el @ 12817:9066b33175e6
Comment change.
| author | Richard M. Stallman <rms@gnu.org> |
|---|---|
| date | Thu, 10 Aug 1995 18:38:17 +0000 |
| parents | 39e721f1681f |
| children | 3ef9f196e634 |
comparison
equal
deleted
inserted
replaced
| 12816:7a19739bd181 | 12817:9066b33175e6 |
|---|---|
| 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 | 24 ;; This is support code for the likes of sh-, awk-, perl-, tcl- or |
| 25 ;; Provide or modify interpreter magic number for buffer, and make file | 25 ;; makefile-mode. Those mode-setting commands can call the like of |
| 26 ;; executable if it isn't. Support code for the likes of sh-, awk-, perl-, | 26 ;; `(executable-set-magic "sh")' or `(executable-set-magic "perl" "-f")'. |
| 27 ;; tcl- or makefile-mode. | 27 ;; 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 | |
| 29 ;; first line like `#! /bin/sh' or `#! /usr/local/bin/perl -f' and the file | |
| 30 ;; will be made executable as soon as it's saved if it wasn't. | |
| 28 | 31 |
| 29 ;; Would someone please explain clearly what this is to be used for? -- rms. | 32 ;; Would someone please explain clearly what this is to be used for? -- rms. |
| 30 | 33 |
| 31 ;;; Code: | 34 ;;; Code: |
| 32 | 35 |
