diff options
| author | Richard M. Stallman | 1997-04-12 03:18:33 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1997-04-12 03:18:33 +0000 |
| commit | bbf5eb2805e13c8e93f512c678054654c0917100 (patch) | |
| tree | 3f3d728b0c8e5c7f7988e6265575f918f6a6539d /lisp/progmodes/executable.el | |
| parent | 124c852b0a825f7e64e41e4b137fc693060b3c19 (diff) | |
| download | emacs-bbf5eb2805e13c8e93f512c678054654c0917100.tar.gz emacs-bbf5eb2805e13c8e93f512c678054654c0917100.zip | |
Add defgroup's; use defcustom for user vars.
Diffstat (limited to 'lisp/progmodes/executable.el')
| -rw-r--r-- | lisp/progmodes/executable.el | 46 |
1 files changed, 33 insertions, 13 deletions
diff --git a/lisp/progmodes/executable.el b/lisp/progmodes/executable.el index 62d6f59fbbb..42d16cbdb5e 100644 --- a/lisp/progmodes/executable.el +++ b/lisp/progmodes/executable.el | |||
| @@ -52,39 +52,59 @@ | |||
| 52 | 52 | ||
| 53 | ;;; Code: | 53 | ;;; Code: |
| 54 | 54 | ||
| 55 | (defvar executable-insert t | 55 | (defgroup executable nil |
| 56 | "Base functionality for executable interpreter scripts" | ||
| 57 | :group 'processes) | ||
| 58 | |||
| 59 | (defcustom executable-insert 'other | ||
| 56 | "*Non-nil means offer to add a magic number to a file. | 60 | "*Non-nil means offer to add a magic number to a file. |
| 57 | This takes effect when you switch to certain major modes, | 61 | This takes effect when you switch to certain major modes, |
| 58 | including Shell-script mode (`sh-mode'). | 62 | including Shell-script mode (`sh-mode'). |
| 59 | When you type \\[executable-set-magic], it always offers to add or | 63 | When you type \\[executable-set-magic], it always offers to add or |
| 60 | update the magic number.") | 64 | update the magic number." |
| 65 | :type '(choice (const :tag "off" nil) | ||
| 66 | (const :tag "on" t) | ||
| 67 | symbol) | ||
| 68 | :group 'executable) | ||
| 61 | 69 | ||
| 62 | (defvar executable-query 'function | ||
| 63 | "*If non-nil, ask user before changing an existing magic number. | ||
| 64 | When this is `function', only ask when called non-interactively.") | ||
| 65 | 70 | ||
| 71 | (defcustom executable-query 'function | ||
| 72 | "*If non-nil, ask user before changing an existing magic number. | ||
| 73 | When this is `function', only ask when called non-interactively." | ||
| 74 | :type '(choice (const :tag "Don't Ask" nil) | ||
| 75 | (const :tag "Ask" t) | ||
| 76 | (const :tag "Ask when non-interactive" function)) | ||
| 77 | :group 'executable) | ||
| 66 | 78 | ||
| 67 | (defvar executable-magicless-file-regexp "/[Mm]akefile$\\|/\\.\\(z?profile\\|bash_profile\\|z?login\\|bash_login\\|z?logout\\|bash_logout\\|.+shrc\\|esrc\\|rcrc\\|[kz]shenv\\)$" | ||
| 68 | "*On files with this kind of name no magic is inserted or changed.") | ||
| 69 | 79 | ||
| 80 | (defcustom executable-magicless-file-regexp "/[Mm]akefile$\\|/\\.\\(z?profile\\|bash_profile\\|z?login\\|bash_login\\|z?logout\\|bash_logout\\|.+shrc\\|esrc\\|rcrc\\|[kz]shenv\\)$" | ||
| 81 | "*On files with this kind of name no magic is inserted or changed." | ||
| 82 | :type 'regexp | ||
| 83 | :group 'executable) | ||
| 70 | 84 | ||
| 71 | (defvar executable-prefix "#! " | ||
| 72 | "*Interpreter magic number prefix inserted when there was no magic number.") | ||
| 73 | 85 | ||
| 86 | (defcustom executable-prefix "#! " | ||
| 87 | "*Interpreter magic number prefix inserted when there was no magic number." | ||
| 88 | :type 'string | ||
| 89 | :group 'executable) | ||
| 74 | 90 | ||
| 75 | 91 | ||
| 76 | (defvar executable-chmod 73 | 92 | (defcustom executable-chmod 73 |
| 77 | "*After saving, if the file is not executable, set this mode. | 93 | "*After saving, if the file is not executable, set this mode. |
| 78 | This mode passed to `set-file-modes' is taken absolutely when negative, or | 94 | This mode passed to `set-file-modes' is taken absolutely when negative, or |
| 79 | relative to the files existing modes. Do nothing if this is nil. | 95 | relative to the files existing modes. Do nothing if this is nil. |
| 80 | Typical values are 73 (+x) or -493 (rwxr-xr-x).") | 96 | Typical values are 73 (+x) or -493 (rwxr-xr-x)." |
| 97 | :type 'integer | ||
| 98 | :group 'executable) | ||
| 81 | 99 | ||
| 82 | 100 | ||
| 83 | (defvar executable-command nil) | 101 | (defvar executable-command nil) |
| 84 | 102 | ||
| 85 | (defvar executable-self-display "tail" | 103 | (defcustom executable-self-display "tail" |
| 86 | "*Command you use with argument `+2' to make text files self-display. | 104 | "*Command you use with argument `+2' to make text files self-display. |
| 87 | Note that the like of `more' doesn't work too well under Emacs \\[shell].") | 105 | Note that the like of `more' doesn't work too well under Emacs \\[shell]." |
| 106 | :type 'string | ||
| 107 | :group 'executable) | ||
| 88 | 108 | ||
| 89 | 109 | ||
| 90 | (defvar executable-font-lock-keywords | 110 | (defvar executable-font-lock-keywords |