Prepare for future fix *Warnings* buffer and `display-buffer-alist'

This commit is contained in:
Gerard Vermeulen 2024-05-05 10:42:44 +02:00
parent 416f2435db
commit e86aab7223
1 changed files with 10 additions and 5 deletions

View File

@ -260,9 +260,7 @@ of [[info:emacs#Saving Customizations][saving customizations (info)]].
url-cookie-untrusted-urls '(".*")
use-dialog-box nil
use-short-answers t
view-read-only t
;; Suppress the missing lexical-binding cookie warnings.
warning-suppress-log-types '((lexical-binding)))
view-read-only t)
#+end_src
#+caption[Set the second set of Emacs options: pin packages to archives]:
@ -310,10 +308,16 @@ of [[info:emacs#Saving Customizations][saving customizations (info)]].
package-selected-packages '(debbugs no-littering))
#+end_src
#+caption[Set the third set of Emacs options: upgrade Org and transient]:
#+caption: Set the third set of Emacs options: upgrade Org and transient.
#+caption[Set the third set of Emacs options: tweaks]:
#+caption: Set the third set of Emacs options: tweaks.
#+name: lst:3rd-setopt-call
#+begin_src emacs-lisp -n :results silent
;; Tweak warnings:
(setopt warning-display-at-bottom nil
;; Suppress the missing lexical-binding cookie warnings.
;; warning-suppress-log-types '((lexical-binding))
)
;; To use different Org git repositories (org or gro):
(push (expand-file-name "~/VCS/org-mode/lisp") load-path)
(push (expand-file-name "~/VCS/org-contrib/lisp") load-path)
@ -689,6 +693,7 @@ for technical information.
(inhibit-same-window . nil)))
;; Handling the *Warnings* buffer like the *compilation* buffer also fails.
;; BUG#70773: Eli tells `(setq delayed-warnings-hook nil)' is better.
;; https://lists.gnu.org/archive/html/bug-gnu-emacs/2024-05/msg00253.html
(add-to-list 'display-buffer-alist
`(,(rx (or "*compilation*"))
display-buffer-no-window