From: Tino Calancha <f92capac@gmail.com>
To: 21759@debbugs.gnu.org
Subject: bug#21759: 25.0.50; process-menu-delete-process consistent w/ dired
Date: Mon, 26 Oct 2015 19:30:33 +0900 (JST) [thread overview]
Message-ID: <alpine.LRH.2.20.1510261924020.7149@calancha-ilc.kek.jp> (raw)
[-- Attachment #1: Type: text/plain, Size: 496 bytes --]
* lisp/simple (process-menu-delete-process):
After the process has being deleted and the current buffer reverted
the point is set at (point-min).
In the other hand, when the file (buffer) at point is deleted with
dired-do-delete (ibuffer-do-delete), after the current buffer is
reverted, the point is set in the line right after (before) the line we
just have deleted.
This patch follow similar behaviour as dired.
Maybe ibuffer should also follow dired on this, but that is a minor thing.
[-- Attachment #2: Type: text/plain, Size: 647 bytes --]
diff --git a/lisp/simple.el b/lisp/simple.el
index 338a060..880ef67 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -3560,8 +3560,11 @@ process-menu-mode
(defun process-menu-delete-process ()
"Kill process at point in a `list-processes' buffer."
(interactive)
- (delete-process (tabulated-list-get-id))
- (revert-buffer))
+ (let ((pos (point)))
+ (delete-process (tabulated-list-get-id))
+ (revert-buffer)
+ (goto-char pos)
+ (if (= (point) (point-max)) (forward-line -1) (goto-char (line-beginning-position)))))
(defun list-processes--refresh ()
"Recompute the list of processes for the Process List buffer.
next reply other threads:[~2015-10-26 10:30 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-26 10:30 Tino Calancha [this message]
2016-02-23 5:26 ` bug#21759: 25.0.50; process-menu-delete-process consistent w/ dired Lars Ingebrigtsen
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=alpine.LRH.2.20.1510261924020.7149@calancha-ilc.kek.jp \
--to=f92capac@gmail.com \
--cc=21759@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.