From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Robert J. Chassell" Newsgroups: gmane.emacs.devel Subject: Re: goto-line trouble with narrowing Date: Sat, 28 Jan 2006 19:14:54 +0000 (UTC) Message-ID: References: Reply-To: bob@rattlesnake.com NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1138510347 13359 80.91.229.2 (29 Jan 2006 04:52:27 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 29 Jan 2006 04:52:27 +0000 (UTC) Cc: bob@rattlesnake.com Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jan 29 05:52:23 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 1F34Y0-0003kb-G8 for ged-emacs-devel@m.gmane.org; Sun, 29 Jan 2006 05:52:20 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1F34at-00055F-PU for ged-emacs-devel@m.gmane.org; Sat, 28 Jan 2006 23:55:19 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1F2zOE-0001fw-41 for emacs-devel@gnu.org; Sat, 28 Jan 2006 18:21:54 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1F2zKD-0000jN-3y for emacs-devel@gnu.org; Sat, 28 Jan 2006 18:18:21 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1F2wAd-00070G-VL for emacs-devel@gnu.org; Sat, 28 Jan 2006 14:55:40 -0500 Original-Received: from [69.168.108.225] (helo=rattlesnake.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1F2vYA-0004D0-HS for emacs-devel@gnu.org; Sat, 28 Jan 2006 14:15:54 -0500 Original-Received: by rattlesnake.com via sendmail from stdin id (Debian Smail3.2.0.115) Sat, 28 Jan 2006 19:14:54 +0000 (UTC) Original-To: emacs-devel@gnu.org In-reply-to: (rms@gnu.org) 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:49646 Archived-At: The defun for `goto-line' in emacs/lisp/simple.el specifically calls (widen) ... 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. That is a good argument. In @node Optional Mode Line in emacs/man/display.texi after the sentence that says, If you have narrowed the buffer (@pxref{Narrowing}), the size of the accessible part of the buffer is shown. I recommend adding two sentences such as the following: Since the current line number function counts only in the accessible part of the buffer, it may not provide useful information for a command that moves dot to a line counted from the non-narrowed beginning, such as @code{goto-line}. (The @code{what-line} command provides both counts.) -- Robert J. Chassell bob@rattlesnake.com GnuPG Key ID: 004B4AC8 http://www.rattlesnake.com http://www.teak.cc