From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juanma Barranquero Newsgroups: gmane.emacs.bugs Subject: bug#5042: 23.1; linum-mode gives incorrect line numbers with narrowed buffers Date: Sun, 24 Jan 2010 10:21:10 +0100 Message-ID: References: <200911260039.nAQ0dTD1019384@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> <201001162208.o0GM8Apr008065@mailhub-pa1.hpl.hp.com> <201001232328.o0NNSL55029058@mailhub-pa1.hpl.hp.com> 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 1264326002 2158 80.91.229.12 (24 Jan 2010 09:40:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 24 Jan 2010 09:40:02 +0000 (UTC) Cc: 5042@emacsbugs.donarmstrong.com, markus.triska@gmx.at To: mark.lillibridge@hp.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jan 24 10:39:54 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 1NYywj-0003Sd-Kd for geb-bug-gnu-emacs@m.gmane.org; Sun, 24 Jan 2010 10:39:53 +0100 Original-Received: from localhost ([127.0.0.1]:37929 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NYywk-0006i4-Q2 for geb-bug-gnu-emacs@m.gmane.org; Sun, 24 Jan 2010 04:39:54 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NYywe-0006h3-KO for bug-gnu-emacs@gnu.org; Sun, 24 Jan 2010 04:39:48 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NYywZ-0006eI-Hz for bug-gnu-emacs@gnu.org; Sun, 24 Jan 2010 04:39:47 -0500 Original-Received: from [199.232.76.173] (port=54001 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NYywZ-0006eF-CE for bug-gnu-emacs@gnu.org; Sun, 24 Jan 2010 04:39:43 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:37283) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NYywY-0002Ew-Nu for bug-gnu-emacs@gnu.org; Sun, 24 Jan 2010 04:39:43 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1NYyfS-00029m-BR; Sun, 24 Jan 2010 04:22:02 -0500 X-Loop: bug-gnu-emacs@gnu.org Resent-From: Juanma Barranquero Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 24 Jan 2010 09:22: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.12643249088282 (code B ref 5042); Sun, 24 Jan 2010 09:22:02 +0000 Original-Received: (at 5042) by debbugs.gnu.org; 24 Jan 2010 09:21:48 +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 1NYyfE-00029X-DL for submit@debbugs.gnu.org; Sun, 24 Jan 2010 04:21:48 -0500 Original-Received: from mail-bw0-f227.google.com ([209.85.218.227]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NYyez-00029Q-TG for 5042@emacsbugs.donarmstrong.com; Sun, 24 Jan 2010 04:21:46 -0500 Original-Received: by bwz27 with SMTP id 27so1872381bwz.1 for <5042@emacsbugs.donarmstrong.com>; Sun, 24 Jan 2010 01:21:30 -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=OWlYocslD7JJqWzJQbiDyP5I7gRNX/k+qagznhc/k/A=; b=tz8cHlS4GAyFoXZJqcZsS3TV/KjrMtzolFNtYhOaoC3yeO5I0vWU8hJCUVFXAl204k F6LyYcg5NRPWPqoLB7JVYYDWiebE3YIWySSRmG0Ve8Wz9oj2/2Eiv/qtkvvB9LHgSIWU 2GNuZo8NPYQhL1mDKAUCQtZBaBFZmBh1V3qGc= 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=FoCm7Se8D4O1gfZuK87NfsdCJrlT/207W3MDvNWzGCnOKZFZuJGW/uCeJtyMziBaNL CY3kc4q6QmE4y/ZCCFI9QGUtK45b+j3vgCUCd5tC0wZ8+JAJAKlZuYxQrfp2EIeMELoV 9pdfFeXmR0WmW5Ugar0K2vPnpmDGVeG3l8wo8= Original-Received: by 10.204.15.4 with SMTP id i4mr707499bka.21.1264324890118; Sun, 24 Jan 2010 01:21:30 -0800 (PST) In-Reply-To: <201001232328.o0NNSL55029058@mailhub-pa1.hpl.hp.com> X-Spam-Score: -2.7 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list X-Spam-Score: -2.7 (--) Resent-Date: Sun, 24 Jan 2010 04:22: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:34674 Archived-At: On Sun, Jan 24, 2010 at 00:28, Mark Lillibridge w= rote: > I suggest > calling this "restart-numbering-restriction" with possible values t and > nil (=3Dfalse). =C2=A0Is this naming convention/description okay? The name is OK, I think. > =C2=A0 emacs > editing > editing basics group > =C2=A0 =C2=A0 "most basic editing facilities." > > The first group here really seems to only be for Linum features, which > this is not. =C2=A0It does look like a reasonable place a a user might > search/discover this option. =C2=A0I'm not sure if I can declare a variab= le > in that group without actually requiring Linum to be loaded first. Not in the linum group, no. This is not dependend on linum (though it would use the variable); editing basics seems reasonable. > (defcustum restart-numbering-restriction nil > =C2=A0 =C2=A0"How should the lines of a restriction be numbered? =C2=A0No= rmally, they receive the same line numbers as if no restriction existed (e.= g., if the first line of the restriction is line number 10 of the file then= it receives line number 10. =C2=A0If this variable is true, the lines of t= he restriction are instead numbered from 1." > =C2=A0 =C2=A0:group ??? > =C2=A0 =C2=A0:type =C2=A0'(boolean)) More like this, I'd say: (defcustom restart-numbering-restriction nil "If true, lines inside a restriction are numbered starting from 1. If false, line numbers correspond to position inside the buffer." :group ??? :type 'boolean) Juanma