From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kevin Rodgers Newsgroups: gmane.emacs.devel Subject: Re: tweak to apropos-command display Date: Tue, 22 Feb 2005 13:36:59 -0700 Message-ID: References: <1814.220.255.78.196.1108996512.squirrel@220.255.78.196> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1109104672 3117 80.91.229.2 (22 Feb 2005 20:37:52 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 22 Feb 2005 20:37:52 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Feb 22 21:37:52 2005 Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1D3gms-0004nn-MF for ged-emacs-devel@m.gmane.org; Tue, 22 Feb 2005 21:37:43 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1D3h45-0004so-Oc for ged-emacs-devel@m.gmane.org; Tue, 22 Feb 2005 15:55:29 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1D3h3E-0004Xy-3s for emacs-devel@gnu.org; Tue, 22 Feb 2005 15:54:36 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1D3h38-0004Vc-MG for emacs-devel@gnu.org; Tue, 22 Feb 2005 15:54:32 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1D3h38-0004Ui-Fa for emacs-devel@gnu.org; Tue, 22 Feb 2005 15:54:30 -0500 Original-Received: from [80.91.229.2] (helo=ciao.gmane.org) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1D3gmv-0003go-Ut for emacs-devel@gnu.org; Tue, 22 Feb 2005 15:37:46 -0500 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1D3gix-00040W-KI for emacs-devel@gnu.org; Tue, 22 Feb 2005 21:33:39 +0100 Original-Received: from 207.167.42.60 ([207.167.42.60]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 22 Feb 2005 21:33:39 +0100 Original-Received: from ihs_4664 by 207.167.42.60 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 22 Feb 2005 21:33:39 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-To: emacs-devel@gnu.org Original-Lines: 42 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 207.167.42.60 User-Agent: Mozilla Thunderbird 0.9 (X11/20041105) X-Accept-Language: en-us, en In-Reply-To: X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org X-MailScanner-To: ged-emacs-devel@m.gmane.org Xref: main.gmane.org gmane.emacs.devel:33740 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:33740 Richard Stallman wrote: > When apropos-command is displaying the keybindings associated with a > command, it often runs past the edge of the screen (esp. when displaying > M-x COMMAND RET) This makes the output very difficult to read. > > How about this change instead? > > > *** apropos.el 12 Feb 2005 03:38:01 -0500 1.101 > --- apropos.el 22 Feb 2005 04:59:34 -0500 > *************** > *** 860,872 **** > key)) > key) > item ", ")) > ! (insert "M-x") > ! (put-text-property (- (point) 3) (point) > ! 'face apropos-keybinding-face) > ! (insert " " (symbol-name symbol) " ") > ! (insert "RET") > ! (put-text-property (- (point) 3) (point) > ! 'face apropos-keybinding-face))) > (terpri) > (apropos-print-doc 2 > (if (commandp symbol) > --- 860,866 ---- > key)) > key) > item ", ")) > ! (insert "(invoke using M-x)"))) > (terpri) > (apropos-print-doc 2 > (if (commandp symbol) (insert (substitute-command-keys "(invoke using \\[execute-extended-command])")) :-) -- Kevin Rodgers