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

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

bug#17554: 24.3.91; [Regression] re-usage of dired *Marked Files* buffer


From: Juri Linkov
Subject: bug#17554: 24.3.91; [Regression] re-usage of dired *Marked Files* buffer window
Date: Fri, 06 Jun 2014 02:48:50 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (x86_64-pc-linux-gnu)

>> A good placement of the *Completions* buffer can be achieved by using:
>>
>> (add-to-list 'display-buffer-alist '("\\*Completions\\*"
>> display-buffer-at-bottom (nil)))
>>
>> It works in Dired as well with different window configurations.
>
> This displays the *Completions* buffer at the bottom, whereas 24.3
> puts it above the *Marked Files* buffer.  I have no strong
> preferences with this.  I expect either way is fine.

The *Completions* buffer is displayed by `internal-temp-output-buffer-show',
so adding a new action `display-buffer-at-bottom' to it would affect many
other unrelated commands besides completion commands.

To modify the behavior of only *Completions* we need to add it to
display-buffer-alist that will be non-empty by default:

=== modified file 'lisp/simple.el'
--- lisp/simple.el      2014-06-02 00:18:22 +0000
+++ lisp/simple.el      2014-06-05 23:43:17 +0000
@@ -7300,6 +7300,9 @@ (defun switch-to-completions ()
       ;; FIXME: Perhaps this should be done in `minibuffer-completion-help'.
       (when (bobp)
        (next-completion 1)))))
+
+(add-to-list 'display-buffer-alist '("\\*Completions\\*" 
display-buffer-at-bottom (nil)))
+
 
 ;;; Support keyboard commands to turn on various modifiers.
 





reply via email to

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