emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debbugs-tracker] bug#25946: closed (26.0.50; display-buffer ignores ign


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#25946: closed (26.0.50; display-buffer ignores ignores reusable-frames in display-buffer-alist)
Date: Sat, 11 Mar 2017 10:21:01 +0000

Your message dated Sat, 11 Mar 2017 11:20:34 +0100
with message-id <address@hidden>
and subject line Re: bug#25946: 26.0.50; display-buffer ignores ignores 
reusable-frames in display-buffer-alist
has caused the debbugs.gnu.org bug report #25946,
regarding 26.0.50; display-buffer ignores ignores reusable-frames in 
display-buffer-alist
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
25946: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=25946
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: 26.0.50; display-buffer ignores ignores reusable-frames in display-buffer-alist Date: Fri, 03 Mar 2017 11:01:43 +0100 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux)
Hi there,

I fail to get display-buffer-alist working.

Recipe starting from 'emacs -Q':
Eval this expression:
(customize-set-variable
 'display-buffer-alist
 '(("\\*shell\\*"
    . (display-buffer-pop-up-frame . '((reusable-frames . t))))))
M-x shell
A shell frame opens as expected.
M-x shell
A new frame is opened, while I expected the existing one to be
reused.

Actually, I'm sure that I do not understand the documentation for
display-buffer (redirected from display-buffer-alist).  Maybe that
is a separate bug.

In previous versions of Emacs, I used special-display-buffer-names,
which is obsolete now and points to the variable used above,
display-buffer-alist.  It would be great if the documentation for
that variable explained what to do.  In particular, I would like the
frame to be special/dedicated such that it disappears if the buffer
is killed.  Is that lack of documentation a separate bug?

Best wishes
Jens


In GNU Emacs 26.0.50 (build 1, x86_64-unknown-linux-gnu, X toolkit, Xaw3d 
scroll bars)
 of 2017-02-24 built on debian-8
Repository revision: 91932fff1ded8ed3b4d39dd06891f26960153b9e



--- End Message ---
--- Begin Message --- Subject: Re: bug#25946: 26.0.50; display-buffer ignores ignores reusable-frames in display-buffer-alist Date: Sat, 11 Mar 2017 11:20:34 +0100
>>> (customize-set-variable
>>>   'display-buffer-alist
>>>   '(("\\*text\\*"
>>>      (display-buffer-reuse-window display-buffer-pop-up-frame)
>>>      (reusable-frames . t))))
>>>
>>> (setq display-buffer-mark-dedicated t)
>>> (setq pop-up-frame-alist (cons '(unsplittable . t) pop-up-frame-alist))
>>>
>>> (pop-to-buffer (get-buffer-create "*text*") t)
>
> Yes, that works for me.
>
>> TeX-recenter-output-buffer could be redefined as follows to get the same
>> result (according to my tests) without resorting to pop-up-frame-alist:
>>
>>     (defun TeX-recenter-output-buffer (line)
>> [...]
>
> Yes, that also works for me.

Thank you for checking.  I'm closing this bug.  If you think that the
documentation should be improved, please post concrete suggestions or
(preferably) a patch in a new report.

Thanks to everyone involved, martin


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]