From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: Key binding M-g should really be goto-line Date: Wed, 09 Mar 2005 09:05:33 +0200 Organization: JURTA Message-ID: <87y8cx4b3e.fsf@jurta.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1110353594 12918 80.91.229.2 (9 Mar 2005 07:33:14 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 9 Mar 2005 07:33:14 +0000 (UTC) Cc: "Jari Aalto+mail.emacs" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Mar 09 08:33:14 2005 Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1D8vgh-00052r-CL for ged-emacs-devel@m.gmane.org; Wed, 09 Mar 2005 08:32:59 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1D8vvK-0004R8-Dy for ged-emacs-devel@m.gmane.org; Wed, 09 Mar 2005 02:48:06 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1D8vuq-0004Ku-5H for emacs-devel@gnu.org; Wed, 09 Mar 2005 02:47:37 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1D8vui-0004GD-Ji for emacs-devel@gnu.org; Wed, 09 Mar 2005 02:47:30 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1D8vui-0004GA-Hd for emacs-devel@gnu.org; Wed, 09 Mar 2005 02:47:28 -0500 Original-Received: from [194.126.101.98] (helo=MXR-5.estpak.ee) by monty-python.gnu.org with esmtp (Exim 4.34) id 1D8vSw-0004vq-L9 for emacs-devel@gnu.org; Wed, 09 Mar 2005 02:18:46 -0500 Original-Received: from mail.neti.ee (80-235-40-222-dsl.mus.estpak.ee [80.235.40.222]) by MXR-1.estpak.ee (Postfix) with ESMTP id 7C37A10F7A2; Wed, 9 Mar 2005 09:18:34 +0200 (EET) Original-To: emacs-devel@gnu.org User-Agent: Gnus/5.110002 (No Gnus v0.2) 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: news.gmane.org gmane.emacs.devel:34355 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:34355 I see `goto-line' finally bound to M-g in CVS. Good news! After such a big change, it is time now for a few improvements. 1. Before this change, font-lock-fontify-block was bound to `M-g M-g'. Now it is bound to `M-o M-g'. I suspect that the reason to bind it to `M-g M-g' was to make it easier to run this frequent command by typing the same key twice. If this is true then now perhaps it should be rebound to `M-o M-o'. 2. goto-line is not too frequent command to deserve the sole M-g key. There are many other goto-related commands that could share the same mnemonics and have the common M-g prefix key. Since goto-line is still the most frequent among them, it could have also the most easily typed key binding `M-g M-g'. Other commands that deserve a key binding with a `M-g' prefix are: 2.1. next-error (alias goto-next-locus), previous-error The current key binding C-x ` is too hard to type on many keyboards, and it is the constant cause of complaints. The prefix key M-g will allow to add natural key bindings for these commands and to reduce complaints in future. 2.2. dired-goto-file This command is used to move point to the specified file name in dired buffers. It would be useful to run this command not only in dired buffers, but in any buffer, with a new key binding. 2.3. goto-char is much less used command than goto-line, but sometimes it's needed and could have a key binding too. 2.4. The M-g prefix key will also reserve a space for adding other goto-related commands later. Similarly to facemenu-keymap which currently displays the message after typing M-o: Set face: default, bold, italic, l = bold-italic, underline, Other... M-g could display a message: Go to: line, M-g = line, char, file, next error, prev error, Other... and have a keymap with the following key bindings: M-g M-g - goto-line M-g l - goto-line M-g c - goto-char M-g f - dired-goto-file M-g n - next-error (goto-next-locus) M-g M-n - next-error (goto-next-locus) M-g p - previous-error M-g M-p - previous-error -- Juri Linkov http://www.jurta.org/emacs/