From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kevin Rodgers Newsgroups: gmane.emacs.devel Subject: Re: Key binding M-g should really be goto-line autolearn=noversion=3.0.2 autolearn=no version=3.0.2 Date: Thu, 03 Mar 2005 14:18:00 -0700 Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1109884612 27039 80.91.229.2 (3 Mar 2005 21:16:52 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 3 Mar 2005 21:16:52 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Mar 03 22:16:52 2005 Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1D6xgb-0002VB-U6 for ged-emacs-devel@m.gmane.org; Thu, 03 Mar 2005 22:16:46 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1D6xze-0001sG-05 for ged-emacs-devel@m.gmane.org; Thu, 03 Mar 2005 16:36:26 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1D6xzK-0001pI-Ql for emacs-devel@gnu.org; Thu, 03 Mar 2005 16:36:06 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1D6xzI-0001n9-43 for emacs-devel@gnu.org; Thu, 03 Mar 2005 16:36:04 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1D6xzH-0001m5-NF for emacs-devel@gnu.org; Thu, 03 Mar 2005 16:36:03 -0500 Original-Received: from [80.91.229.2] (helo=ciao.gmane.org) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1D6xkb-0004NS-IF for emacs-devel@gnu.org; Thu, 03 Mar 2005 16:20:53 -0500 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1D6xfO-0002FH-Vs for emacs-devel@gnu.org; Thu, 03 Mar 2005 22:15:31 +0100 Original-Received: from 207.167.42.60 ([207.167.42.60]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 03 Mar 2005 22:15:30 +0100 Original-Received: from ihs_4664 by 207.167.42.60 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 03 Mar 2005 22:15:30 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-To: emacs-devel@gnu.org Original-Lines: 29 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 207.167.42.60 User-Agent: Mozilla Thunderbird 0.9 (X11/20041105) X-Accept-Language: en-us, en In-Reply-To: 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:34150 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:34150 Drew Adams wrote: > Looking at the code for compilation-minor-mode (as I'm inexperienced with > it), I see no connection with what I suggested. That mode appears to work > only in buffers that can be parsed to work with next-error etc. > > What I suggested was a simple command to pick up a numeral from any buffer, > regardless of what the numeral might mean in that buffer. It would be > rudimentary, but would do at least what people are doing with `goto-line', > without requiring them to key in the line number. A minor suggestion - > that's all. Is this what you have in mind? (defun goto-line-at-point (&optional buffer) "Go to the line whose number is given at point, counting like \ \\[goto-line]. With a prefix arg, prompt for a BUFFER and select it before moving." (interactive (list (if current-prefix-arg (read-buffer "Goto buffer: " (other-buffer (current-buffer) t) t)))) (when buffer (pop-to-buffer buffer)) (goto-line (number-at-point))) If so, maybe a mouse- version would be useful, too. -- Kevin Rodgers