aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2025-11-26 12:19:25 -0500
committerStefan Monnier2025-11-27 10:20:04 -0500
commit43bcf3c43b287d5bc6ee7ce5fc508bc4bdfd371b (patch)
tree42cbf7070888720f12fa2eabf046672d6741fdd0
parent4b4b48d019f146242184829ec222855432c959a5 (diff)
downloademacs-43bcf3c43b287d5bc6ee7ce5fc508bc4bdfd371b.tar.gz
emacs-43bcf3c43b287d5bc6ee7ce5fc508bc4bdfd371b.zip
(display-buffer-overriding-action): Try and discourage abuse
* lisp/window.el (display-buffer-overriding-action): Document the intended use in the deluded hope to reduce the current abuse.
-rw-r--r--lisp/window.el9
1 files changed, 7 insertions, 2 deletions
diff --git a/lisp/window.el b/lisp/window.el
index af5d73d3384..6a35e553bb9 100644
--- a/lisp/window.el
+++ b/lisp/window.el
@@ -8026,9 +8026,14 @@ See `display-buffer' for details.
8026This variable is not intended for user customization. Lisp 8026This variable is not intended for user customization. Lisp
8027programs should never set this variable permanently but may bind 8027programs should never set this variable permanently but may bind
8028it around calls of buffer display functions like `display-buffer' 8028it around calls of buffer display functions like `display-buffer'
8029or `pop-to-buffer'. Since such a binding will affect any nested 8029or `pop-to-buffer'.
8030
8031Since such a binding will affect unconditionally any nested
8030buffer display requests, this variable should be used with utmost 8032buffer display requests, this variable should be used with utmost
8031care.") 8033care, typically in response to an explicit request by the user.
8034Also, any code that sets this variable needs to interact nicely with
8035other code that sets this variable.
8036See `other-frame-prefix' for an example of use.")
8032(put 'display-buffer-overriding-action 'risky-local-variable t) 8037(put 'display-buffer-overriding-action 'risky-local-variable t)
8033 8038
8034(defcustom display-buffer-alist nil 8039(defcustom display-buffer-alist nil