From unknown Mon Jun 23 00:26:36 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#1497 <1497@debbugs.gnu.org> To: bug#1497 <1497@debbugs.gnu.org> Subject: Status: emacs -nw loses display of line number with long lines Reply-To: bug#1497 <1497@debbugs.gnu.org> Date: Mon, 23 Jun 2025 07:26:36 +0000 retitle 1497 emacs -nw loses display of line number with long lines reassign 1497 emacs submitter 1497 Paul R severity 1497 normal thanks From paul.r.ml@gmail.com Fri Dec 5 03:15:23 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-4.0 required=4.0 tests=BAYES_00 autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 5 Dec 2008 11:15:24 +0000 Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.190]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mB5BFKpF031413 for ; Fri, 5 Dec 2008 03:15:22 -0800 Received: by nf-out-0910.google.com with SMTP id 30so2299637nfu.31 for ; Fri, 05 Dec 2008 03:15:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:subject:user-agent :package:version:date:message-id:mime-version:content-type; bh=6p5/veQP655p2ejb5jAJirBF6Ib8EaIBOhKjJyIikjs=; b=mOefyHdyg/VWtaUcDf/Tws5a1LjrGK+rIXI0EnsJ5SvcTnIcMY11GPsZhI9v29xfRP osTmrqpddOwjtjgys0w2AaFrMwpPJqebvy/fMJKijwRI0IkD+N1NhXI0iKzmRs5zL0Ha f01dH3Sy5NlrQw6sp/mGnBnvl4ValweHCNdF4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:user-agent:package:version:date:message-id :mime-version:content-type; b=DfB5KRIVCgVmOyUcizYpC6MRnB3DKVxzd40Go5PcB1Q2HuE1SGwT8geqcPdiGvn4wX wWIrR2f/ZlNrsG43+SSumcDdz7gX/XqAAs2km5xSY0sv8CO18kWgr69xFjyPewimIYZL w2GjpSiXR+HGUTJo5BouiXKC6xResB/bcGFvc= Received: by 10.103.40.5 with SMTP id s5mr7270816muj.93.1228475719871; Fri, 05 Dec 2008 03:15:19 -0800 (PST) Received: from ubuT42 (pdc35-1-82-242-132-111.fbx.proxad.net [82.242.132.111]) by mx.google.com with ESMTPS id 23sm15360603mun.58.2008.12.05.03.15.18 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 05 Dec 2008 03:15:19 -0800 (PST) From: Paul R To: submit@debbugs.gnu.org Subject: emacs -nw loses display of line number with long lines User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) Package: emacs Version: 23 Date: Fri, 05 Dec 2008 12:15:17 +0100 Message-ID: <87abba7u0q.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii To reproduce, open emacs -nw -Q, then type a very long line, for example typing around 100 random characters, then C-a C-k to kill the string then maintain C-y to past many times to get a line taking 4 or 5 display lines. This is your long line. Then hit C-j. Repeat operation ten times or more to have many such long lines. Monitor line number in mode-line while operating. At a point, it will print L?? M-: (line-number-at-pos (point)) will return correct value so it is likely to be a display problem. Tested on Linux with emacs 23 cvs -nw in gnome-terminal. Can't reproduce in X version. -- Paul From cyd@stupidchicken.com Fri Dec 5 06:40:15 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-4.0 required=4.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 1497-done) by emacsbugs.donarmstrong.com; 5 Dec 2008 14:40:16 +0000 Received: from cyd.mit.edu (CYD.MIT.EDU [18.115.2.24]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mB5EeDU5017581 for <1497-done@emacsbugs.donarmstrong.com>; Fri, 5 Dec 2008 06:40:14 -0800 Received: by cyd.mit.edu (Postfix, from userid 1000) id 094F457E195; Fri, 5 Dec 2008 09:40:16 -0500 (EST) From: Chong Yidong To: Paul R Cc: 1497-done@debbugs.gnu.org Subject: emacs -nw loses display of line number with long lines Date: Fri, 05 Dec 2008 09:40:16 -0500 Message-ID: <87ej0meldb.fsf@cyd.mit.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii This is not a bug. From the Emacs manual: Line-number computation can also be slow if the lines in the buffer are too long. For this reason, Emacs doesn't display line numbers if the average width, in characters, of lines near point is larger than the value of `line-number-display-limit-width'. The default value is 200 characters. From eliz@gnu.org Fri Dec 5 07:52:37 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-9.0 required=4.0 tests=AWL,BAYES_00,GMAIL, HAS_BUG_NUMBER,RCVD_IN_DNSWL_MED autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 5 Dec 2008 15:52:37 +0000 Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mB5FqYt1003189 for ; Fri, 5 Dec 2008 07:52:36 -0800 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L8cyl-0007gF-Ma for bug-gnu-emacs@gnu.org; Fri, 05 Dec 2008 10:52:31 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L8cyk-0007fo-An for bug-gnu-emacs@gnu.org; Fri, 05 Dec 2008 10:52:31 -0500 Received: from [199.232.76.173] (port=40848 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L8cyk-0007fl-6m for bug-gnu-emacs@gnu.org; Fri, 05 Dec 2008 10:52:30 -0500 Received: from mtaout5.012.net.il ([84.95.2.13]:40946) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1L8cyi-00076n-Sc for bug-gnu-emacs@gnu.org; Fri, 05 Dec 2008 10:52:29 -0500 Received: from conversion-daemon.i_mtaout5.012.net.il by i_mtaout5.012.net.il (HyperSendmail v2004.12) id <0KBE00200UQAQB00@i_mtaout5.012.net.il> for bug-gnu-emacs@gnu.org; Fri, 05 Dec 2008 17:54:23 +0200 (IST) Received: from HOME-C4E4A596F7 ([77.126.111.178]) by i_mtaout5.012.net.il (HyperSendmail v2004.12) with ESMTPA id <0KBE005LBUUMT6Q0@i_mtaout5.012.net.il>; Fri, 05 Dec 2008 17:54:23 +0200 (IST) Date: Fri, 05 Dec 2008 17:52:19 +0200 From: Eli Zaretskii Subject: Re: bug#1497: emacs -nw loses display of line number with long lines In-reply-to: <87abba7u0q.fsf@gmail.com> X-012-Sender: halo1@inter.net.il To: Paul R , 1497@debbugs.gnu.org Cc: bug-gnu-emacs@gnu.org Reply-to: Eli Zaretskii Message-id: References: <87abba7u0q.fsf@gmail.com> X-detected-operating-system: by monty-python.gnu.org: Solaris 9.1 X-CrossAssassin-Score: 2 > From: Paul R > Package: emacs > Version: 23 > Date: Fri, 05 Dec 2008 12:15:17 +0100 > Cc: > > To reproduce, open emacs -nw -Q, then type a very long line, for example > typing around 100 random characters, then C-a C-k to kill the string > then maintain C-y to past many times to get a line taking 4 or 5 display > lines. This is your long line. Then hit C-j. > > Repeat operation ten times or more to have many such long lines. > > Monitor line number in mode-line while operating. At a point, it will > print L?? > > M-: (line-number-at-pos (point)) will return correct value so it is > likely to be a display problem. Could it be due to the value of line-number-display-limit-width? line-number-display-limit-width is a variable defined in `C source code'. Its value is 200 Did you perhaps exceed the 200-character limit? From unknown Mon Jun 23 00:26:36 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: $requester Subject: Internal Control Message-Id: bug archived. Date: Sat, 03 Jan 2009 15:24:04 +0000 User-Agent: Fakemail v42.6.9 # A New Hope # A log time ago, in a galaxy far, far away # something happened. # # Magically this resulted in the following # action being taken, but this fake control # message doesn't tell you why it happened # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator