diff options
| author | Richard M. Stallman | 1997-04-13 07:51:54 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1997-04-13 07:51:54 +0000 |
| commit | 00ed33e7ab1f430e43aeff27c3aa767590b2207e (patch) | |
| tree | c0cb9b1be105cea21a951f8a31a5a654feeb62c8 | |
| parent | d61140e89d8800ae17aef48fe5d97941ad005a87 (diff) | |
| download | emacs-00ed33e7ab1f430e43aeff27c3aa767590b2207e.tar.gz emacs-00ed33e7ab1f430e43aeff27c3aa767590b2207e.zip | |
Add defgroup; use defcustom for user vars.
| -rw-r--r-- | lisp/avoid.el | 30 | ||||
| -rw-r--r-- | lisp/completion.el | 67 | ||||
| -rw-r--r-- | lisp/hexl.el | 35 | ||||
| -rw-r--r-- | lisp/mail/smtpmail.el | 45 | ||||
| -rw-r--r-- | lisp/man.el | 67 | ||||
| -rw-r--r-- | lisp/progmodes/cmacexp.el | 33 | ||||
| -rw-r--r-- | lisp/textmodes/page-ext.el | 53 |
7 files changed, 231 insertions, 99 deletions
diff --git a/lisp/avoid.el b/lisp/avoid.el index c1bd595f146..48f0914f163 100644 --- a/lisp/avoid.el +++ b/lisp/avoid.el | |||
| @@ -69,27 +69,41 @@ | |||
| 69 | 69 | ||
| 70 | (provide 'avoid) | 70 | (provide 'avoid) |
| 71 | 71 | ||
| 72 | (defgroup avoid nil | ||
| 73 | "Make mouse pointer stay out of the way of editing." | ||
| 74 | :prefix "mouse-avoidance-" | ||
| 75 | :group 'mouse) | ||
| 76 | |||
| 77 | |||
| 72 | (defvar mouse-avoidance-mode nil | 78 | (defvar mouse-avoidance-mode nil |
| 73 | "Value is t or a symbol if the mouse pointer should avoid the cursor. | 79 | "Value is t or a symbol if the mouse pointer should avoid the cursor. |
| 74 | See function `mouse-avoidance-mode' for possible values. Changing this | 80 | See function `mouse-avoidance-mode' for possible values. Changing this |
| 75 | variable is NOT the recommended way to change modes; use that function | 81 | variable is NOT the recommended way to change modes; use that function |
| 76 | instead.") | 82 | instead.") |
| 77 | 83 | ||
| 78 | (defvar mouse-avoidance-nudge-dist 15 | 84 | (defcustom mouse-avoidance-nudge-dist 15 |
| 79 | "*Average distance that mouse will be moved when approached by cursor. | 85 | "*Average distance that mouse will be moved when approached by cursor. |
| 80 | Only applies in mouse-avoidance-mode `jump' and its derivatives. | 86 | Only applies in mouse-avoidance-mode `jump' and its derivatives. |
| 81 | For best results make this larger than `mouse-avoidance-threshold'.") | 87 | For best results make this larger than `mouse-avoidance-threshold'." |
| 88 | :type 'integer | ||
| 89 | :group 'avoid) | ||
| 82 | 90 | ||
| 83 | (defvar mouse-avoidance-nudge-var 10 | 91 | (defcustom mouse-avoidance-nudge-var 10 |
| 84 | "*Variability of `mouse-avoidance-nudge-dist' (which see).") | 92 | "*Variability of `mouse-avoidance-nudge-dist' (which see)." |
| 93 | :type 'integer | ||
| 94 | :group 'avoid) | ||
| 85 | 95 | ||
| 86 | (defvar mouse-avoidance-animation-delay .01 | 96 | (defcustom mouse-avoidance-animation-delay .01 |
| 87 | "Delay between animation steps, in seconds.") | 97 | "Delay between animation steps, in seconds." |
| 98 | :type 'number | ||
| 99 | :group 'avoid) | ||
| 88 | 100 | ||
| 89 | (defvar mouse-avoidance-threshold 5 | 101 | (defcustom mouse-avoidance-threshold 5 |
| 90 | "*Mouse-pointer's flight distance. | 102 | "*Mouse-pointer's flight distance. |
| 91 | If the cursor gets closer than this, the mouse pointer will move away. | 103 | If the cursor gets closer than this, the mouse pointer will move away. |
| 92 | Only applies in mouse-avoidance-modes `animate' and `jump'.") | 104 | Only applies in mouse-avoidance-modes `animate' and `jump'." |
| 105 | :type 'integer | ||
| 106 | :group 'avoid) | ||
| 93 | 107 | ||
| 94 | ;; Internal variables | 108 | ;; Internal variables |
| 95 | (defvar mouse-avoidance-state nil) | 109 | (defvar mouse-avoidance-state nil) |
diff --git a/lisp/completion.el b/lisp/completion.el index 6ef505781e4..67127020c1c 100644 --- a/lisp/completion.el +++ b/lisp/completion.el | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | ;;; completion.el --- dynamic word-completion code | 1 | ;;; completion.el --- dynamic word-completion code |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 1990, 1993, 1995 Free Software Foundation, Inc. | 3 | ;; Copyright (C) 1990, 1993, 1995, 1997 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | ;; Maintainer: FSF | 5 | ;; Maintainer: FSF |
| 6 | ;; Keywords: abbrev | 6 | ;; Keywords: abbrev |
| @@ -279,44 +279,69 @@ | |||
| 279 | ;; User changeable parameters | 279 | ;; User changeable parameters |
| 280 | ;;--------------------------------------------------------------------------- | 280 | ;;--------------------------------------------------------------------------- |
| 281 | 281 | ||
| 282 | (defvar enable-completion t | 282 | (defgroup completion nil |
| 283 | "Dynamic word-completion code." | ||
| 284 | :group 'matching) | ||
| 285 | |||
| 286 | |||
| 287 | (defcustom enable-completion t | ||
| 283 | "*Non-nil means enable recording and saving of completions. | 288 | "*Non-nil means enable recording and saving of completions. |
| 284 | If nil, no new words added to the database or saved to the init file.") | 289 | If nil, no new words added to the database or saved to the init file." |
| 290 | :type 'boolean | ||
| 291 | :group 'completion) | ||
| 285 | 292 | ||
| 286 | (defvar save-completions-flag t | 293 | (defcustom save-completions-flag t |
| 287 | "*Non-nil means save most-used completions when exiting Emacs. | 294 | "*Non-nil means save most-used completions when exiting Emacs. |
| 288 | See also `saved-completions-retention-time'.") | 295 | See also `saved-completions-retention-time'." |
| 296 | :type 'boolean | ||
| 297 | :group 'completion) | ||
| 289 | 298 | ||
| 290 | (defvar save-completions-file-name (convert-standard-filename "~/.completions") | 299 | (defcustom save-completions-file-name (convert-standard-filename "~/.completions") |
| 291 | "*The filename to save completions to.") | 300 | "*The filename to save completions to." |
| 301 | :type 'file | ||
| 302 | :group 'completion) | ||
| 292 | 303 | ||
| 293 | (defvar save-completions-retention-time 336 | 304 | (defcustom save-completions-retention-time 336 |
| 294 | "*Discard a completion if unused for this many hours. | 305 | "*Discard a completion if unused for this many hours. |
| 295 | \(1 day = 24, 1 week = 168). If this is 0, non-permanent completions | 306 | \(1 day = 24, 1 week = 168). If this is 0, non-permanent completions |
| 296 | will not be saved unless these are used. Default is two weeks.") | 307 | will not be saved unless these are used. Default is two weeks." |
| 308 | :type 'integer | ||
| 309 | :group 'completion) | ||
| 297 | 310 | ||
| 298 | (defvar completion-on-separator-character nil | 311 | (defcustom completion-on-separator-character nil |
| 299 | "*Non-nil means separator characters mark previous word as used. | 312 | "*Non-nil means separator characters mark previous word as used. |
| 300 | This means the word will be saved as a completion.") | 313 | This means the word will be saved as a completion." |
| 314 | :type 'boolean | ||
| 315 | :group 'completion) | ||
| 301 | 316 | ||
| 302 | (defvar completions-file-versions-kept kept-new-versions | 317 | (defcustom completions-file-versions-kept kept-new-versions |
| 303 | "*Number of versions to keep for the saved completions file.") | 318 | "*Number of versions to keep for the saved completions file." |
| 319 | :type 'integer | ||
| 320 | :group 'completion) | ||
| 304 | 321 | ||
| 305 | (defvar completion-prompt-speed-threshold 4800 | 322 | (defcustom completion-prompt-speed-threshold 4800 |
| 306 | "*Minimum output speed at which to display next potential completion.") | 323 | "*Minimum output speed at which to display next potential completion." |
| 324 | :type 'integer | ||
| 325 | :group 'completion) | ||
| 307 | 326 | ||
| 308 | (defvar completion-cdabbrev-prompt-flag nil | 327 | (defcustom completion-cdabbrev-prompt-flag nil |
| 309 | "*If non-nil, the next completion prompt does a cdabbrev search. | 328 | "*If non-nil, the next completion prompt does a cdabbrev search. |
| 310 | This can be time consuming.") | 329 | This can be time consuming." |
| 330 | :type 'boolean | ||
| 331 | :group 'completion) | ||
| 311 | 332 | ||
| 312 | (defvar completion-search-distance 15000 | 333 | (defcustom completion-search-distance 15000 |
| 313 | "*How far to search in the buffer when looking for completions. | 334 | "*How far to search in the buffer when looking for completions. |
| 314 | In number of characters. If nil, search the whole buffer.") | 335 | In number of characters. If nil, search the whole buffer." |
| 336 | :type 'integer | ||
| 337 | :group 'completion) | ||
| 315 | 338 | ||
| 316 | (defvar completions-merging-modes '(lisp c) | 339 | (defcustom completions-merging-modes '(lisp c) |
| 317 | "*List of modes {`c' or `lisp'} for automatic completions merging. | 340 | "*List of modes {`c' or `lisp'} for automatic completions merging. |
| 318 | Definitions from visited files which have these modes | 341 | Definitions from visited files which have these modes |
| 319 | are automatically added to the completion database.") | 342 | are automatically added to the completion database." |
| 343 | :type '(set (const lisp) (const c)) | ||
| 344 | :group 'completion) | ||
| 320 | 345 | ||
| 321 | ;;(defvar *record-cmpl-statistics-p* nil | 346 | ;;(defvar *record-cmpl-statistics-p* nil |
| 322 | ;; "*If non-nil, record completion statistics.") | 347 | ;; "*If non-nil, record completion statistics.") |
diff --git a/lisp/hexl.el b/lisp/hexl.el index 56f05de37cd..577a7222cf5 100644 --- a/lisp/hexl.el +++ b/lisp/hexl.el | |||
| @@ -53,25 +53,40 @@ | |||
| 53 | ;; vars here | 53 | ;; vars here |
| 54 | ;; | 54 | ;; |
| 55 | 55 | ||
| 56 | (defvar hexl-program "hexl" | 56 | (defgroup hexl nil |
| 57 | "Edit a file in a hex dump format using the hexl filter." | ||
| 58 | :group 'data) | ||
| 59 | |||
| 60 | |||
| 61 | (defcustom hexl-program "hexl" | ||
| 57 | "The program that will hexlify and dehexlify its stdin. | 62 | "The program that will hexlify and dehexlify its stdin. |
| 58 | `hexl-program' will always be concatenated with `hexl-options' | 63 | `hexl-program' will always be concatenated with `hexl-options' |
| 59 | and \"-de\" when dehexlifying a buffer.") | 64 | and \"-de\" when dehexlifying a buffer." |
| 65 | :type 'string | ||
| 66 | :group 'hexl) | ||
| 60 | 67 | ||
| 61 | (defvar hexl-iso "" | 68 | (defcustom hexl-iso "" |
| 62 | "If your emacs can handle ISO characters, this should be set to | 69 | "If your emacs can handle ISO characters, this should be set to |
| 63 | \"-iso\" otherwise it should be \"\".") | 70 | \"-iso\" otherwise it should be \"\"." |
| 71 | :type 'string | ||
| 72 | :group 'hexl) | ||
| 64 | 73 | ||
| 65 | (defvar hexl-options (format "-hex %s" hexl-iso) | 74 | (defcustom hexl-options (format "-hex %s" hexl-iso) |
| 66 | "Options to hexl-program that suit your needs.") | 75 | "Options to hexl-program that suit your needs." |
| 76 | :type 'string | ||
| 77 | :group 'hexl) | ||
| 67 | 78 | ||
| 68 | (defvar hexlify-command | 79 | (defcustom hexlify-command |
| 69 | (format "%s%s %s" exec-directory hexl-program hexl-options) | 80 | (format "%s%s %s" exec-directory hexl-program hexl-options) |
| 70 | "The command to use to hexlify a buffer.") | 81 | "The command to use to hexlify a buffer." |
| 82 | :type 'string | ||
| 83 | :group 'hexl) | ||
| 71 | 84 | ||
| 72 | (defvar dehexlify-command | 85 | (defcustom dehexlify-command |
| 73 | (format "%s%s -de %s" exec-directory hexl-program hexl-options) | 86 | (format "%s%s -de %s" exec-directory hexl-program hexl-options) |
| 74 | "The command to use to unhexlify a buffer.") | 87 | "The command to use to unhexlify a buffer." |
| 88 | :type 'string | ||
| 89 | :group 'hexl) | ||
| 75 | 90 | ||
| 76 | (defvar hexl-max-address 0 | 91 | (defvar hexl-max-address 0 |
| 77 | "Maximum offset into hexl buffer.") | 92 | "Maximum offset into hexl buffer.") |
diff --git a/lisp/mail/smtpmail.el b/lisp/mail/smtpmail.el index d0ac4b3c7e9..154de723679 100644 --- a/lisp/mail/smtpmail.el +++ b/lisp/mail/smtpmail.el | |||
| @@ -43,26 +43,43 @@ | |||
| 43 | (require 'sendmail) | 43 | (require 'sendmail) |
| 44 | 44 | ||
| 45 | ;;; | 45 | ;;; |
| 46 | (defvar smtpmail-default-smtp-server nil | 46 | (defgroup smtpmail nil |
| 47 | "*Specify default SMTP server.") | 47 | "SMTP protocol for sending mail." |
| 48 | :group 'mail) | ||
| 48 | 49 | ||
| 49 | (defvar smtpmail-smtp-server | 50 | |
| 51 | (defcustom smtpmail-default-smtp-server nil | ||
| 52 | "*Specify default SMTP server." | ||
| 53 | :type '(choice (const nil) string) | ||
| 54 | :group 'smtpmail) | ||
| 55 | |||
| 56 | (defcustom smtpmail-smtp-server | ||
| 50 | (or (getenv "SMTPSERVER") smtpmail-default-smtp-server) | 57 | (or (getenv "SMTPSERVER") smtpmail-default-smtp-server) |
| 51 | "*The name of the host running SMTP server.") | 58 | "*The name of the host running SMTP server." |
| 59 | :type '(choice (const nil) string) | ||
| 60 | :group 'smtpmail) | ||
| 52 | 61 | ||
| 53 | (defvar smtpmail-smtp-service 25 | 62 | (defcustom smtpmail-smtp-service 25 |
| 54 | "*SMTP service port number. smtp or 25 .") | 63 | "*SMTP service port number. smtp or 25 ." |
| 64 | :type 'integer | ||
| 65 | :group 'smtpmail) | ||
| 55 | 66 | ||
| 56 | (defvar smtpmail-local-domain nil | 67 | (defcustom smtpmail-local-domain nil |
| 57 | "*Local domain name without a host name. | 68 | "*Local domain name without a host name. |
| 58 | If the function (system-name) returns the full internet address, | 69 | If the function (system-name) returns the full internet address, |
| 59 | don't define this value.") | 70 | don't define this value." |
| 60 | 71 | :type '(choice (const nil) string) | |
| 61 | (defvar smtpmail-debug-info nil | 72 | :group 'smtpmail) |
| 62 | "*smtpmail debug info printout. messages and process buffer.") | 73 | |
| 63 | 74 | (defcustom smtpmail-debug-info nil | |
| 64 | (defvar smtpmail-code-conv-from nil ;; *junet* | 75 | "*smtpmail debug info printout. messages and process buffer." |
| 65 | "*smtpmail code convert from this code to *internal*..for tiny-mime..") | 76 | :type 'boolean |
| 77 | :group 'smtpmail) | ||
| 78 | |||
| 79 | (defcustom smtpmail-code-conv-from nil ;; *junet* | ||
| 80 | "*smtpmail code convert from this code to *internal*..for tiny-mime.." | ||
| 81 | :type 'boolean | ||
| 82 | :group 'smtpmail) | ||
| 66 | 83 | ||
| 67 | ;;; | 84 | ;;; |
| 68 | ;;; | 85 | ;;; |
diff --git a/lisp/man.el b/lisp/man.el index 8b4d9072cb7..d40fc2fe8a4 100644 --- a/lisp/man.el +++ b/lisp/man.el | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | ;;; man.el --- browse UNIX manual pages | 1 | ;;; man.el --- browse UNIX manual pages |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 1993, 1994, 1996 Free Software Foundation, Inc. | 3 | ;; Copyright (C) 1993, 1994, 1996, 1997 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | ;; Author: Barry A. Warsaw <bwarsaw@cen.com> | 5 | ;; Author: Barry A. Warsaw <bwarsaw@cen.com> |
| 6 | ;; Keywords: help | 6 | ;; Keywords: help |
| @@ -98,10 +98,16 @@ | |||
| 98 | ;; vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv | 98 | ;; vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv |
| 99 | ;; empty defvars (keep the compiler quiet) | 99 | ;; empty defvars (keep the compiler quiet) |
| 100 | 100 | ||
| 101 | (defgroup man nil | ||
| 102 | "Browse UNIX manual pages." | ||
| 103 | :prefix "Man-" | ||
| 104 | :group 'help) | ||
| 105 | |||
| 106 | |||
| 101 | (defvar Man-notify) | 107 | (defvar Man-notify) |
| 102 | (defvar Man-current-page) | 108 | (defvar Man-current-page) |
| 103 | (defvar Man-page-list) | 109 | (defvar Man-page-list) |
| 104 | (defvar Man-filter-list nil | 110 | (defcustom Man-filter-list nil |
| 105 | "*Manpage cleaning filter command phrases. | 111 | "*Manpage cleaning filter command phrases. |
| 106 | This variable contains a list of the following form: | 112 | This variable contains a list of the following form: |
| 107 | 113 | ||
| @@ -111,7 +117,11 @@ Each phrase-string is concatenated onto the command-string to form a | |||
| 111 | command filter. The (standard) output (and standard error) of the Un*x | 117 | command filter. The (standard) output (and standard error) of the Un*x |
| 112 | man command is piped through each command filter in the order the | 118 | man command is piped through each command filter in the order the |
| 113 | commands appear in the association list. The final output is placed in | 119 | commands appear in the association list. The final output is placed in |
| 114 | the manpage buffer.") | 120 | the manpage buffer." |
| 121 | :type '(repeat (list (string :tag "Command String") | ||
| 122 | (repeat :inline t | ||
| 123 | (string :tag "Phrase String")))) | ||
| 124 | :group 'man) | ||
| 115 | 125 | ||
| 116 | (defvar Man-original-frame) | 126 | (defvar Man-original-frame) |
| 117 | (defvar Man-arguments) | 127 | (defvar Man-arguments) |
| @@ -126,17 +136,23 @@ the manpage buffer.") | |||
| 126 | ;; vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv | 136 | ;; vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv |
| 127 | ;; user variables | 137 | ;; user variables |
| 128 | 138 | ||
| 129 | (defvar Man-fontify-manpage-flag t | 139 | (defcustom Man-fontify-manpage-flag t |
| 130 | "*Make up the manpage with fonts.") | 140 | "*Make up the manpage with fonts." |
| 141 | :type 'boolean | ||
| 142 | :group 'man) | ||
| 131 | 143 | ||
| 132 | (defvar Man-overstrike-face 'bold | 144 | (defcustom Man-overstrike-face 'bold |
| 133 | "*Face to use when fontifying overstrike.") | 145 | "*Face to use when fontifying overstrike." |
| 146 | :type 'face | ||
| 147 | :group 'man) | ||
| 134 | 148 | ||
| 135 | (defvar Man-underline-face 'underline | 149 | (defcustom Man-underline-face 'underline |
| 136 | "*Face to use when fontifying underlining.") | 150 | "*Face to use when fontifying underlining." |
| 151 | :type 'face | ||
| 152 | :group 'man) | ||
| 137 | 153 | ||
| 138 | ;; Use the value of the obsolete user option Man-notify, if set. | 154 | ;; Use the value of the obsolete user option Man-notify, if set. |
| 139 | (defvar Man-notify-method (if (boundp 'Man-notify) Man-notify 'friendly) | 155 | (defcustom Man-notify-method (if (boundp 'Man-notify) Man-notify 'friendly) |
| 140 | "*Selects the behavior when manpage is ready. | 156 | "*Selects the behavior when manpage is ready. |
| 141 | This variable may have one of the following values, where (sf) means | 157 | This variable may have one of the following values, where (sf) means |
| 142 | that the frames are switched, so the manpage is displayed in the frame | 158 | that the frames are switched, so the manpage is displayed in the frame |
| @@ -151,23 +167,33 @@ polite -- don't display manpage, but prints message and beep when ready | |||
| 151 | quiet -- like `polite', but don't beep | 167 | quiet -- like `polite', but don't beep |
| 152 | meek -- make no indication that the manpage is ready | 168 | meek -- make no indication that the manpage is ready |
| 153 | 169 | ||
| 154 | Any other value of `Man-notify-method' is equivalent to `meek'.") | 170 | Any other value of `Man-notify-method' is equivalent to `meek'." |
| 171 | :type '(radio (const newframe) (const pushy) (const bully) | ||
| 172 | (const aggressive) (const friendly) | ||
| 173 | (const polite) (const quiet) (const meek)) | ||
| 174 | :group 'man) | ||
| 155 | 175 | ||
| 156 | (defvar Man-frame-parameters nil | 176 | (defcustom Man-frame-parameters nil |
| 157 | "*Frame parameter list for creating a new frame for a manual page.") | 177 | "*Frame parameter list for creating a new frame for a manual page." |
| 178 | :type 'sexp | ||
| 179 | :group 'man) | ||
| 158 | 180 | ||
| 159 | (defvar Man-downcase-section-letters-flag t | 181 | (defcustom Man-downcase-section-letters-flag t |
| 160 | "*Letters in sections are converted to lower case. | 182 | "*Letters in sections are converted to lower case. |
| 161 | Some Un*x man commands can't handle uppercase letters in sections, for | 183 | Some Un*x man commands can't handle uppercase letters in sections, for |
| 162 | example \"man 2V chmod\", but they are often displayed in the manpage | 184 | example \"man 2V chmod\", but they are often displayed in the manpage |
| 163 | with the upper case letter. When this variable is t, the section | 185 | with the upper case letter. When this variable is t, the section |
| 164 | letter (e.g., \"2V\") is converted to lowercase (e.g., \"2v\") before | 186 | letter (e.g., \"2V\") is converted to lowercase (e.g., \"2v\") before |
| 165 | being sent to the man background process.") | 187 | being sent to the man background process." |
| 188 | :type 'boolean | ||
| 189 | :group 'man) | ||
| 166 | 190 | ||
| 167 | (defvar Man-circular-pages-flag t | 191 | (defcustom Man-circular-pages-flag t |
| 168 | "*If t, the manpage list is treated as circular for traversal.") | 192 | "*If t, the manpage list is treated as circular for traversal." |
| 193 | :type 'boolean | ||
| 194 | :group 'man) | ||
| 169 | 195 | ||
| 170 | (defvar Man-section-translations-alist | 196 | (defcustom Man-section-translations-alist |
| 171 | (list | 197 | (list |
| 172 | '("3C++" . "3") | 198 | '("3C++" . "3") |
| 173 | ;; Some systems have a real 3x man section, so let's comment this. | 199 | ;; Some systems have a real 3x man section, so let's comment this. |
| @@ -178,7 +204,10 @@ being sent to the man background process.") | |||
| 178 | Some manpages (e.g. the Sun C++ 2.1 manpages) have section numbers in | 204 | Some manpages (e.g. the Sun C++ 2.1 manpages) have section numbers in |
| 179 | their references which Un*x `man' does not recognize. This | 205 | their references which Un*x `man' does not recognize. This |
| 180 | association list is used to translate those sections, when found, to | 206 | association list is used to translate those sections, when found, to |
| 181 | the associated section number.") | 207 | the associated section number." |
| 208 | :type '(repeat (cons (string :tag "Bogus Section") | ||
| 209 | (string :tag "Real Section"))) | ||
| 210 | :group 'man) | ||
| 182 | 211 | ||
| 183 | (defvar manual-program "man" | 212 | (defvar manual-program "man" |
| 184 | "The name of the program that produces man pages.") | 213 | "The name of the program that produces man pages.") |
diff --git a/lisp/progmodes/cmacexp.el b/lisp/progmodes/cmacexp.el index f030ade3f67..6a7b2b4e26e 100644 --- a/lisp/progmodes/cmacexp.el +++ b/lisp/progmodes/cmacexp.el | |||
| @@ -3,7 +3,7 @@ | |||
| 3 | ;; Copyright (C) 1992, 1994, 1996 Free Software Foundation, Inc. | 3 | ;; Copyright (C) 1992, 1994, 1996 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | ;; Author: Francesco Potorti` <pot@cnuce.cnr.it> | 5 | ;; Author: Francesco Potorti` <pot@cnuce.cnr.it> |
| 6 | ;; Version: $Id: cmacexp.el,v 1.25 1996/05/21 15:42:13 kwzh Exp rms $ | 6 | ;; Version: $Id: cmacexp.el,v 1.26 1996/06/07 22:59:27 rms Exp rms $ |
| 7 | ;; Adapted-By: ESR | 7 | ;; Adapted-By: ESR |
| 8 | ;; Keywords: c | 8 | ;; Keywords: c |
| 9 | 9 | ||
| @@ -90,13 +90,22 @@ | |||
| 90 | 90 | ||
| 91 | (provide 'cmacexp) | 91 | (provide 'cmacexp) |
| 92 | 92 | ||
| 93 | (defvar c-macro-shrink-window-flag nil | 93 | (defgroup c-macro nil |
| 94 | "*Non-nil means shrink the *Macroexpansion* window to fit its contents.") | 94 | "Expand C macros in a region." |
| 95 | :group 'c) | ||
| 95 | 96 | ||
| 96 | (defvar c-macro-prompt-flag nil | ||
| 97 | "*Non-nil makes `c-macro-expand' prompt for preprocessor arguments.") | ||
| 98 | 97 | ||
| 99 | (defvar c-macro-preprocessor | 98 | (defcustom c-macro-shrink-window-flag nil |
| 99 | "*Non-nil means shrink the *Macroexpansion* window to fit its contents." | ||
| 100 | :type 'boolean | ||
| 101 | :group 'c-macro) | ||
| 102 | |||
| 103 | (defcustom c-macro-prompt-flag nil | ||
| 104 | "*Non-nil makes `c-macro-expand' prompt for preprocessor arguments." | ||
| 105 | :type 'boolean | ||
| 106 | :group 'c-macro) | ||
| 107 | |||
| 108 | (defcustom c-macro-preprocessor | ||
| 100 | ;; Cannot rely on standard directory on MS-DOS to find CPP. | 109 | ;; Cannot rely on standard directory on MS-DOS to find CPP. |
| 101 | (cond ((eq system-type 'ms-dos) "cpp -C") | 110 | (cond ((eq system-type 'ms-dos) "cpp -C") |
| 102 | ;; Solaris has it in an unusual place. | 111 | ;; Solaris has it in an unusual place. |
| @@ -108,10 +117,14 @@ | |||
| 108 | "The preprocessor used by the cmacexp package. | 117 | "The preprocessor used by the cmacexp package. |
| 109 | 118 | ||
| 110 | If you change this, be sure to preserve the `-C' (don't strip comments) | 119 | If you change this, be sure to preserve the `-C' (don't strip comments) |
| 111 | option, or to set an equivalent one.") | 120 | option, or to set an equivalent one." |
| 112 | 121 | :type 'string | |
| 113 | (defvar c-macro-cppflags "" | 122 | :group 'c-macro) |
| 114 | "*Preprocessor flags used by `c-macro-expand'.") | 123 | |
| 124 | (defcustom c-macro-cppflags "" | ||
| 125 | "*Preprocessor flags used by `c-macro-expand'." | ||
| 126 | :type 'string | ||
| 127 | :group 'c-macro) | ||
| 115 | 128 | ||
| 116 | (defconst c-macro-buffer-name "*Macroexpansion*") | 129 | (defconst c-macro-buffer-name "*Macroexpansion*") |
| 117 | 130 | ||
diff --git a/lisp/textmodes/page-ext.el b/lisp/textmodes/page-ext.el index bc5e971b141..2718aea094b 100644 --- a/lisp/textmodes/page-ext.el +++ b/lisp/textmodes/page-ext.el | |||
| @@ -235,30 +235,49 @@ | |||
| 235 | 235 | ||
| 236 | ;;; Customarily customizable variable definitions | 236 | ;;; Customarily customizable variable definitions |
| 237 | 237 | ||
| 238 | (defvar pages-directory-buffer-narrowing-p t | 238 | (defgroup pages nil |
| 239 | "*If non-nil, `pages-directory-goto' narrows pages buffer to entry.") | 239 | "Extended page-handling commands." |
| 240 | :group 'extensions) | ||
| 240 | 241 | ||
| 241 | (defvar pages-directory-for-adding-page-narrowing-p t | ||
| 242 | "*If non-nil, `add-new-page' narrows page buffer to new entry.") | ||
| 243 | 242 | ||
| 244 | (defvar pages-directory-for-adding-new-page-before-current-page-p t | 243 | (defcustom pages-directory-buffer-narrowing-p t |
| 245 | "*If non-nil, `add-new-page' inserts new page before current page.") | 244 | "*If non-nil, `pages-directory-goto' narrows pages buffer to entry." |
| 245 | :type 'boolean | ||
| 246 | :group 'pages) | ||
| 247 | |||
| 248 | (defcustom pages-directory-for-adding-page-narrowing-p t | ||
| 249 | "*If non-nil, `add-new-page' narrows page buffer to new entry." | ||
| 250 | :type 'boolean | ||
| 251 | :group 'pages) | ||
| 252 | |||
| 253 | (defcustom pages-directory-for-adding-new-page-before-current-page-p t | ||
| 254 | "*If non-nil, `add-new-page' inserts new page before current page." | ||
| 255 | :type 'boolean | ||
| 256 | :group 'pages) | ||
| 246 | 257 | ||
| 247 | 258 | ||
| 248 | ;;; Addresses related variables | 259 | ;;; Addresses related variables |
| 249 | 260 | ||
| 250 | (defvar pages-addresses-file-name "~/addresses" | 261 | (defcustom pages-addresses-file-name "~/addresses" |
| 251 | "*Standard name for file of addresses. Entries separated by page-delimiter. | 262 | "*Standard name for file of addresses. Entries separated by page-delimiter. |
| 252 | Used by `pages-directory-for-addresses' function.") | 263 | Used by `pages-directory-for-addresses' function." |
| 253 | 264 | :type 'file | |
| 254 | (defvar pages-directory-for-addresses-goto-narrowing-p t | 265 | :group 'pages) |
| 255 | "*If non-nil, `pages-directory-goto' narrows addresses buffer to entry.") | 266 | |
| 256 | 267 | (defcustom pages-directory-for-addresses-goto-narrowing-p t | |
| 257 | (defvar pages-directory-for-addresses-buffer-keep-windows-p t | 268 | "*If non-nil, `pages-directory-goto' narrows addresses buffer to entry." |
| 258 | "*If nil, `pages-directory-for-addresses' deletes other windows.") | 269 | :type 'boolean |
| 259 | 270 | :group 'pages) | |
| 260 | (defvar pages-directory-for-adding-addresses-narrowing-p t | 271 | |
| 261 | "*If non-nil, `add-new-page' narrows addresses buffer to new entry.") | 272 | (defcustom pages-directory-for-addresses-buffer-keep-windows-p t |
| 273 | "*If nil, `pages-directory-for-addresses' deletes other windows." | ||
| 274 | :type 'boolean | ||
| 275 | :group 'pages) | ||
| 276 | |||
| 277 | (defcustom pages-directory-for-adding-addresses-narrowing-p t | ||
| 278 | "*If non-nil, `add-new-page' narrows addresses buffer to new entry." | ||
| 279 | :type 'boolean | ||
| 280 | :group 'pages) | ||
| 262 | 281 | ||
| 263 | 282 | ||
| 264 | ;;; Key bindings for page handling functions | 283 | ;;; Key bindings for page handling functions |