From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Richard M. Stallman" Newsgroups: gmane.emacs.devel Subject: Re: goto-line trouble with narrowing Date: Fri, 27 Jan 2006 17:32:45 -0500 Message-ID: References: Reply-To: rms@gnu.org NNTP-Posting-Host: main.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: sea.gmane.org 1138484987 16450 80.91.229.2 (28 Jan 2006 21:49:47 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 28 Jan 2006 21:49:47 +0000 (UTC) Cc: bob@rattlesnake.com, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jan 28 22:49:46 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1F2xww-0006og-3V for ged-emacs-devel@m.gmane.org; Sat, 28 Jan 2006 22:49:38 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1F2xwE-0004LD-9G for ged-emacs-devel@m.gmane.org; Sat, 28 Jan 2006 16:48:54 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1F2wP7-0001mf-06 for emacs-devel@gnu.org; Sat, 28 Jan 2006 15:10:37 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1F2wP3-0001lR-Tn for emacs-devel@gnu.org; Sat, 28 Jan 2006 15:10:34 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1F2wMS-00016W-7R for emacs-devel@gnu.org; Sat, 28 Jan 2006 15:07:52 -0500 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.52) id 1F2cAH-0006tj-Hr for emacs-devel@gnu.org; Fri, 27 Jan 2006 17:33:57 -0500 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1F2c97-0001Al-Kw; Fri, 27 Jan 2006 17:32:45 -0500 Original-To: bob@rattlesnake.com In-reply-to: (bob@rattlesnake.com) 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:49626 Archived-At: The defun for `goto-line' in emacs/lisp/simple.el specifically calls (widen) on the buffer before moving to the specified line number. I don't know whether this is intended. That line wasn't written by accident! The most common use of goto-line is to go to a line number that you got from some other program. That program normally operates on the whole file. For goto-line to use a narrowed line number would hardly ever be useful. If it is intended, the documentation should be modified in (emacs)Optional Mode Line I don't see anything about goto-line in that node. The text looks correct to me.