From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: storm@cua.dk (Kim F. Storm) Newsgroups: gmane.emacs.devel Subject: Re: tweak to apropos-command display Date: Mon, 21 Feb 2005 16:04:43 +0100 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=us-ascii X-Trace: sea.gmane.org 1108998274 13312 80.91.229.2 (21 Feb 2005 15:04:34 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 21 Feb 2005 15:04:34 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Feb 21 16:04:32 2005 Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1D3F5X-0002LD-2p for ged-emacs-devel@m.gmane.org; Mon, 21 Feb 2005 16:03:08 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1D3FMU-0000QT-Ka for ged-emacs-devel@m.gmane.org; Mon, 21 Feb 2005 10:20:38 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1D3FMB-0000OX-6u for emacs-devel@gnu.org; Mon, 21 Feb 2005 10:20:19 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1D3FM6-0000Kw-6N for emacs-devel@gnu.org; Mon, 21 Feb 2005 10:20:15 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1D3FM6-0000Jz-0u for emacs-devel@gnu.org; Mon, 21 Feb 2005 10:20:14 -0500 Original-Received: from [212.88.64.25] (helo=mail-relay.sonofon.dk) by monty-python.gnu.org with smtp (Exim 4.34) id 1D3F78-000483-HC for emacs-devel@gnu.org; Mon, 21 Feb 2005 10:04:46 -0500 Original-Received: (qmail 99040 invoked from network); 21 Feb 2005 15:04:44 -0000 Original-Received: from unknown (HELO kfs-l.imdomain.dk.cua.dk) (213.83.150.2) by 0 with SMTP; 21 Feb 2005 15:04:44 -0000 Original-To: "Chong Yidong" In-Reply-To: <1814.220.255.78.196.1108996512.squirrel@220.255.78.196> (Chong Yidong's message of "Mon, 21 Feb 2005 09:35:12 -0500 (EST)") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) 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:33672 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:33672 "Chong Yidong" writes: > 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. > > A simple way to deal with this problem is to put the keybindings on their > own line. Opinions? > > *** apropos.el~ Mon Feb 21 21:59:35 2005 > --- apropos.el Mon Feb 21 22:26:25 2005 > *************** > *** 824,832 **** > (if apropos-sort-by-scores > (insert " (" (number-to-string (cadr apropos-item)) ") ")) > ;; Calculate key-bindings if we want them. > ! (and do-keys > ! (commandp symbol) > ! (indent-to 30 1) > (if (let ((keys > (save-excursion > (set-buffer old-buffer) > --- 824,832 ---- > (if apropos-sort-by-scores > (insert " (" (number-to-string (cadr apropos-item)) ") ")) > ;; Calculate key-bindings if we want them. > ! (when (and do-keys > ! (commandp symbol)) > ! (insert "\n ") > (if (let ((keys > (save-excursion > (set-buffer old-buffer) IMO, it would be better if it simply didn't list the M-x binding. -- Kim F. Storm http://www.cua.dk