From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Suggestion: Mapping of M-g should be goto-line Date: 25 Mar 2004 11:53:39 -0500 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <20040325123800.4ADA.JMBARRANQUERO@wke.es> <86zna5cdnp.fsf@avet.kvota.net> <20040325143336.4AE3.JMBARRANQUERO@wke.es> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1080235504 22922 80.91.224.253 (25 Mar 2004 17:25:04 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 25 Mar 2004 17:25:04 +0000 (UTC) Cc: Juanma Barranquero , Danilo Segan , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Thu Mar 25 18:24:39 2004 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1B6Yar-0004JJ-00 for ; Thu, 25 Mar 2004 18:24:37 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1B6Yaq-0004cr-00 for ; Thu, 25 Mar 2004 18:24:37 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1B6YHJ-0008Q0-Cf for emacs-devel@quimby.gnus.org; Thu, 25 Mar 2004 12:04:25 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1B6YH7-0008Ok-25 for emacs-devel@gnu.org; Thu, 25 Mar 2004 12:04:13 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1B6YGa-0008IA-M4 for emacs-devel@gnu.org; Thu, 25 Mar 2004 12:04:11 -0500 Original-Received: from [206.47.199.165] (helo=simmts7-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.30) id 1B6YGa-0008I0-By for emacs-devel@gnu.org; Thu, 25 Mar 2004 12:03:40 -0500 Original-Received: from empanada.local ([67.68.218.170]) by simmts7-srv.bellnexxia.net (InterMail vM.5.01.06.05 201-253-122-130-105-20030824) with ESMTP id <20040325165339.BHJP13427.simmts7-srv.bellnexxia.net@empanada.local>; Thu, 25 Mar 2004 11:53:39 -0500 Original-Received: by empanada.local (Postfix, from userid 502) id C92941427BD; Thu, 25 Mar 2004 11:53:39 -0500 (EST) Original-To: storm@cua.dk (Kim F. Storm) In-Reply-To: Original-Lines: 27 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:20915 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:20915 >> Or, perhaps, it's just that there are not alternatives for a simple >> task: going to a line. Not an error line, not a line containing some >> text, just to the line numbered X. > M-x 123 RET > Argh -- that cannot be done in lisp :-( Of course it can be. M-x right now is written in C, but it's pretty easy to rewrite it in Lisp (without any changes to the C code). Along the same lines, I presonally use C-s 123 (which gives me incremental line number search, not that the incremental nature of it is a feature in this case, more like a side effect of hooking into isearch). Obviously I agree that goto-line is a common need since I went to the trouble of writing my C-s hack to do the equivalent. Before that I had M-g bound to goto-line but my fingers often instinctively hit C-s when I was "searching for line number 123", so I figured I should adapt Emacs to my fingers rather than the other way around. In my book the default M-g bindings are "never used other than to test whether they still work". Especially since the `face' part of it (arguably the main part) simply doesn't work in any buffer that uses font-lock. Stefan