diff options
| author | Stefan Monnier | 2025-11-26 12:19:25 -0500 |
|---|---|---|
| committer | Stefan Monnier | 2025-11-27 10:20:04 -0500 |
| commit | 43bcf3c43b287d5bc6ee7ce5fc508bc4bdfd371b (patch) | |
| tree | 42cbf7070888720f12fa2eabf046672d6741fdd0 | |
| parent | 4b4b48d019f146242184829ec222855432c959a5 (diff) | |
| download | emacs-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.el | 9 |
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. | |||
| 8026 | This variable is not intended for user customization. Lisp | 8026 | This variable is not intended for user customization. Lisp |
| 8027 | programs should never set this variable permanently but may bind | 8027 | programs should never set this variable permanently but may bind |
| 8028 | it around calls of buffer display functions like `display-buffer' | 8028 | it around calls of buffer display functions like `display-buffer' |
| 8029 | or `pop-to-buffer'. Since such a binding will affect any nested | 8029 | or `pop-to-buffer'. |
| 8030 | |||
| 8031 | Since such a binding will affect unconditionally any nested | ||
| 8030 | buffer display requests, this variable should be used with utmost | 8032 | buffer display requests, this variable should be used with utmost |
| 8031 | care.") | 8033 | care, typically in response to an explicit request by the user. |
| 8034 | Also, any code that sets this variable needs to interact nicely with | ||
| 8035 | other code that sets this variable. | ||
| 8036 | See `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 |