From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.bugs Subject: bug#5042: 23.1; linum-mode gives incorrect line numbers with narrowed buffers Date: Sun, 10 Jan 2010 03:05:58 +0100 Message-ID: References: <200911260039.nAQ0dTD1019384@mailhub-pa1.hpl.hp.com> <200912100534.nBA5YSva008256@mailhub-pa1.hpl.hp.com> <200912210659.nBL6xhDG020940@mailhub-pa1.hpl.hp.com> <201001070538.o075cpux020583@mailhub-pa1.hpl.hp.com> <201001100132.o0A1WIxG005631@mailhub-pa1.hpl.hp.com> Reply-To: Lennart Borgman , 5042@debbugs.gnu.org NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1263089972 29747 80.91.229.12 (10 Jan 2010 02:19:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 10 Jan 2010 02:19:32 +0000 (UTC) Cc: lekktu@gmail.com, markus.triska@gmx.at, 5042@emacsbugs.donarmstrong.com To: mark.lillibridge@hp.com, 5042@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jan 10 03:19:24 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1NTnOm-0005ix-B4 for geb-bug-gnu-emacs@m.gmane.org; Sun, 10 Jan 2010 03:19:24 +0100 Original-Received: from localhost ([127.0.0.1]:43518 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NTnOm-0006c5-UT for geb-bug-gnu-emacs@m.gmane.org; Sat, 09 Jan 2010 21:19:24 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NTnOU-0006OW-Ps for bug-gnu-emacs@gnu.org; Sat, 09 Jan 2010 21:19:06 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NTnOQ-0006Hv-6b for bug-gnu-emacs@gnu.org; Sat, 09 Jan 2010 21:19:06 -0500 Original-Received: from [199.232.76.173] (port=52892 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NTnOQ-0006Hl-04 for bug-gnu-emacs@gnu.org; Sat, 09 Jan 2010 21:19:02 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:34873) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NTnOP-0007PV-PA for bug-gnu-emacs@gnu.org; Sat, 09 Jan 2010 21:19:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1NTnCo-0001Py-8u; Sat, 09 Jan 2010 21:07:02 -0500 X-Loop: bug-gnu-emacs@gnu.org Mail-Followup-To: Lennart Borgman , 5042@debbugs.gnu.org Resent-From: Lennart Borgman Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 10 Jan 2010 02:07:02 +0000 Resent-Message-ID: Resent-Sender: bug-gnu-emacs@gnu.org X-Emacs-PR-Message: followup 5042 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 5042-submit@debbugs.gnu.org id=B5042.12630891885435 (code B ref 5042); Sun, 10 Jan 2010 02:07:02 +0000 Original-Received: (at 5042) by debbugs.gnu.org; 10 Jan 2010 02:06:28 +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 1NTnCF-0001Pc-RI for submit@debbugs.gnu.org; Sat, 09 Jan 2010 21:06:27 -0500 Original-Received: from fg-out-1718.google.com ([72.14.220.154]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NTnCB-0001PK-0Y for 5042@debbugs.gnu.org; Sat, 09 Jan 2010 21:06:23 -0500 Original-Received: by fg-out-1718.google.com with SMTP id 19so219034fgg.15 for <5042@debbugs.gnu.org>; Sat, 09 Jan 2010 18:06:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=EO58iO3UmnR27Hjlqb8deOt0aMSK7m6oPz19qV2DF+U=; b=pxxki6yR41/fULptdee9HPQyD66Qp7Y3b6lFOxk8+/7mj9pzyc3CGqKyhVjJFQalql TsQyNgOPu/8cY1E1boqHYch6QLMLdOslnBS465TsKdMtES7Jf+wTc0V3tItNXIF1znTD 8aom/X3Rp0tXqRFAIVvXx/H9B1dmGXvIVnkTQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=FwZjHvpObyVn4xI97Bbv1MVWo8H0I946nSyv1S/PqYC33ABigdZmr6EEujuyzyc77M NCx1yOVGK2jXMBt2xzy9dHRQFEgacJ/pPpEMGDLVadN91EWSvkY6h4rNDB3lSen8zawE Eoqr4cDYLOXVlU8vqLbUvWC8dxGlBppgF+XFU= Original-Received: by 10.239.192.79 with SMTP id d15mr720532hbi.52.1263089178119; Sat, 09 Jan 2010 18:06:18 -0800 (PST) In-Reply-To: <201001100132.o0A1WIxG005631@mailhub-pa1.hpl.hp.com> X-Spam-Score: -2.6 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list X-Spam-Score: -2.6 (--) Resent-Date: Sat, 09 Jan 2010 21:07:02 -0500 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) 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: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:34147 Archived-At: On Sun, Jan 10, 2010 at 2:32 AM, Mark Lillibridge wrote: > > =C2=A0 =C2=A0That's a good idea. =C2=A0We could add a buffer local variab= le that > determines how to number lines when a restriction is in effect. =C2=A0Rma= il, > Info, and similar modes could set this variable for their buffers to > start numbering the visible restriction at 1. =C2=A0Other buffers would > depend on the user's global customization setting. =C2=A0goto-line, linum= , > and related features would consult this variable. > > =C2=A0 =C2=A0I don't know any good arguments for which way to set the glo= bal > default. External utilities will use the whole file. So if the file is to be touched by external utilities (like grep) then I think the default should be to start numbering from the file's beginning.