GNU bug report logs -
#52878
[PATCH] Fix display-comint-buffer-action default behavior
Previous Next
Reported by: Morgan.J.Smith <at> outlook.com
Date: Wed, 29 Dec 2021 18:42:02 UTC
Severity: normal
Tags: patch
Merged with 53189
Found in version 29.0.50
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
From: Morgan Smith <Morgan.J.Smith <at> outlook.com>
* lisp/window.el (display-comint-buffer-action): Make it an alist.
---
This is my first real contribution to Emacs :)
My copyright papers are all good (not that it matters for this).
The recent change that added display-comint-buffer-action does not do what it was supposed to. Since it is not a list, when it gets passed to display-buffer, display-buffer ignores the value.
I'm not 100% I did everything right, but I looked at gdb-display-buffer-other-frame-action for reference and verified the behavior of the change myself.
lisp/window.el | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/lisp/window.el b/lisp/window.el
index d75dd9931b..34b2d0c78a 100644
--- a/lisp/window.el
+++ b/lisp/window.el
@@ -7474,9 +7474,9 @@ display-buffer-base-action
:version "24.1"
:group 'windows)
-(defcustom display-comint-buffer-action 'display-buffer-same-window
- "The action to display a comint buffer."
- :type 'display-buffer--action-function-custom-type
+(defcustom display-comint-buffer-action '((display-buffer-same-window))
+ "`display-buffer' action for displaying comint buffers."
+ :type display-buffer--action-custom-type
:risky t
:version "29.1"
:group 'windows
--
2.34.0
This bug report was last modified 2 years and 254 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.