From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Drew Adams" 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: Wed, 2 Mar 2005 11:03:05 -0800 Message-ID: References: <20050302121736.VGBF13446.fep32-app.kolumbus.fi@cante.net> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1109790681 9090 80.91.229.2 (2 Mar 2005 19:11:21 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 2 Mar 2005 19:11:21 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Mar 02 20:11:20 2005 Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1D6ZAl-0003nH-DQ for ged-emacs-devel@m.gmane.org; Wed, 02 Mar 2005 20:06:15 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1D6ZTZ-0007IJ-HC for ged-emacs-devel@m.gmane.org; Wed, 02 Mar 2005 14:25:41 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1D6ZSJ-00073Q-Oc for emacs-devel@gnu.org; Wed, 02 Mar 2005 14:24:24 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1D6ZSE-00071R-Mq for emacs-devel@gnu.org; Wed, 02 Mar 2005 14:24:20 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1D6ZSE-00070w-If for emacs-devel@gnu.org; Wed, 02 Mar 2005 14:24:18 -0500 Original-Received: from [148.87.122.33] (helo=rgminet04.oracle.com) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1D6ZCl-0006TZ-Da for emacs-devel@gnu.org; Wed, 02 Mar 2005 14:08:19 -0500 Original-Received: from rgminet04.oracle.com (localhost [127.0.0.1]) by rgminet04.oracle.com (Switch-3.1.6/Switch-3.1.6) with ESMTP id j22J8Hnj006681 for ; Wed, 2 Mar 2005 14:08:17 -0500 Original-Received: from rgmsgw301.us.oracle.com (rgmsgw301.us.oracle.com [138.1.191.50]) by rgminet04.oracle.com (Switch-3.1.6/Switch-3.1.6) with ESMTP id j22J37ta001530 for ; Wed, 2 Mar 2005 14:04:26 -0500 Original-Received: from rgmsgw301.us.oracle.com (localhost [127.0.0.1]) by rgmsgw301.us.oracle.com (Switch-3.1.4/Switch-3.1.0) with ESMTP id j22J36Xu006176 for ; Wed, 2 Mar 2005 12:03:06 -0700 Original-Received: from dradamslap (dradams-lap.us.oracle.com [130.35.177.126]) by rgmsgw301.us.oracle.com (Switch-3.1.4/Switch-3.1.0) with SMTP id j22J35t5006169 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO) for ; Wed, 2 Mar 2005 12:03:06 -0700 Original-To: X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) In-Reply-To: <20050302121736.VGBF13446.fep32-app.kolumbus.fi@cante.net> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 Importance: Normal X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE 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:34099 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:34099 Example: How would students/designers use Emacs for PHP coding, where the remote site displays error messages and line numbers in a web page? Not to distract you all from the burning issue of `M-g', but how about a poor-man's compile buffer? If the target line number is already displayed in Emacs somewhere, why bother to type it in to `goto-line'? It wouldn't help with a Web page display, of course (unless the page were viewed in Emacs), but it sounds from your use case as if it might be generally useful to have a command that picks up the line-number from the text at point (whenever that text can be parsed as a numeral) and does `goto-line' in buffer `(other-buffer (current-buffer) t)'. And it might be useful to have an equivalent mouse command: click a displayed numeral to go to that line in the other buffer. To be able to specify a different target buffer, you could use a prefix arg, but you should not have to type anything (even RET) for must uses of the command - the default target buffer should be what you want. IOW, no default buffer-name with a prompt; just go to other-buffer.