diff options
| author | Eli Zaretskii | 2019-08-22 20:46:31 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2019-08-22 20:46:31 +0300 |
| commit | bb5cd7c4caf415e40836edbbc4e62b0dd411d73f (patch) | |
| tree | ff40516be9278bd1542a249acc9b646a98a1d153 /lisp | |
| parent | 1f441de5fec867af069e32a5fc9b0efd50e52851 (diff) | |
| download | emacs-bb5cd7c4caf415e40836edbbc4e62b0dd411d73f.tar.gz emacs-bb5cd7c4caf415e40836edbbc4e62b0dd411d73f.zip | |
Recompute user-emacs-directory-relative defcustoms one more time
* lisp/startup.el (command-line): Re-evaluate the
custom-delayed predefined variables one more time after
loading the user's init file. (Bug#37116)
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/startup.el | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/lisp/startup.el b/lisp/startup.el index 564428580b1..ff90646d7ae 100644 --- a/lisp/startup.el +++ b/lisp/startup.el | |||
| @@ -406,6 +406,7 @@ if you have not already set `auto-save-list-file-name' yourself. | |||
| 406 | Directories in the prefix will be created if necessary. | 406 | Directories in the prefix will be created if necessary. |
| 407 | Set this to nil if you want to prevent `auto-save-list-file-name' | 407 | Set this to nil if you want to prevent `auto-save-list-file-name' |
| 408 | from being initialized." | 408 | from being initialized." |
| 409 | :initialize 'custom-initialize-delay | ||
| 409 | :type '(choice (const :tag "Don't record a session's auto save list" nil) | 410 | :type '(choice (const :tag "Don't record a session's auto save list" nil) |
| 410 | string) | 411 | string) |
| 411 | :group 'auto-save) | 412 | :group 'auto-save) |
| @@ -1282,8 +1283,7 @@ please check its value") | |||
| 1282 | ;; depends on the runtime context, in case some of them depend on | 1283 | ;; depends on the runtime context, in case some of them depend on |
| 1283 | ;; the window-system features. Example: blink-cursor-mode. | 1284 | ;; the window-system features. Example: blink-cursor-mode. |
| 1284 | (let (current-load-list) ; c-r-s may call defvar, and hence LOADHIST_ATTACH | 1285 | (let (current-load-list) ; c-r-s may call defvar, and hence LOADHIST_ATTACH |
| 1285 | (mapc 'custom-reevaluate-setting custom-delayed-init-variables) | 1286 | (mapc 'custom-reevaluate-setting custom-delayed-init-variables)) |
| 1286 | (setq custom-delayed-init-variables nil)) | ||
| 1287 | 1287 | ||
| 1288 | (normal-erase-is-backspace-setup-frame) | 1288 | (normal-erase-is-backspace-setup-frame) |
| 1289 | 1289 | ||
| @@ -1377,6 +1377,14 @@ please check its value") | |||
| 1377 | (eq face-ignored-fonts old-face-ignored-fonts)) | 1377 | (eq face-ignored-fonts old-face-ignored-fonts)) |
| 1378 | (clear-face-cache))) | 1378 | (clear-face-cache))) |
| 1379 | 1379 | ||
| 1380 | ;; Re-evaluate again the predefined variables whose initial value | ||
| 1381 | ;; depends on the runtime context, in case the user init file | ||
| 1382 | ;; modified user-emacs-directory. Examples: abbrev-file-name, | ||
| 1383 | ;; auto-save-list-file-prefix. | ||
| 1384 | (let (current-load-list) ; c-r-s may call defvar, and hence LOADHIST_ATTACH | ||
| 1385 | (mapc 'custom-reevaluate-setting custom-delayed-init-variables) | ||
| 1386 | (setq custom-delayed-init-variables nil)) | ||
| 1387 | |||
| 1380 | (setq after-init-time (current-time)) | 1388 | (setq after-init-time (current-time)) |
| 1381 | ;; Display any accumulated warnings after all functions in | 1389 | ;; Display any accumulated warnings after all functions in |
| 1382 | ;; `after-init-hook' like `desktop-read' have finalized possible | 1390 | ;; `after-init-hook' like `desktop-read' have finalized possible |