From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson Newsgroups: gmane.emacs.bugs Subject: bug#35338: Line numbers lost despite line-number-display-limit Date: Sun, 21 Apr 2019 06:00:08 +0800 Message-ID: <875zr8e3rr.5.fsf@jidanni.org> References: <87pnphtccl.5.fsf@jidanni.org> <837ebobxed.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="30426"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 35338@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Apr 21 00:01:12 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hHy2q-0007mz-90 for geb-bug-gnu-emacs@m.gmane.org; Sun, 21 Apr 2019 00:01:12 +0200 Original-Received: from localhost ([127.0.0.1]:45902 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hHy2p-0007wo-9o for geb-bug-gnu-emacs@m.gmane.org; Sat, 20 Apr 2019 18:01:11 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:51153) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hHy2i-0007wg-DZ for bug-gnu-emacs@gnu.org; Sat, 20 Apr 2019 18:01:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hHy2g-0005oY-Cz for bug-gnu-emacs@gnu.org; Sat, 20 Apr 2019 18:01:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:33429) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hHy2f-0005oQ-Tq for bug-gnu-emacs@gnu.org; Sat, 20 Apr 2019 18:01:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hHy2f-0003yp-QM for bug-gnu-emacs@gnu.org; Sat, 20 Apr 2019 18:01:01 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: <87pnphtccl.5.fsf@jidanni.org> Resent-From: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 20 Apr 2019 22:01:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 35338 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: notabug Original-Received: via spool by 35338-submit@debbugs.gnu.org id=B35338.155579762815246 (code B ref 35338); Sat, 20 Apr 2019 22:01:01 +0000 Original-Received: (at 35338) by debbugs.gnu.org; 20 Apr 2019 22:00:28 +0000 Original-Received: from localhost ([127.0.0.1]:46972 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hHy28-0003xp-5u for submit@debbugs.gnu.org; Sat, 20 Apr 2019 18:00:28 -0400 Original-Received: from catfish.maple.relay.mailchannels.net ([23.83.214.32]:47643) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hHy25-0003xf-Gq for 35338@debbugs.gnu.org; Sat, 20 Apr 2019 18:00:26 -0400 X-Sender-Id: dreamhost|x-authsender|jidanni@jidanni.org Original-Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id D8FE814118B; Sat, 20 Apr 2019 22:00:19 +0000 (UTC) Original-Received: from pdx1-sub0-mail-a5.g.dreamhost.com (100-96-6-122.trex.outbound.svc.cluster.local [100.96.6.122]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 5F50714138F; Sat, 20 Apr 2019 22:00:18 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jidanni@jidanni.org Original-Received: from pdx1-sub0-mail-a5.g.dreamhost.com ([TEMPUNAVAIL]. [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.17.2); Sat, 20 Apr 2019 22:00:19 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jidanni@jidanni.org X-MailChannels-Auth-Id: dreamhost X-Macabre-Suffer: 2df9f3cd6db7eab8_1555797619033_2045691218 X-MC-Loop-Signature: 1555797619033:1051160449 X-MC-Ingress-Time: 1555797619032 Original-Received: from pdx1-sub0-mail-a5.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a5.g.dreamhost.com (Postfix) with ESMTP id 892FF7FFD6; Sat, 20 Apr 2019 15:00:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=jidanni.org; h=from:to:cc :subject:references:date:message-id:mime-version:content-type :content-transfer-encoding; s=jidanni.org; bh=uvV+6i6QyVxODh/r+M MKTWePAd4=; b=JHewd7TGmsS0Mg9dTA5L5gDXJVnQgl0m6k4ZPIOO8zkEq3xbeK EenE0OHXD0B4Dlf4q9QNmjEiPxmHBCqvDNlC4TPOxHjs57xc0/OcxbuKBwAhWzR+ cTrYrTKQCc52iuBWiBqvgK7lTL/XlbxdkJf1F3AmKwXLlB/jUwZ5uVT9U= Original-Received: from jidanni.org (114-41-22-4.dynamic-ip.hinet.net [114.41.22.4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jidanni@jidanni.org) by pdx1-sub0-mail-a5.g.dreamhost.com (Postfix) with ESMTPSA id 7A2E17FFD4; Sat, 20 Apr 2019 15:00:12 -0700 (PDT) X-DH-BACKEND: pdx1-sub0-mail-a5 X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: -100 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeduuddrgedvucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuggftfghnshhusghstghrihgsvgdpffftgfetoffjqffuvfenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhephffvufhffffkgggtgfesthekredttddtjeenucfhrhhomhepnjjnnjcuffgrnhculfgrtghosghsohhnuceojhhiuggrnhhnihesjhhiuggrnhhnihdrohhrgheqnecukfhppeduudegrdeguddrvddvrdegnecurfgrrhgrmhepmhhouggvpehsmhhtphdphhgvlhhopehjihgurghnnhhirdhorhhgpdhinhgvthepuddugedrgedurddvvddrgedprhgvthhurhhnqdhprghthheppeeruhhtfhdqkeerueerheeimhfphefnihehhegsveekreepucffrghnucflrggtohgsshhonhcuoehjihgurghnnhhisehjihgurghnnhhirdhorhhgqedpmhgrihhlfhhrohhmpehjihgurghnnhhisehjihgurghnnhhirdhorhhgpdhnrhgtphhtthhopeefheeffeekseguvggssghughhsrdhgnhhurdhorhhgnecuvehluhhsthgvrhfuihiivgeptd X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 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: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:157918 Archived-At: Users who do C-f v line-number-display-limit will never learn about line-number-display-limit-width, and vice versa. 100%! Therefore each docstring needs to mention the other. Else the user won't know about the secret second hidden factor, and will be sure it is a bug. By the way, line-number-display-limit-width's docstring should say what nil will do, and/or how to always/never get numbers. P.S., "If the average length of the lines near point is bigger than this, then the line number may be omitted from the mode line." "near", "may" ??! Well all I know is if we do $ { perl -wle 'print "=E4=B8=AD=E8=8F=AF=E6=B0=91=E5=9C=8B=E8=90=AC=E6=AD= =B2" x 99 for 9..99;' ; seq 1111;} > /tmp/9 we start out with fat lines, and then end up with thin lines, and we get line numbers for the first few screens, and then it gives up. If at the bottom we do (what-line) then it remembers again, until we go back to the fat lines, where it forgets, even if we do (what-line). Anyway I bet these days the rest of emacs' brain is actually rather quite aware of what line we are actually on, and just this line-number-display-limit-width is left over from some older era... less -M and more's '=3D' have no problem.