From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Mark Lillibridge Newsgroups: gmane.emacs.bugs Subject: bug#5042: 23.1; linum-mode gives incorrect line numbers with narrowed buffers Date: Wed, 23 Dec 2009 12:49:21 -0800 Message-ID: <200912232049.nBNKnLKS025189@mailhub-pa1.hpl.hp.com> References: <200911260039.nAQ0dTD1019384@mailhub-pa1.hpl.hp.com> <200912100534.nBA5YSva008256@mailhub-pa1.hpl.hp.com> <200912210659.nBL6xhDG020940@mailhub-pa1.hpl.hp.com> Reply-To: mark.lillibridge@hp.com, 5042@debbugs.gnu.org NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1261602467 14475 80.91.229.12 (23 Dec 2009 21:07:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 23 Dec 2009 21:07:47 +0000 (UTC) Cc: 5042@emacsbugs.donarmstrong.com, 5042@debbugs.gnu.org, markus.triska@gmx.at, lekktu@gmail.com To: drew.adams@oracle.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Dec 23 22:07:39 2009 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 1NNYQi-0007uS-6o for geb-bug-gnu-emacs@m.gmane.org; Wed, 23 Dec 2009 22:07:36 +0100 Original-Received: from localhost ([127.0.0.1]:43956 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NNYQi-0004Mn-FI for geb-bug-gnu-emacs@m.gmane.org; Wed, 23 Dec 2009 16:07:36 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NNYQP-0004Ff-Co for bug-gnu-emacs@gnu.org; Wed, 23 Dec 2009 16:07:17 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NNYQK-0004Eh-26 for bug-gnu-emacs@gnu.org; Wed, 23 Dec 2009 16:07:16 -0500 Original-Received: from [199.232.76.173] (port=54063 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NNYQJ-0004Ee-U8 for bug-gnu-emacs@gnu.org; Wed, 23 Dec 2009 16:07:11 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:54760) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NNYQK-0005i6-4J for bug-gnu-emacs@gnu.org; Wed, 23 Dec 2009 16:07:12 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1NNY9i-00025l-Nk; Wed, 23 Dec 2009 15:50:02 -0500 X-Loop: bug-gnu-emacs@gnu.org Mail-Followup-To: mark.lillibridge@hp.com, 5042@debbugs.gnu.org Resent-From: Mark Lillibridge Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 23 Dec 2009 20:50: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.12616013798017 (code B ref 5042); Wed, 23 Dec 2009 20:50:02 +0000 Original-Received: (at 5042) by debbugs.gnu.org; 23 Dec 2009 20:49:39 +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 1NNY9K-00025F-RR for submit@debbugs.gnu.org; Wed, 23 Dec 2009 15:49:38 -0500 Original-Received: from gundega.hpl.hp.com ([192.6.19.190]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NNY9I-000257-Cn; Wed, 23 Dec 2009 15:49:37 -0500 Original-Received: from mailhub-pa1.hpl.hp.com (mailhub-pa1.hpl.hp.com [15.25.115.25]) by gundega.hpl.hp.com (8.14.3/8.14.1/HPL-PA Relay) with ESMTP id nBNKnOvH019089 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Wed, 23 Dec 2009 12:49:24 -0800 (PST) Original-Received: from ts-rhel4.hpl.hp.com (ts-rhel4.hpl.hp.com [15.25.118.24]) by mailhub-pa1.hpl.hp.com (8.14.3/8.14.3/HPL-PA Hub) with ESMTP id nBNKnLKS025189; Wed, 23 Dec 2009 12:49:21 -0800 In-reply-to: (message from Drew Adams on Mon, 21 Dec 2009 07:50:52 -0800) X-MailScanner-ID: nBNKnOvH019089 X-HPL-MailScanner: Found to be clean X-HPL-MailScanner-From: mark.lillibridge@hp.com X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list X-Spam-Score: 0.0 (/) Resent-Date: Wed, 23 Dec 2009 15:50: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:33730 Archived-At: Juanma wrote: > Mark Lillibridge wrote: > > I am willing to take a stab at trying to implement such an option if > > people think this is a good idea. > > Perhaps it'd be better to ask Markus first. I'm Cc:ing him (the first > time it didn't work). Ok. Drew wrote: > > > there should be an explicit option to switch between the modes. > > Yes, an option makes sense. > > And it can happen that the same person wants both behaviors at > different times. For that, why not let `C-u linum-mode' use, in > effect, the opposite of the option value? That might be a good idea. Would an absolute override be better than a toggle? E.g., a positive prefix uses absolute and a negative prefix uses relative to start of restriction. - Mark