From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#9917: 24.0.90; Make `goto-line' consistent with the line number from the minibuffer Date: Tue, 01 Nov 2011 13:56:19 -0400 Message-ID: References: <87pqhcyzms.fsf@mail.jurta.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1320170216 8301 80.91.229.12 (1 Nov 2011 17:56:56 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 1 Nov 2011 17:56:56 +0000 (UTC) Cc: 9917@debbugs.gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Nov 01 18:56:52 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RLIZt-0001dO-Qa for geb-bug-gnu-emacs@m.gmane.org; Tue, 01 Nov 2011 18:56:49 +0100 Original-Received: from localhost ([::1]:43792 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RLIZt-00077j-Fc for geb-bug-gnu-emacs@m.gmane.org; Tue, 01 Nov 2011 13:56:49 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:34150) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RLIZq-00073G-0V for bug-gnu-emacs@gnu.org; Tue, 01 Nov 2011 13:56:46 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RLIZo-0000TD-Bl for bug-gnu-emacs@gnu.org; Tue, 01 Nov 2011 13:56:45 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:33501) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RLIZo-0000T3-93 for bug-gnu-emacs@gnu.org; Tue, 01 Nov 2011 13:56:44 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1RLIc2-0006GI-9C for bug-gnu-emacs@gnu.org; Tue, 01 Nov 2011 13:59:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 01 Nov 2011 17:59:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9917 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 9917-submit@debbugs.gnu.org id=B9917.132017032324025 (code B ref 9917); Tue, 01 Nov 2011 17:59:02 +0000 Original-Received: (at 9917) by debbugs.gnu.org; 1 Nov 2011 17:58:43 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RLIbi-0006FS-8p for submit@debbugs.gnu.org; Tue, 01 Nov 2011 13:58:42 -0400 Original-Received: from pruche.dit.umontreal.ca ([132.204.246.22]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RLIbf-0006FC-7t for 9917@debbugs.gnu.org; Tue, 01 Nov 2011 13:58:41 -0400 Original-Received: from faina.iro.umontreal.ca (lechon.iro.umontreal.ca [132.204.27.242]) by pruche.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id pA1HuEdX012038; Tue, 1 Nov 2011 13:56:14 -0400 Original-Received: by faina.iro.umontreal.ca (Postfix, from userid 20848) id 7A16AB465D; Tue, 1 Nov 2011 13:56:19 -0400 (EDT) In-Reply-To: <87pqhcyzms.fsf@mail.jurta.org> (Juri Linkov's message of "Tue, 01 Nov 2011 11:35:01 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.90 (gnu/linux) X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV4028=0 X-NAI-Spam-Version: 2.2.0.9286 : core <4028> : streams <697455> : uri <997019> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Tue, 01 Nov 2011 13:59:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:53396 Archived-At: > Just removing `(widen)' from `goto-line' will fix this. But the question is > why it's here. What was the intention of adding `(widen)' here. Because depending on the use of narrow-to-region, you'll want widen or not. Some code was written with some particular uses in mind, while other code was written with other uses in mind, hence the inconsistencies. The difference is whether narrow-to-region really wants to pretend the text outside the region doesn't exist at all (e.g. in Rmail or Info), or whether it is just meant to temporarily only display a subpart (e.g. most other cases). Then things get interesting when the user uses narrow-to-region in Info or Rmail. Currently the only data we have to distinguish the two cases is font-lock-dont-widen, but clearly it's not sufficient to handle the "user narrowing in Info" case. Stefan