all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Juri Linkov <juri@linkov.net>
To: 30016@debbugs.gnu.org
Subject: bug#30016: Improve visibility of Process List
Date: Wed, 10 Jan 2018 23:28:51 +0200	[thread overview]
Message-ID: <87inc9csj0.fsf@mail.linkov.net> (raw)
In-Reply-To: <871sj0osi2.fsf@mail.linkov.net> (Juri Linkov's message of "Tue,  09 Jan 2018 01:11:49 +0200")

> Meanwhile I propose another improvement for *Process List* displayed
> on ‘C-x C-c’.  Currently it splits the frame side-by-side and displays
> the process list far away from the minibuffer containing the question
> “Active processes exist; kill them and exit anyway? (yes or no) ”
>
> This patch will display the buffer *Process List* near the minibuffer
> to allow easier inspection of the active processes and display the
> process list with the full frame width that will help to also see
> usually long command lines in their entirety:

Actually the same would be useful for *Local Variables* as well:

diff --git a/lisp/files.el b/lisp/files.el
index 5b8dff7..7194b56 100644
--- a/lisp/files.el
+++ b/lisp/files.el
@@ -3315,7 +3315,15 @@ hack-local-variables-confirm
 
       ;; Display the buffer and read a choice.
       (save-window-excursion
-	(pop-to-buffer buf)
+	(pop-to-buffer buf `((display-buffer--maybe-same-window
+                              display-buffer-reuse-window
+                              display-buffer--maybe-pop-up-frame-or-window
+                              display-buffer-at-bottom)
+	                     ,(if temp-buffer-resize-mode
+		                  '(window-height . resize-temp-buffer-window)
+	                        '(window-height . fit-window-to-buffer))
+	                     ,(when temp-buffer-resize-mode
+	                        '(preserve-size . (nil . t)))))
 	(let* ((exit-chars '(?y ?n ?\s ?\C-g ?\C-v))
 	       (prompt (format "Please type %s%s: "
 			       (if offer-save "y, n, or !" "y or n")
@@ -6917,8 +6925,17 @@ save-buffers-kill-emacs
                   (setq active t))
              (setq processes (cdr processes)))
            (or (not active)
-               (with-current-buffer-window
-                (get-buffer-create "*Process List*") nil
+               (with-displayed-buffer-window
+                (get-buffer-create "*Process List*")
+                `((display-buffer--maybe-same-window
+                   display-buffer-reuse-window
+                   display-buffer--maybe-pop-up-frame-or-window
+                   display-buffer-at-bottom)
+	          ,(if temp-buffer-resize-mode
+		       '(window-height . resize-temp-buffer-window)
+	             '(window-height . fit-window-to-buffer))
+	          ,(when temp-buffer-resize-mode
+	             '(preserve-size . (nil . t))))
                 #'(lambda (window _value)
                     (with-selected-window window
                       (unwind-protect






  reply	other threads:[~2018-01-10 21:28 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-07 21:54 bug#30016: Improve visibility of Process List Juri Linkov
2018-01-08  3:57 ` Eli Zaretskii
2018-01-08 23:05   ` Juri Linkov
2018-01-10 21:34     ` Juri Linkov
2018-01-11 15:50       ` Eli Zaretskii
2018-01-11 21:49         ` Juri Linkov
2018-01-29 21:50           ` Juri Linkov
2018-01-08 23:11   ` Juri Linkov
2018-01-10 21:28     ` Juri Linkov [this message]
2018-01-18 21:44   ` Juri Linkov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87inc9csj0.fsf@mail.linkov.net \
    --to=juri@linkov.net \
    --cc=30016@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.