aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2016-10-17 10:26:55 +0300
committerEli Zaretskii2016-10-17 10:26:55 +0300
commit2331056cfd8928e596fdd86f9dffd46547283d2f (patch)
treee1d810e38a1a0e644f244571358e30d8a79f0853
parentd70ed8aaeae8529813f591ce548631e424d853a2 (diff)
parenta4285bcb1114e29200001f33af9b4802167d6140 (diff)
downloademacs-2331056cfd8928e596fdd86f9dffd46547283d2f.tar.gz
emacs-2331056cfd8928e596fdd86f9dffd46547283d2f.zip
Merge branch 'emacs-25' of git.savannah.gnu.org:/srv/git/emacs into emacs-25
-rw-r--r--lisp/ibuf-ext.el12
-rw-r--r--lisp/ibuffer.el3
-rw-r--r--lisp/simple.el4
3 files changed, 13 insertions, 6 deletions
diff --git a/lisp/ibuf-ext.el b/lisp/ibuf-ext.el
index f5375612c34..4443383cdf5 100644
--- a/lisp/ibuf-ext.el
+++ b/lisp/ibuf-ext.el
@@ -347,10 +347,14 @@ the mode if ARG is omitted or nil."
347 :modifier-p nil) 347 :modifier-p nil)
348 (shell-command (concat command " " 348 (shell-command (concat command " "
349 (shell-quote-argument 349 (shell-quote-argument
350 (if buffer-file-name 350 (or buffer-file-name
351 buffer-file-name 351 (let ((file
352 (make-temp-file 352 (make-temp-file
353 (substring (buffer-name) 0 (min 10 (length (buffer-name)))))))))) 353 (substring
354 (buffer-name) 0
355 (min 10 (length (buffer-name)))))))
356 (write-region nil nil file nil 0)
357 file))))))
354 358
355;;;###autoload (autoload 'ibuffer-do-eval "ibuf-ext") 359;;;###autoload (autoload 'ibuffer-do-eval "ibuf-ext")
356(define-ibuffer-op eval (form) 360(define-ibuffer-op eval (form)
diff --git a/lisp/ibuffer.el b/lisp/ibuffer.el
index 9d23e64cd81..1295ed7a82d 100644
--- a/lisp/ibuffer.el
+++ b/lisp/ibuffer.el
@@ -2336,7 +2336,8 @@ FORMATS is the value to use for `ibuffer-formats'.
2336 (setq other-window-p t)) 2336 (setq other-window-p t))
2337 (let ((buf (get-buffer-create (or name "*Ibuffer*")))) 2337 (let ((buf (get-buffer-create (or name "*Ibuffer*"))))
2338 (if other-window-p 2338 (if other-window-p
2339 (funcall (if noselect (lambda (buf) (display-buffer buf t)) #'pop-to-buffer) buf) 2339 (or (and noselect (display-buffer buf t))
2340 (pop-to-buffer buf t))
2340 (funcall (if noselect #'display-buffer #'switch-to-buffer) buf)) 2341 (funcall (if noselect #'display-buffer #'switch-to-buffer) buf))
2341 (with-current-buffer buf 2342 (with-current-buffer buf
2342 (save-selected-window 2343 (save-selected-window
diff --git a/lisp/simple.el b/lisp/simple.el
index c43fe548c82..67c02665ea1 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -3749,6 +3749,7 @@ support pty association, if PROGRAM is nil."
3749(define-derived-mode process-menu-mode tabulated-list-mode "Process Menu" 3749(define-derived-mode process-menu-mode tabulated-list-mode "Process Menu"
3750 "Major mode for listing the processes called by Emacs." 3750 "Major mode for listing the processes called by Emacs."
3751 (setq tabulated-list-format [("Process" 15 t) 3751 (setq tabulated-list-format [("Process" 15 t)
3752 ("PID" 7 t)
3752 ("Status" 7 t) 3753 ("Status" 7 t)
3753 ("Buffer" 15 t) 3754 ("Buffer" 15 t)
3754 ("TTY" 12 t) 3755 ("TTY" 12 t)
@@ -3775,6 +3776,7 @@ Also, delete any process that is exited or signaled."
3775 (process-query-on-exit-flag p)) 3776 (process-query-on-exit-flag p))
3776 (let* ((buf (process-buffer p)) 3777 (let* ((buf (process-buffer p))
3777 (type (process-type p)) 3778 (type (process-type p))
3779 (pid (if (process-id p) (format "%d" (process-id p)) "--"))
3778 (name (process-name p)) 3780 (name (process-name p))
3779 (status (symbol-name (process-status p))) 3781 (status (symbol-name (process-status p)))
3780 (buf-label (if (buffer-live-p buf) 3782 (buf-label (if (buffer-live-p buf)
@@ -3810,7 +3812,7 @@ Also, delete any process that is exited or signaled."
3810 (format " at %s b/s" speed) 3812 (format " at %s b/s" speed)
3811 ""))))) 3813 "")))))
3812 (mapconcat 'identity (process-command p) " ")))) 3814 (mapconcat 'identity (process-command p) " "))))
3813 (push (list p (vector name status buf-label tty cmd)) 3815 (push (list p (vector name pid status buf-label tty cmd))
3814 tabulated-list-entries)))))) 3816 tabulated-list-entries))))))
3815 3817
3816(defun process-menu-visit-buffer (button) 3818(defun process-menu-visit-buffer (button)