diff options
| author | Glenn Morris | 2017-02-20 18:08:48 -0800 |
|---|---|---|
| committer | Glenn Morris | 2017-02-20 18:08:48 -0800 |
| commit | 08c73cdc6e2436473b467e207c1a713bb271da11 (patch) | |
| tree | 32b5c9e0565a080504d869a2986d91fe670c9ec4 | |
| parent | bfd1afb3da61e31ded80ef68dc72c50e570e37ed (diff) | |
| download | emacs-08c73cdc6e2436473b467e207c1a713bb271da11.tar.gz emacs-08c73cdc6e2436473b467e207c1a713bb271da11.zip | |
; Add a new TODO item
* etc/TODO: Add a new entry for :set-after.
* lisp/startup.el: Related comment.
| -rw-r--r-- | etc/TODO | 11 | ||||
| -rw-r--r-- | lisp/startup.el | 2 |
2 files changed, 12 insertions, 1 deletions
| @@ -968,6 +968,17 @@ addition, toolkit builds create their menu bars in toolkit-specific | |||
| 968 | parts of code, bypassing xdisp.c, so those parts need to be enhanced | 968 | parts of code, bypassing xdisp.c, so those parts need to be enhanced |
| 969 | with toolkit-specific code to display the menu bar right to left. | 969 | with toolkit-specific code to display the menu bar right to left. |
| 970 | 970 | ||
| 971 | ** Custom | ||
| 972 | |||
| 973 | *** Extend :set-after to also mean initialize after. | ||
| 974 | If defcustom A specifies :set-after '(B), then if a user customizes | ||
| 975 | both A and B, custom will set A after B. But if the user only customizes | ||
| 976 | A, then if B is already defined, it gets left at its original setting. | ||
| 977 | Instead, if B has not been customized it should be re-initialized | ||
| 978 | (on the assumption that the default value depends on A). | ||
| 979 | See the places where we manually call custom-reevaluate-setting, | ||
| 980 | such as for mail-host-address and user-mail-address in startup.el. | ||
| 981 | |||
| 971 | ** ImageMagick support | 982 | ** ImageMagick support |
| 972 | 983 | ||
| 973 | *** image-type-header-regexps priorities the jpeg loader over the | 984 | *** image-type-header-regexps priorities the jpeg loader over the |
diff --git a/lisp/startup.el b/lisp/startup.el index 2d48bd5df15..bc60bbd08b8 100644 --- a/lisp/startup.el +++ b/lisp/startup.el | |||
| @@ -1298,7 +1298,7 @@ the `--debug-init' option to view a complete error backtrace." | |||
| 1298 | ;; Yes, this is ugly, but slightly less so than leaving | 1298 | ;; Yes, this is ugly, but slightly less so than leaving |
| 1299 | ;; user-mail-address uninitialized during init file processing. | 1299 | ;; user-mail-address uninitialized during init file processing. |
| 1300 | ;; Perhaps we should make :set-after do something like this? | 1300 | ;; Perhaps we should make :set-after do something like this? |
| 1301 | ;; Ie, extend it to also mean (re)initialize-after. | 1301 | ;; Ie, extend it to also mean (re)initialize-after. See etc/TODO. |
| 1302 | (equal user-mail-address | 1302 | (equal user-mail-address |
| 1303 | (let (mail-host-address) | 1303 | (let (mail-host-address) |
| 1304 | (ignore-errors | 1304 | (ignore-errors |