From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Mark Lillibridge Newsgroups: gmane.emacs.devel Subject: Re: Emacs's handling of line numbers [from bug#5042] Date: Tue, 08 Jun 2010 19:20:56 -0700 Message-ID: References: <837ho6czb6.fsf@gnu.org> <8339yucbsg.fsf@gnu.org> <83wrw5bxkc.fsf@gnu.org> <83tyr9bgid.fsf@gnu.org> <83r5mcbqzo.fsf@gnu.org> Reply-To: mark.lillibridge@hp.com NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1276050081 25870 80.91.229.12 (9 Jun 2010 02:21:21 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 9 Jun 2010 02:21:21 +0000 (UTC) Cc: lekktu@gmail.com, eliz@gnu.org, lennart.borgman@gmail.com, emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jun 09 04:21:19 2010 connect(): No such file or directory Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OMAun-0002If-AQ for ged-emacs-devel@m.gmane.org; Wed, 09 Jun 2010 04:21:13 +0200 Original-Received: from localhost ([127.0.0.1]:54052 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OMAum-0007HO-ND for ged-emacs-devel@m.gmane.org; Tue, 08 Jun 2010 22:21:12 -0400 Original-Received: from [140.186.70.92] (port=51478 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OMAug-0007HJ-DV for emacs-devel@gnu.org; Tue, 08 Jun 2010 22:21:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OMAuf-0005mo-2a for emacs-devel@gnu.org; Tue, 08 Jun 2010 22:21:06 -0400 Original-Received: from gundega.hpl.hp.com ([192.6.19.190]:46717) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OMAue-0005mf-OP; Tue, 08 Jun 2010 22:21:05 -0400 Original-Received: from mailhub-pa1.hpl.hp.com (mailhub-pa1.hpl.hp.com [15.25.115.25]) by gundega.hpl.hp.com (8.14.3/8.14.3/HPL-PA Relay) with ESMTP id o592KwEv013408 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Tue, 8 Jun 2010 19:20:58 -0700 Original-Received: from ts-rhel4.hpl.hp.com (ts-rhel4.hpl.hp.com [15.25.118.24]) by mailhub-pa1.hpl.hp.com (8.14.3/8.14.3/HPL-PA Hub) with ESMTP id o592KuAG011465; Tue, 8 Jun 2010 19:20:56 -0700 In-reply-to: (message from Stefan Monnier on Mon, 7 Jun 2010 09:45:33 -0400) X-Scanned-By: MIMEDefang 2.67 on 15.0.48.190 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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 Xref: news.gmane.org gmane.emacs.devel:125652 Archived-At: > >> goto-line is already marked as "should only be called from Elisp", so > >> introducing goto-numbered-line doesn't sound right. > > => "should not be called from Elisp"? > > Oops, thanks, > > Stefan That's funny; the documentation for goto-line specifically talks about its behavior when called from elisp! M-g (translated from g) runs the command goto-line, which is an interactive compiled Lisp function in `simple.el'. It is bound to M-g, . (goto-line line &optional buffer) Goto line, counting from line 1 at beginning of buffer. Normally, move point in the current buffer, and leave mark at the previous position. With just C-u as argument, move point in the most recently selected other buffer, and switch to it. When called from Lisp code, the optional argument buffer specifies a buffer to switch to. If there's a number in the buffer at point, it is the default for line.