From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Noam Postavsky Newsgroups: gmane.emacs.bugs Subject: bug#35943: 26.2; `count-lines-page' gives wrong line count (off by one) Date: Wed, 29 May 2019 07:17:15 -0400 Message-ID: <87ftox7bno.fsf@gmail.com> References: <87lfyq7ngw.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="50424"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux) Cc: 35943@debbugs.gnu.org To: Stefan Kangas Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed May 29 13:18:16 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 1hVwb1-000CrB-9Z for geb-bug-gnu-emacs@m.gmane.org; Wed, 29 May 2019 13:18:15 +0200 Original-Received: from localhost ([127.0.0.1]:51938 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hVwb0-0000yu-56 for geb-bug-gnu-emacs@m.gmane.org; Wed, 29 May 2019 07:18:14 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:44316) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hVwap-0000xm-FM for bug-gnu-emacs@gnu.org; Wed, 29 May 2019 07:18:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hVwao-0008M9-LA for bug-gnu-emacs@gnu.org; Wed, 29 May 2019 07:18:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:44673) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hVwao-0008M3-Ir for bug-gnu-emacs@gnu.org; Wed, 29 May 2019 07:18:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hVwao-0003OV-CD for bug-gnu-emacs@gnu.org; Wed, 29 May 2019 07:18:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Noam Postavsky Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 29 May 2019 11:18:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 35943 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: wontfix Original-Received: via spool by 35943-submit@debbugs.gnu.org id=B35943.155912864612999 (code B ref 35943); Wed, 29 May 2019 11:18:02 +0000 Original-Received: (at 35943) by debbugs.gnu.org; 29 May 2019 11:17:26 +0000 Original-Received: from localhost ([127.0.0.1]:58217 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hVwaE-0003NU-Cn for submit@debbugs.gnu.org; Wed, 29 May 2019 07:17:26 -0400 Original-Received: from mail-it1-f172.google.com ([209.85.166.172]:37042) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hVwaB-0003NA-Rv; Wed, 29 May 2019 07:17:24 -0400 Original-Received: by mail-it1-f172.google.com with SMTP id s16so2871835ita.2; Wed, 29 May 2019 04:17:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=if1zUKEPiVupknn6q04htzUCp7Pv8oJxUbnPMGHqQzo=; b=UWgugKy2HPtvfRf69nVAH3MgbqEl95PXdzgjGUygsAAfwHfEaUb4JtYIZyBmJ7F7Qw mPC9eGop43eHeATYVFCWpmeee/ydZRz4omlXIuGKE2Q+cLii54SaicFz++xFqnUQpD/A sTRcx2QnXNZyrxI4GSW1clct8/kXqYTLFvYHkXKZx8U0BTw4kZCdWYr85yXubxPiXleB FxLdjww8Yz0gGSJaKmdymlWyD3bgwUg6TCPbed/vmlmbt2gA/ffVwgLJRmYvfJlYXamZ mlttJqCh3YCqUqA94Myq72FZ8+0S9nCmbgLhvKyFZvwgq3tuvt1sDn2QiJlkcqJUcBTx 58Jw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=if1zUKEPiVupknn6q04htzUCp7Pv8oJxUbnPMGHqQzo=; b=hqYGlv7kL5vkYYwafdmjB2f38Vs1aWa1bi2idxzAsGnTqv7oXgek+z15kZIARFauwd bCjA9gElRU/r3hpaV7tjosxZIrk1gWvYLfov1RNs4kzOQqxdy86+2B60lURtBcVhD5Yx qYqhUrG1DElM2mF2STAuZ0lrs59kuU6wATXGl/OYBMlKnB+8o3fPSNcJIfqZ7aCR+V21 5VmDChKr60r6zTvMpDAYqEcUSL+WOqi89oOwrju18MYe6YaiNSJYkWHCOQWex5DpeSvG wB8t5W0heAM10ck8pO19IQ8xgWWpQE64TUX+AQNcWX51R3Dgy0hO/S7PNTFoAXGvagUh xkLQ== X-Gm-Message-State: APjAAAVcfsqtj0YF/PG1SRVK9iqeKt2tYtxgAsldRWzZ3XUpNrjK7FYk CNNY41FBqMdDDFwNFZdXHz3ttYTG X-Google-Smtp-Source: APXvYqwkgSIYQ8Os9r4M9EcwOA+1cdl6zSc9Vcy/9kiko/oEhaV4CfEOb7vlD5mHbPUbh9ROkBP64A== X-Received: by 2002:a24:6508:: with SMTP id u8mr7606499itb.28.1559128638154; Wed, 29 May 2019 04:17:18 -0700 (PDT) Original-Received: from minid (cbl-45-2-119-34.yyz.frontiernetworks.ca. [45.2.119.34]) by smtp.gmail.com with ESMTPSA id h26sm865170itf.13.2019.05.29.04.17.16 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 29 May 2019 04:17:16 -0700 (PDT) In-Reply-To: (Stefan Kangas's message of "Wed, 29 May 2019 10:43:14 +0200") 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:159878 Archived-At: retitle 35943 page-delimiter doesn't include the newline by default quit Stefan Kangas writes: >> You can see that pages 2 and 3 both have two lines. > > Yes, this is the semantic I found counter-intuitive. I might be the exception > here though, so I'm closing the bug. You can get the semantics you want by changing page-delimiter to include the newline: (setq page-delimiter "^\C-l\n")