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: goto-line trouble with narrowing Date: Thu, 26 Jan 2006 17:01:12 +0000 (UTC) Message-ID: Reply-To: bob@rattlesnake.com NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1138300244 21744 80.91.229.2 (26 Jan 2006 18:30:44 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 26 Jan 2006 18:30:44 +0000 (UTC) Cc: bob@rattlesnake.com Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jan 26 19:30:39 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 1F2Bss-0004er-Gy for ged-emacs-devel@m.gmane.org; Thu, 26 Jan 2006 19:30:14 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1F2Bvf-0003Zt-Te for ged-emacs-devel@m.gmane.org; Thu, 26 Jan 2006 13:33:07 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1F2AYn-0003MO-Ud for emacs-devel@gnu.org; Thu, 26 Jan 2006 12:05:26 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1F2AYi-0003K7-Ff for emacs-devel@gnu.org; Thu, 26 Jan 2006 12:05:24 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1F2AXe-0002ol-QL for emacs-devel@gnu.org; Thu, 26 Jan 2006 12:04:17 -0500 Original-Received: from [69.168.108.225] (helo=rattlesnake.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1F2AVF-00075D-Fc for emacs-devel@gnu.org; Thu, 26 Jan 2006 12:01:45 -0500 Original-Received: by rattlesnake.com via sendmail from stdin id (Debian Smail3.2.0.115) Thu, 26 Jan 2006 17:01:12 +0000 (UTC) Original-To: emacs-devel@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:49582 Archived-At: Today's GNU Emacs CVS snapshot, Thu, 2006 Jan 26 16:05 UTC GNU Emacs 22.0.50.15 (i686-pc-linux-gnu, GTK+ Version 2.8.10) started with /usr/local/src/emacs/src/emacs -Q -D In a narrowed region, `goto-line' goes to the widened buffer line (but not outside the narrowed region) even though the Mode Line tells you the narrowed line number. For example, when the Mode Line shows L228, and `what-line' says line 431 (narrowed line 228) then `M-g M-g 228' (goto-line 228 nil) takes you to what is shown in the Mode Line as L25. However, in the same buffer widened, `M-g M-g 228' takes you to what is shown in the Mode Line as L228 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. If it is intended, the documentation should be modified in (emacs)Optional Mode Line If not, the `widen' should be removed from the defun for `goto-line'. As far as I can determine, this action is safe. -- Robert J. Chassell bob@rattlesnake.com GnuPG Key ID: 004B4AC8 http://www.rattlesnake.com http://www.teak.cc