From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#4362: 23.1: proced -- Mode help lists 'd' as mark command (prefer 'm') Date: Wed, 09 Sep 2009 03:57:38 +0300 Organization: JURTA Message-ID: <87iqfs25rp.fsf_-_@mail.jurta.org> References: <87bplonftg.fsf@jondo.cante.net> Reply-To: Juri Linkov , 4362@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1252466862 4580 80.91.229.12 (9 Sep 2009 03:27:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 9 Sep 2009 03:27:42 +0000 (UTC) Cc: Jari Aalto To: 4362@emacsbugs.donarmstrong.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Sep 09 05:27:34 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MlDqH-0000nu-MB for geb-bug-gnu-emacs@m.gmane.org; Wed, 09 Sep 2009 05:27:33 +0200 Original-Received: from localhost ([127.0.0.1]:36733 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MlDqH-0005VE-4q for geb-bug-gnu-emacs@m.gmane.org; Tue, 08 Sep 2009 23:27:33 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MlDps-0005NV-B9 for bug-gnu-emacs@gnu.org; Tue, 08 Sep 2009 23:27:08 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MlDpm-0005Mh-Rj for bug-gnu-emacs@gnu.org; Tue, 08 Sep 2009 23:27:08 -0400 Original-Received: from [199.232.76.173] (port=56189 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MlDpm-0005Ma-Ka for bug-gnu-emacs@gnu.org; Tue, 08 Sep 2009 23:27:02 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:48357) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MlDpl-0000vj-Tw for bug-gnu-emacs@gnu.org; Tue, 08 Sep 2009 23:27:02 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n893Qwpi018822; Tue, 8 Sep 2009 20:26:59 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n893K62t017647; Tue, 8 Sep 2009 20:20:06 -0700 Resent-Date: Tue, 8 Sep 2009 20:20:06 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Juri Linkov Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Wed, 09 Sep 2009 03:20:06 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 4362 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 4362-submit@emacsbugs.donarmstrong.com id=B4362.125246605916765 (code B ref 4362); Wed, 09 Sep 2009 03:20:06 +0000 Original-Received: (at 4362) by emacsbugs.donarmstrong.com; 9 Sep 2009 03:14:19 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from mx2.starman.ee (smtp-out2.starman.ee [85.253.0.4]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n893EHRf016756 for <4362@emacsbugs.donarmstrong.com>; Tue, 8 Sep 2009 20:14:19 -0700 X-Virus-Scanned: by Amavisd-New at mx2.starman.ee Original-Received: from mail.starman.ee (82.131.28.177.cable.starman.ee [82.131.28.177]) by mx2.starman.ee (Postfix) with ESMTP id 1572F3F4296; Wed, 9 Sep 2009 06:14:11 +0300 (EEST) In-Reply-To: (Emacs bug Tracking System's message of "Mon, 07 Sep 2009 02:45:04 +0000") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (x86_64-pc-linux-gnu) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Tue, 08 Sep 2009 23:27:08 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:30876 Archived-At: > M-x proced > C-h m > Proced: user by -PU mode: > Mode for displaying UNIX system processes and sending signals to them. > Type M-x proced to start a Proced session. In a Proced buffer >>> type d to mark a process for later commands. > Type x to send signals to marked processes. > > SUGGESITON > > PLease prefer listing the 'm' as the mark command in the mode help > listing. 'd' and 'm' both seem to mark lines, but for mode help, listing > the 'm' would better follow the convention used in other buffers like buffer > list, dired etc. > > From: Glenn Morris > To: 4362-done@emacsbugs.donarmstrong.com > Date: Sun, 06 Sep 2009 22:35:58 -0400 > > * proced.el (proced-mode-map): Bind "d" to proced-mark-alt. > (proced-mark-alt): New alias, to control the advertised key. (Bug#4362) But now `C-h m' displays: m proced-mark d proced-mark-alt that causes a false impression that these commands are different. A simpler fix would be just changing the order of `d' and `m' bindings in `proced-mode-map' like: @@ -459,8 +459,8 @@ (define-key km [down] 'next-line) (define-key km [up] 'previous-line) ;; marking - (define-key km "d" 'proced-mark) ; Dired compatibility ("delete") (define-key km "m" 'proced-mark) + (define-key km "d" 'proced-mark) ; Dired compatibility ("delete") (define-key km "u" 'proced-unmark) (define-key km "\177" 'proced-unmark-backward) (define-key km "M" 'proced-mark-all) But really I don't understand why `m' should be preferred to `d'? In Proced like in Dired, `d' flags a process for deletion, and `x' commits the operation. `m' is an alias for `d' because currently there is no more dired-like operations on processes. The only reason to prefer `m' over `d' in the documentation now is the fact that proced-mark marks a process with the "*" character (like dired's `m' does) instead of "D" (like dired's "d" does) until someone comes with an idea of different operations for `m' and `d' in Proced like in Buffer-menu where they are bound to different commands: m -- mark current line's buffer to be displayed. d -- mark that buffer to be deleted, and move down. x -- delete or save marked buffers. -- Juri Linkov http://www.jurta.org/emacs/