diff options
| author | Glenn Morris | 2019-08-10 08:44:31 -0700 |
|---|---|---|
| committer | Glenn Morris | 2019-08-10 08:44:31 -0700 |
| commit | f47fc426df57aef9f5d9b52578bf183ef9c8d47f (patch) | |
| tree | 242f2bc9dd6f696c48465789ea8b2e25838b7d41 /lisp | |
| parent | ce26bb35391c82f4aadc557e22a504a60d0c19d7 (diff) | |
| parent | e7818cb73ff042cb557332c7ea954fd512c87f69 (diff) | |
| download | emacs-f47fc426df57aef9f5d9b52578bf183ef9c8d47f.tar.gz emacs-f47fc426df57aef9f5d9b52578bf183ef9c8d47f.zip | |
Merge from origin/emacs-26
e7818cb Fix nnmail-expiry-wait docs and custom :types
8b7c776 * lisp/simple.el (kill-do-not-save-duplicates): Doc fix. (Bu...
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/gnus/gnus-cus.el | 8 | ||||
| -rw-r--r-- | lisp/gnus/nnmail.el | 35 | ||||
| -rw-r--r-- | lisp/simple.el | 2 |
3 files changed, 23 insertions, 22 deletions
diff --git a/lisp/gnus/gnus-cus.el b/lisp/gnus/gnus-cus.el index 3598ead7613..a4daf8cf483 100644 --- a/lisp/gnus/gnus-cus.el +++ b/lisp/gnus/gnus-cus.el | |||
| @@ -140,10 +140,10 @@ rules as described later).") | |||
| 140 | :format "%v")) "\ | 140 | :format "%v")) "\ |
| 141 | When to expire. | 141 | When to expire. |
| 142 | 142 | ||
| 143 | Overrides any `nnmail-expiry-wait' and `nnmail-expiry-wait-function' | 143 | Overrides any `nnmail-expiry-wait' or `nnmail-expiry-wait-function' |
| 144 | when expiring expirable messages. The value can either be a number of | 144 | settings when expiring expirable messages. The value can be |
| 145 | days (not necessarily an integer) or the symbols `never' or | 145 | either a number of days (not necessarily an integer), or one of |
| 146 | `immediate'.") | 146 | the symbols `never' or `immediate'.") |
| 147 | 147 | ||
| 148 | (expiry-target (choice :tag "Expiry Target" | 148 | (expiry-target (choice :tag "Expiry Target" |
| 149 | :value delete | 149 | :value delete |
diff --git a/lisp/gnus/nnmail.el b/lisp/gnus/nnmail.el index de6b01774d6..33912f8cfa2 100644 --- a/lisp/gnus/nnmail.el +++ b/lisp/gnus/nnmail.el | |||
| @@ -157,32 +157,33 @@ If nil, groups like \"mail.misc\" will end up in directories like | |||
| 157 | 157 | ||
| 158 | (defcustom nnmail-expiry-wait 7 | 158 | (defcustom nnmail-expiry-wait 7 |
| 159 | "Expirable articles that are older than this will be expired. | 159 | "Expirable articles that are older than this will be expired. |
| 160 | This variable can either be a number (which will be interpreted as a | 160 | This variable can be either a number of days (not necessarily an |
| 161 | number of days) -- this doesn't have to be an integer. This variable | 161 | integer), or one of the symbols `immediate' or `never', meaning |
| 162 | can also be `immediate' and `never'." | 162 | an article is immediately or never expirable, respectively. |
| 163 | For more granular control, see `nnmail-expiry-wait-function'." | ||
| 163 | :group 'nnmail-expire | 164 | :group 'nnmail-expire |
| 164 | :type '(choice (const immediate) | 165 | :type '(choice (const :tag "Immediate" immediate) |
| 165 | (number :tag "days") | 166 | (const :tag "Never" never) |
| 166 | (const never))) | 167 | (number :tag "Days"))) |
| 167 | 168 | ||
| 168 | (defcustom nnmail-expiry-wait-function nil | 169 | (defcustom nnmail-expiry-wait-function nil |
| 169 | "Variable that holds function to specify how old articles should be before they are expired. | 170 | "Function to determine how old articles should be before they are expired. |
| 170 | The function will be called with the name of the group that the expiry | 171 | The function is called with the name of the group that the expiry |
| 171 | is to be performed in, and it should return an integer that says how | 172 | is to be performed in, and should return a value supported by |
| 172 | many days an article can be stored before it is considered \"old\". | 173 | `nnmail-expiry-wait', which it overrides. If this variable is |
| 173 | It can also return the values `never' and `immediate'. | 174 | nil, the value of `nnmail-expiry-wait' is used instead. |
| 174 | 175 | ||
| 175 | E.g.: | 176 | E.g.: |
| 176 | 177 | ||
| 177 | \(setq nnmail-expiry-wait-function | 178 | \(setq nnmail-expiry-wait-function |
| 178 | (lambda (newsgroup) | 179 | (lambda (group) |
| 179 | (cond ((string-match \"private\" newsgroup) 31) | 180 | (cond ((string-match-p \"private\" group) 31) |
| 180 | ((string-match \"junk\" newsgroup) 1) | 181 | ((string-match-p \"junk\" group) 1) |
| 181 | ((string-match \"important\" newsgroup) \\='never) | 182 | ((string-match-p \"important\" group) \\='never) |
| 182 | (t 7))))" | 183 | (t 7))))" |
| 183 | :group 'nnmail-expire | 184 | :group 'nnmail-expire |
| 184 | :type '(choice (const :tag "nnmail-expiry-wait" nil) | 185 | :type '(choice (const :tag "nnmail-expiry-wait" nil) |
| 185 | (function :format "%v" nnmail-))) | 186 | (function :tag "Custom function"))) |
| 186 | 187 | ||
| 187 | (defcustom nnmail-expiry-target 'delete | 188 | (defcustom nnmail-expiry-target 'delete |
| 188 | "Variable that says where expired messages should end up. | 189 | "Variable that says where expired messages should end up. |
diff --git a/lisp/simple.el b/lisp/simple.el index da20de4ad9c..3c5ea1ca75a 100644 --- a/lisp/simple.el +++ b/lisp/simple.el | |||
| @@ -4461,7 +4461,7 @@ retrieved via \\[yank] \\[yank-pop]." | |||
| 4461 | :version "23.2") | 4461 | :version "23.2") |
| 4462 | 4462 | ||
| 4463 | (defcustom kill-do-not-save-duplicates nil | 4463 | (defcustom kill-do-not-save-duplicates nil |
| 4464 | "Do not add a new string to `kill-ring' if it duplicates the last one. | 4464 | "If non-nil, don't add a string to `kill-ring' if it duplicates the last one. |
| 4465 | The comparison is done using `equal-including-properties'." | 4465 | The comparison is done using `equal-including-properties'." |
| 4466 | :type 'boolean | 4466 | :type 'boolean |
| 4467 | :group 'killing | 4467 | :group 'killing |