emacs-devel
[Top][All Lists]
Advanced

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

Re: master 18b680cfd1: Fix bug#52467 by adding a new custom variable 'di


From: Dmitry Gutov
Subject: Re: master 18b680cfd1: Fix bug#52467 by adding a new custom variable 'display-comint-buffer-action'
Date: Sun, 2 Jan 2022 22:52:37 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0

On 02.01.2022 21:40, martin rudalics wrote:
 > Instead of this, all calls could add
 > a special tag:
 >
 >    (pop-to-buffer "*inferior-lisp*" '(nil (comint . t)))
 >
 > Then a condition predicate could check for this tag:
 >
 >    (defun display-buffer-comint (buffer-name action)
 >      (assq 'comint action))
 >
 > and the user can customize all comint commands with:
 >
 >    (add-to-list 'display-buffer-alist
 >                 '(display-buffer-comint
 >                   (display-buffer-same-window
 >                    . ((reusable-frames . 0)
 >                       (inhibit-same-window . nil)))))

If we do that we should first make a list of possible tags like 'occur'
or 'info' and check whether we should provide similar functions for them
too.

Perhaps the customized value structure should simply refer to major mode(s)?

Then there won't be a need to create a predefined list with mappings.



reply via email to

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