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: Thu, 10 Mar 2005 08:28:02 +0200 Organization: JURTA Message-ID: <87acpcyru5.fsf@jurta.org> References: <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 1110438196 13399 80.91.229.2 (10 Mar 2005 07:03:16 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 10 Mar 2005 07:03:16 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Mar 10 08:03:15 2005 Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1D9HhH-0001Kn-0R for ged-emacs-devel@m.gmane.org; Thu, 10 Mar 2005 08:03:03 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1D9Hw5-0001ZD-LS for ged-emacs-devel@m.gmane.org; Thu, 10 Mar 2005 02:18:21 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1D9Hv6-0001KC-Kn for emacs-devel@gnu.org; Thu, 10 Mar 2005 02:17:22 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1D9Hv2-0001HK-9I for emacs-devel@gnu.org; Thu, 10 Mar 2005 02:17:17 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1D9Hv1-0001FS-Tt for emacs-devel@gnu.org; Thu, 10 Mar 2005 02:17:15 -0500 Original-Received: from [194.126.101.100] (helo=MXR-3.estpak.ee) by monty-python.gnu.org with esmtp (Exim 4.34) id 1D9HYA-0007M6-83 for emacs-devel@gnu.org; Thu, 10 Mar 2005 01:53:38 -0500 Original-Received: from mail.neti.ee (80-235-34-210-dsl.mus.estpak.ee [80.235.34.210]) by MXR-3.estpak.ee (Postfix) with ESMTP id F370713D177; Thu, 10 Mar 2005 08:53:36 +0200 (EET) Original-To: storm@cua.dk (Kim F. Storm) In-Reply-To: (Kim F. Storm's message of "Wed, 09 Mar 2005 09:32:51 +0100") 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:34397 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:34397 storm@cua.dk (Kim F. Storm) writes: > One command I use quite often is "find-file-and-line-near-point" > which takes something like FILE:LINE "near" the cursor and jumps to > LINE in FILE. This is what `goto-line' is supposed to do. Since it was already completely modified recently with the complex logic of getting a line number from the buffer and jumping to the most recently displayed other buffer, why not modify it further to get a file name from the buffer (before colon and the line number) and to visit it before moving to the specified line number. -- Juri Linkov http://www.jurta.org/emacs/