diff options
| author | Mattias EngdegÄrd | 2023-04-28 15:03:47 +0200 |
|---|---|---|
| committer | Mattias EngdegÄrd | 2023-04-28 15:03:47 +0200 |
| commit | 6ebce84ff2b4e488fbffaa0f7cc2b06580557bf7 (patch) | |
| tree | 98d4a4b0c99370f188e341d53afe90386e175ca6 | |
| parent | a57a8b75f50bca3b724d3f49c87aba7a9121bf13 (diff) | |
| download | emacs-6ebce84ff2b4e488fbffaa0f7cc2b06580557bf7.tar.gz emacs-6ebce84ff2b4e488fbffaa0f7cc2b06580557bf7.zip | |
Use t for non-nil default values in boolean defcustom declarations
* lisp/emulation/viper-ex.el (ex-unix-type-shell):
* lisp/emulation/viper-init.el (viper-ms-style-os-p):
* lisp/eshell/em-glob.el (eshell-glob-case-insensitive):
* lisp/filecache.el (file-cache-ignore-case):
* lisp/lpr.el (lpr-add-switches):
* lisp/ls-lisp.el (ls-lisp-ignore-case):
* lisp/mail/binhex.el (binhex-use-external):
* lisp/progmodes/cperl-mode.el (cperl-electric-parens-mark):
Normalise default values to nil or t.
| -rw-r--r-- | lisp/emulation/viper-ex.el | 3 | ||||
| -rw-r--r-- | lisp/emulation/viper-init.el | 3 | ||||
| -rw-r--r-- | lisp/eshell/em-glob.el | 2 | ||||
| -rw-r--r-- | lisp/filecache.el | 2 | ||||
| -rw-r--r-- | lisp/lpr.el | 3 | ||||
| -rw-r--r-- | lisp/ls-lisp.el | 2 | ||||
| -rw-r--r-- | lisp/mail/binhex.el | 2 | ||||
| -rw-r--r-- | lisp/progmodes/cperl-mode.el | 2 |
8 files changed, 11 insertions, 8 deletions
diff --git a/lisp/emulation/viper-ex.el b/lisp/emulation/viper-ex.el index 783c01058e2..ecbcace2dd4 100644 --- a/lisp/emulation/viper-ex.el +++ b/lisp/emulation/viper-ex.el | |||
| @@ -294,7 +294,8 @@ | |||
| 294 | "\\|" | 294 | "\\|" |
| 295 | "bash$\\|bash.exe$" | 295 | "bash$\\|bash.exe$" |
| 296 | "\\)") | 296 | "\\)") |
| 297 | shell-file-name))) | 297 | shell-file-name) |
| 298 | t)) | ||
| 298 | "Is the user using a unix-type shell under a non-OS?" | 299 | "Is the user using a unix-type shell under a non-OS?" |
| 299 | :type 'boolean) | 300 | :type 'boolean) |
| 300 | 301 | ||
diff --git a/lisp/emulation/viper-init.el b/lisp/emulation/viper-init.el index 986d1fe6bc6..c39e3cf5142 100644 --- a/lisp/emulation/viper-init.el +++ b/lisp/emulation/viper-init.el | |||
| @@ -47,7 +47,8 @@ | |||
| 47 | (defun viper-window-display-p () | 47 | (defun viper-window-display-p () |
| 48 | (and window-system (not (memq window-system '(tty stream pc))))) | 48 | (and window-system (not (memq window-system '(tty stream pc))))) |
| 49 | 49 | ||
| 50 | (defcustom viper-ms-style-os-p (memq system-type '(ms-dos windows-nt)) | 50 | (defcustom viper-ms-style-os-p |
| 51 | (not (not (memq system-type '(ms-dos windows-nt)))) | ||
| 51 | "Non-nil if Emacs is running under an MS-style OS: MS-DOS, or MS-Windows." | 52 | "Non-nil if Emacs is running under an MS-style OS: MS-DOS, or MS-Windows." |
| 52 | :type 'boolean | 53 | :type 'boolean |
| 53 | :tag "Is it Microsoft-made OS?" | 54 | :tag "Is it Microsoft-made OS?" |
diff --git a/lisp/eshell/em-glob.el b/lisp/eshell/em-glob.el index 9402df43065..d00f8c93cd1 100644 --- a/lisp/eshell/em-glob.el +++ b/lisp/eshell/em-glob.el | |||
| @@ -79,7 +79,7 @@ by zsh for filename generation." | |||
| 79 | :type 'boolean | 79 | :type 'boolean |
| 80 | :group 'eshell-glob) | 80 | :group 'eshell-glob) |
| 81 | 81 | ||
| 82 | (defcustom eshell-glob-case-insensitive (eshell-under-windows-p) | 82 | (defcustom eshell-glob-case-insensitive (not (not (eshell-under-windows-p))) |
| 83 | "If non-nil, glob pattern matching will ignore case." | 83 | "If non-nil, glob pattern matching will ignore case." |
| 84 | :type 'boolean | 84 | :type 'boolean |
| 85 | :group 'eshell-glob) | 85 | :group 'eshell-glob) |
diff --git a/lisp/filecache.el b/lisp/filecache.el index c211a02b2d2..42225509eca 100644 --- a/lisp/filecache.el +++ b/lisp/filecache.el | |||
| @@ -213,7 +213,7 @@ Defaults to the value of `case-fold-search'." | |||
| 213 | :type 'boolean) | 213 | :type 'boolean) |
| 214 | 214 | ||
| 215 | (defcustom file-cache-ignore-case | 215 | (defcustom file-cache-ignore-case |
| 216 | (memq system-type '(ms-dos windows-nt cygwin)) | 216 | (not (not (memq system-type '(ms-dos windows-nt cygwin)))) |
| 217 | "Non-nil means ignore case when checking completions in the file cache. | 217 | "Non-nil means ignore case when checking completions in the file cache. |
| 218 | Defaults to nil on DOS and Windows, and t on other systems." | 218 | Defaults to nil on DOS and Windows, and t on other systems." |
| 219 | :type 'boolean) | 219 | :type 'boolean) |
diff --git a/lisp/lpr.el b/lisp/lpr.el index af59a953f38..6b8343b695d 100644 --- a/lisp/lpr.el +++ b/lisp/lpr.el | |||
| @@ -73,7 +73,8 @@ switch on this list. | |||
| 73 | See `lpr-command'." | 73 | See `lpr-command'." |
| 74 | :type '(repeat (string :tag "Argument"))) | 74 | :type '(repeat (string :tag "Argument"))) |
| 75 | 75 | ||
| 76 | (defcustom lpr-add-switches (memq system-type '(berkeley-unix gnu/linux)) | 76 | (defcustom lpr-add-switches |
| 77 | (not (not (memq system-type '(berkeley-unix gnu/linux)))) | ||
| 77 | "Non-nil means construct `-T' and `-J' options for the printer program. | 78 | "Non-nil means construct `-T' and `-J' options for the printer program. |
| 78 | These are made assuming that the program is `lpr'; | 79 | These are made assuming that the program is `lpr'; |
| 79 | if you are using some other incompatible printer program, | 80 | if you are using some other incompatible printer program, |
diff --git a/lisp/ls-lisp.el b/lisp/ls-lisp.el index 81ff14932c6..485ac4476ef 100644 --- a/lisp/ls-lisp.el +++ b/lisp/ls-lisp.el | |||
| @@ -101,7 +101,7 @@ update the dependent variables." | |||
| 101 | :group 'ls-lisp) | 101 | :group 'ls-lisp) |
| 102 | 102 | ||
| 103 | (defcustom ls-lisp-ignore-case | 103 | (defcustom ls-lisp-ignore-case |
| 104 | (memq ls-lisp-emulation '(MS-Windows MacOS)) | 104 | (not (not (memq ls-lisp-emulation '(MS-Windows MacOS)))) |
| 105 | "Non-nil causes ls-lisp alphabetic sorting to ignore case." | 105 | "Non-nil causes ls-lisp alphabetic sorting to ignore case." |
| 106 | :set-after '(ls-lisp-emulation) | 106 | :set-after '(ls-lisp-emulation) |
| 107 | :type 'boolean | 107 | :type 'boolean |
diff --git a/lisp/mail/binhex.el b/lisp/mail/binhex.el index 4b903578a28..15f598fa224 100644 --- a/lisp/mail/binhex.el +++ b/lisp/mail/binhex.el | |||
| @@ -49,7 +49,7 @@ input and write the converted data to its standard output." | |||
| 49 | :type '(repeat string)) | 49 | :type '(repeat string)) |
| 50 | 50 | ||
| 51 | (defcustom binhex-use-external | 51 | (defcustom binhex-use-external |
| 52 | (executable-find binhex-decoder-program) | 52 | (not (not (executable-find binhex-decoder-program))) |
| 53 | "Use external binhex program." | 53 | "Use external binhex program." |
| 54 | :version "22.1" | 54 | :version "22.1" |
| 55 | :type 'boolean) | 55 | :type 'boolean) |
diff --git a/lisp/progmodes/cperl-mode.el b/lisp/progmodes/cperl-mode.el index b6f0e9bca41..ed021a7ebc9 100644 --- a/lisp/progmodes/cperl-mode.el +++ b/lisp/progmodes/cperl-mode.el | |||
| @@ -275,7 +275,7 @@ Can be overwritten by `cperl-hairy' if nil." | |||
| 275 | :type '(choice (const null) boolean) | 275 | :type '(choice (const null) boolean) |
| 276 | :group 'cperl-affected-by-hairy) | 276 | :group 'cperl-affected-by-hairy) |
| 277 | 277 | ||
| 278 | (defcustom cperl-electric-parens-mark window-system | 278 | (defcustom cperl-electric-parens-mark (not (not window-system)) |
| 279 | "Not-nil means that electric parens look for active mark. | 279 | "Not-nil means that electric parens look for active mark. |
| 280 | Default is yes if there is visual feedback on mark." | 280 | Default is yes if there is visual feedback on mark." |
| 281 | :type 'boolean | 281 | :type 'boolean |