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: Key binding M-g should really be goto-line Date: Wed, 02 Mar 2005 14:42:15 +0100 Message-ID: References: <01c51ee3$Blat.v2.4$8124a8c0@zahav.net.il> <20050302083113.YHKM20421.fep01-app.kolumbus.fi@cante.net> <20050302121736.VGBF13446.fep32-app.kolumbus.fi@cante.net> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1109771340 4559 80.91.229.2 (2 Mar 2005 13:49:00 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 2 Mar 2005 13:49:00 +0000 (UTC) Cc: "Alfred M. Szmidt" , nickrob@snap.net.nz, eliz@gnu.org, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Mar 02 14:48:59 2005 Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1D6UAT-0003Wp-TE for ged-emacs-devel@m.gmane.org; Wed, 02 Mar 2005 14:45:38 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1D6UTF-0006oJ-Cz for ged-emacs-devel@m.gmane.org; Wed, 02 Mar 2005 09:05:01 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1D6UR8-00062V-Lw for emacs-devel@gnu.org; Wed, 02 Mar 2005 09:02:51 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1D6UR2-0005zZ-3p for emacs-devel@gnu.org; Wed, 02 Mar 2005 09:02:45 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1D6UR0-0005vx-Mu for emacs-devel@gnu.org; Wed, 02 Mar 2005 09:02:43 -0500 Original-Received: from [212.88.64.25] (helo=mail-relay.sonofon.dk) by monty-python.gnu.org with smtp (Exim 4.34) id 1D6U7B-0001mT-8y for emacs-devel@gnu.org; Wed, 02 Mar 2005 08:42:13 -0500 Original-Received: (qmail 64133 invoked from network); 2 Mar 2005 13:42:11 -0000 Original-Received: from unknown (HELO kfs-l.imdomain.dk.cua.dk) (213.83.150.2) by 0 with SMTP; 2 Mar 2005 13:42:11 -0000 Original-To: jari.aalto@cante.net (Jari Aalto+mail.linux) In-Reply-To: <20050302121736.VGBF13446.fep32-app.kolumbus.fi@cante.net> (Jari Aalto's message of "Wed, 2 Mar 2005 14:17:37 +0200") 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:34076 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:34076 jari.aalto@cante.net (Jari Aalto+mail.linux) writes: > | Nobody explained good arguments why current M-g is immovable? > | > | ,---- > | | http://lists.gnu.org/archive/html/emacs-devel/2004-03/msg00642.html > | | From: Richard Stallman > | | > | | "I want Emacs to move in the direction of doing word processing. It > | | may take years, but we will get there. Then commands to specify faces > | | will become important, and will need a good key binding. > | | > | | I chose the M-g binding for that reason, and the reason continues to > | | have force. So I don't intend to change that binding." > | `---- > > I meant "immovable" - in literal sense. I'm not suggesting that the > facemenu is removed. But I have big question in my mind why it has to be at > M-g - at binding - which doesn't even sound anything familiar to do with > faces. I also suggested this little piggy when M-g was discussed last time: It keeps the current face menu bindings, but in addition allows you to enter M-g 123 RET to jump to line 123... Only problem is that it doesn't show the "Goto line:" prompt until you type the first digit. (defun goto-line-piggyback () (interactive) (goto-line (string-to-int (read-string "Goto line: " (substring (this-command-keys) -1))))) (dolist (digit '(?0 ?1 ?2 ?3 ?4 ?5 ?6 ?7 ?8 ?9)) (define-key facemenu-keymap (vector digit) 'goto-line-piggyback)) BTW, who appends "autolearn=no version=3.0.2" to the subject ? -- Kim F. Storm http://www.cua.dk