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 13:44:31 -0800 Message-ID: <200912232144.nBNLiVHv026499@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> <200912232049.nBNKnLKS025189@mailhub-pa1.hpl.hp.com> <36E5CB5C587B4E33B6A9F0A213862385@us.oracle.com> Reply-To: mark.lillibridge@hp.com, 5042@debbugs.gnu.org NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1261606051 25232 80.91.229.12 (23 Dec 2009 22:07:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 23 Dec 2009 22:07:31 +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 23:07:22 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 1NNZMY-0000OO-Aa for geb-bug-gnu-emacs@m.gmane.org; Wed, 23 Dec 2009 23:07:22 +0100 Original-Received: from localhost ([127.0.0.1]:43700 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NNZMY-0007p3-9Q for geb-bug-gnu-emacs@m.gmane.org; Wed, 23 Dec 2009 17:07:22 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NNZMT-0007nD-1M for bug-gnu-emacs@gnu.org; Wed, 23 Dec 2009 17:07:17 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NNZMN-0007iT-Jo for bug-gnu-emacs@gnu.org; Wed, 23 Dec 2009 17:07:16 -0500 Original-Received: from [199.232.76.173] (port=36226 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NNZMN-0007iJ-CM for bug-gnu-emacs@gnu.org; Wed, 23 Dec 2009 17:07:11 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:32834) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NNZMN-00062H-1d for bug-gnu-emacs@gnu.org; Wed, 23 Dec 2009 17:07:11 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1NNZ1u-0002cw-6a; Wed, 23 Dec 2009 16:46: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 21:46: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.126160470510076 (code B ref 5042); Wed, 23 Dec 2009 21:46:02 +0000 Original-Received: (at 5042) by debbugs.gnu.org; 23 Dec 2009 21:45:05 +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 1NNZ0m-0002bu-UI for submit@debbugs.gnu.org; Wed, 23 Dec 2009 16:45:05 -0500 Original-Received: from madara.hpl.hp.com ([192.6.19.124]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NNZ0k-0002bk-Ew; Wed, 23 Dec 2009 16:44:51 -0500 Original-Received: from mailhub-pa1.hpl.hp.com (mailhub-pa1.hpl.hp.com [15.25.115.25]) by madara.hpl.hp.com (8.14.3/8.14.1/HPL-PA Relay) with ESMTP id nBNLiY4q019369 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Wed, 23 Dec 2009 13:44:34 -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 nBNLiVHv026499; Wed, 23 Dec 2009 13:44:32 -0800 In-reply-to: <36E5CB5C587B4E33B6A9F0A213862385@us.oracle.com> (message from Drew Adams on Wed, 23 Dec 2009 13:01:10 -0800) X-HPL-MailScanner: Found to be clean X-HPL-MailScanner-From: mark.lillibridge@hp.com X-Spam-Score: -2.0 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list X-Spam-Score: -2.5 (--) Resent-Date: Wed, 23 Dec 2009 16:46: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:33731 Archived-At: Drew wrote: > Mark wrote: > > 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. > > I don't think so. Given the option's value, there already is a > default behavior, which makes one of your cases unnecessary. IOW, > there is no override for one of the two possibilities - the default > behavior already corresponds to the > requested one. > > If a given user prefers, in general, to use absolute numbering or > relative numbering, then s?he would set the option to reflect > that. Then s?he need only use `C-u' for the minority of times when > s?he wants the alternative behavior. > > FWIW, I do this kind of thing in some of my own code. Given the > ability to customize the default behavior, I see no reason for also > being able to specify the _default_ behavior explicitly via a > particular prefix arg. > > If, on the other hand, you were anticipating non-interactive use, > then I'd say that in that case all that's needed is to let-bind the > variable (option) to give it the value you want currently. Ok. - Mark