[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#49069: 28.0.50; [PATCH] Use display-buffer for re-builder
From: |
Trust me I am a Doctor |
Subject: |
bug#49069: 28.0.50; [PATCH] Use display-buffer for re-builder |
Date: |
Thu, 08 Jul 2021 23:12:21 +0200 |
Juri Linkov <juri@linkov.net> writes:
> Also I don't know if there is any chance to fix Org-mode.
> Anyway, I'm using such workaround for Org-mode problem:
>
> #+begin_src emacs-lisp
> ;; Unfortunately, Org window customization has no effect because
> ;; ‘display-buffer-alist’ is ignored in ‘org-no-popups’
> ;; until ‘org-switch-to-buffer-other-window’ is overridden below:
> (defalias 'org-switch-to-buffer-other-window 'switch-to-buffer-other-window)
>
> ;; This allows such user customizations:
> (push '("\\`\\*Org \\(Links\\|Select\\)\\*\\'"
> display-buffer-below-selected
> (window-height . fit-window-to-buffer)
> (preserve-size . (nil . t)))
> display-buffer-alist)
> #+end_src
Nice, I was aware of overriding 'org-switch-to-buffer-other-window but
didn't customized anything yet for theses buffers.
Constantine Vetoshev <gepardcv@gmail.com> writes:
> Thank you for bringing this to my attention. I’ll test the
> display-buffer-base-action approach over
> the next couple of days, and if it works as I expect, I’ll update the
> Perspective README.
>
> Note that Juri’s example is not quite the same as mine. Please test with this
> instead:
>
> (customize-set-variable 'display-buffer-base-action
> '((display-buffer-reuse-window display-buffer-same-window)
> (reusable-frames . t)))
Ok I will update the recipe with yours -even if until now I had no issue
with emacs creating new frames. (I know ediff do it but I also now the
setting to tweak).
For now the only package that seems really difficult to work with is Magit;
transient.el is a brillant idea until you cannot see its whole windows,
but that's beyond the scope of this patch ;
Thank you both.
--
bug#49069: 28.0.50; [PATCH] Use display-buffer for re-builder, Constantine Vetoshev, 2021/07/08