diff options
| author | Juri Linkov | 2018-01-18 23:43:38 +0200 |
|---|---|---|
| committer | Juri Linkov | 2018-01-18 23:43:38 +0200 |
| commit | 5ec3853326933bef899de1a8fee66d902ea8f7c9 (patch) | |
| tree | ba99e7958355ea91fd5d5841cdeee81611e4509a | |
| parent | 694ee38f8b7bd10f1d0eae8cb251daea70b5c820 (diff) | |
| download | emacs-5ec3853326933bef899de1a8fee66d902ea8f7c9.tar.gz emacs-5ec3853326933bef899de1a8fee66d902ea8f7c9.zip | |
Improve "*Process List*" and "*Local Variables*". (Bug#30016)
* lisp/files.el (save-buffers-kill-emacs): Display "*Process List*"
buffer at bottom.
(hack-local-variables-confirm): Display "*Local Variables*" buffer
at bottom.
* lisp/simple.el (process-menu-mode): Increase buffer column width
from 15 to 25.
| -rw-r--r-- | lisp/files.el | 23 | ||||
| -rw-r--r-- | lisp/simple.el | 4 |
2 files changed, 23 insertions, 4 deletions
diff --git a/lisp/files.el b/lisp/files.el index 5b8dff71310..7194b56fef2 100644 --- a/lisp/files.el +++ b/lisp/files.el | |||
| @@ -3315,7 +3315,15 @@ n -- to ignore the local variables list.") | |||
| 3315 | 3315 | ||
| 3316 | ;; Display the buffer and read a choice. | 3316 | ;; Display the buffer and read a choice. |
| 3317 | (save-window-excursion | 3317 | (save-window-excursion |
| 3318 | (pop-to-buffer buf) | 3318 | (pop-to-buffer buf `((display-buffer--maybe-same-window |
| 3319 | display-buffer-reuse-window | ||
| 3320 | display-buffer--maybe-pop-up-frame-or-window | ||
| 3321 | display-buffer-at-bottom) | ||
| 3322 | ,(if temp-buffer-resize-mode | ||
| 3323 | '(window-height . resize-temp-buffer-window) | ||
| 3324 | '(window-height . fit-window-to-buffer)) | ||
| 3325 | ,(when temp-buffer-resize-mode | ||
| 3326 | '(preserve-size . (nil . t))))) | ||
| 3319 | (let* ((exit-chars '(?y ?n ?\s ?\C-g ?\C-v)) | 3327 | (let* ((exit-chars '(?y ?n ?\s ?\C-g ?\C-v)) |
| 3320 | (prompt (format "Please type %s%s: " | 3328 | (prompt (format "Please type %s%s: " |
| 3321 | (if offer-save "y, n, or !" "y or n") | 3329 | (if offer-save "y, n, or !" "y or n") |
| @@ -6917,8 +6925,17 @@ if any returns nil. If `confirm-kill-emacs' is non-nil, calls it." | |||
| 6917 | (setq active t)) | 6925 | (setq active t)) |
| 6918 | (setq processes (cdr processes))) | 6926 | (setq processes (cdr processes))) |
| 6919 | (or (not active) | 6927 | (or (not active) |
| 6920 | (with-current-buffer-window | 6928 | (with-displayed-buffer-window |
| 6921 | (get-buffer-create "*Process List*") nil | 6929 | (get-buffer-create "*Process List*") |
| 6930 | `((display-buffer--maybe-same-window | ||
| 6931 | display-buffer-reuse-window | ||
| 6932 | display-buffer--maybe-pop-up-frame-or-window | ||
| 6933 | display-buffer-at-bottom) | ||
| 6934 | ,(if temp-buffer-resize-mode | ||
| 6935 | '(window-height . resize-temp-buffer-window) | ||
| 6936 | '(window-height . fit-window-to-buffer)) | ||
| 6937 | ,(when temp-buffer-resize-mode | ||
| 6938 | '(preserve-size . (nil . t)))) | ||
| 6922 | #'(lambda (window _value) | 6939 | #'(lambda (window _value) |
| 6923 | (with-selected-window window | 6940 | (with-selected-window window |
| 6924 | (unwind-protect | 6941 | (unwind-protect |
diff --git a/lisp/simple.el b/lisp/simple.el index 87e0b233779..e51bc132a6b 100644 --- a/lisp/simple.el +++ b/lisp/simple.el | |||
| @@ -3927,7 +3927,9 @@ support pty association, if PROGRAM is nil." | |||
| 3927 | (setq tabulated-list-format [("Process" 15 t) | 3927 | (setq tabulated-list-format [("Process" 15 t) |
| 3928 | ("PID" 7 t) | 3928 | ("PID" 7 t) |
| 3929 | ("Status" 7 t) | 3929 | ("Status" 7 t) |
| 3930 | ("Buffer" 15 t) | 3930 | ;; 25 is the length of the long standard buffer |
| 3931 | ;; name "*Async Shell Command*<10>" (bug#30016) | ||
| 3932 | ("Buffer" 25 t) | ||
| 3931 | ("TTY" 12 t) | 3933 | ("TTY" 12 t) |
| 3932 | ("Command" 0 t)]) | 3934 | ("Command" 0 t)]) |
| 3933 | (make-local-variable 'process-menu-query-only) | 3935 | (make-local-variable 'process-menu-query-only) |