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-lineautolearn=noversion=3.0.2 autolearn=no version=3.0.2 Date: Fri, 4 Mar 2005 18:00:51 -0800 Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1109987950 4775 80.91.229.2 (5 Mar 2005 01:59:10 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 5 Mar 2005 01:59:10 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Mar 05 02:59:10 2005 Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1D7OZC-0007wZ-JA for ged-emacs-devel@m.gmane.org; Sat, 05 Mar 2005 02:58:54 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1D7OsT-0001Hv-Hi for ged-emacs-devel@m.gmane.org; Fri, 04 Mar 2005 21:18:49 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1D7Oru-0001Ak-EE for emacs-devel@gnu.org; Fri, 04 Mar 2005 21:18:14 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1D7Orp-00018b-CL for emacs-devel@gnu.org; Fri, 04 Mar 2005 21:18:10 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1D7Orp-00018Y-8E for emacs-devel@gnu.org; Fri, 04 Mar 2005 21:18:09 -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 1D7ObB-0005sq-CS for emacs-devel@gnu.org; Fri, 04 Mar 2005 21:00:57 -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 j2520uZK016759 for ; Fri, 4 Mar 2005 21:00:56 -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 j2520tIO016734 for ; Fri, 4 Mar 2005 21:00:55 -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 j2520s2A016614 for ; Fri, 4 Mar 2005 19:00:54 -0700 Original-Received: from dradamslap (dhcp-amer-whq-csvpn-gw3-141-144-82-246.vpn.oracle.com [141.144.82.246]) by rgmsgw301.us.oracle.com (Switch-3.1.4/Switch-3.1.0) with SMTP id j2520re3016596 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO) for ; Fri, 4 Mar 2005 19:00:53 -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: Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 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:34201 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:34201 > FYI - I don't suggest that `goto-line' itself should be > changed this way, but the code I sent for `goto-line-at-point' I think goto-line should do it. What is "it"? You cut off the rest of my sentence where I said what I meant by "changed this way": use `number-nearest-point'. I suspect that your "it" is not my "this way", but I'm not sure what you mean. RMS has already said that he is not interested in such nearest-point stuff in Emacs. That's why I changed it to `number-at-point' in the code I sent, and that's why I said that I don't propose it for `goto-line' itelf. I mentioned it only "FYI", for the original poster, in particular. Your suggestion to pick up the line number at bol might be acceptable to RMS, however. I think that the main pb he had with the "nearest" stuff was that its scope was not sufficiently constrained. That is not a pb with bol.