From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: John Mastro Newsgroups: gmane.emacs.bugs Subject: bug#20663: page.el (forward-page): Avoid skipping pages Date: Wed, 13 Apr 2016 13:14:46 -0700 Message-ID: References: <20150526171440.GG647@gmail.com> <87h9fbum2w.fsf@mbork.pl> <83h9fbhu0p.fsf@gnu.org> <871t6eve9c.fsf@mbork.pl> <837fg6injl.fsf@gnu.org> <20160410012924.GA23097@gmail.com> <87fuus30rs.fsf@mbork.pl> <8337qsgnvc.fsf@gnu.org> <87a8kxcs4k.fsf@mbork.pl> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1460578582 17400 80.91.229.3 (13 Apr 2016 20:16:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 13 Apr 2016 20:16:22 +0000 (UTC) Cc: 20663@debbugs.gnu.org, ambrevar@gmail.com To: Marcin Borkowski Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Apr 13 22:16:12 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aqRCt-0001tZ-J7 for geb-bug-gnu-emacs@m.gmane.org; Wed, 13 Apr 2016 22:16:11 +0200 Original-Received: from localhost ([::1]:51377 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aqRCs-00068j-ON for geb-bug-gnu-emacs@m.gmane.org; Wed, 13 Apr 2016 16:16:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56794) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aqRCo-00065G-I4 for bug-gnu-emacs@gnu.org; Wed, 13 Apr 2016 16:16:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aqRCk-0002sJ-DG for bug-gnu-emacs@gnu.org; Wed, 13 Apr 2016 16:16:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:49910) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aqRCk-0002sF-6j for bug-gnu-emacs@gnu.org; Wed, 13 Apr 2016 16:16:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1aqRCk-0004Qr-16 for bug-gnu-emacs@gnu.org; Wed, 13 Apr 2016 16:16:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: John Mastro Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 13 Apr 2016 20:16:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20663 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 20663-submit@debbugs.gnu.org id=B20663.146057851316976 (code B ref 20663); Wed, 13 Apr 2016 20:16:01 +0000 Original-Received: (at 20663) by debbugs.gnu.org; 13 Apr 2016 20:15:13 +0000 Original-Received: from localhost ([127.0.0.1]:34014 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1aqRBx-0004Pk-BZ for submit@debbugs.gnu.org; Wed, 13 Apr 2016 16:15:13 -0400 Original-Received: from mail-yw0-f173.google.com ([209.85.161.173]:35158) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1aqRBv-0004PW-Lo for 20663@debbugs.gnu.org; Wed, 13 Apr 2016 16:15:12 -0400 Original-Received: by mail-yw0-f173.google.com with SMTP id i84so82651388ywc.2 for <20663@debbugs.gnu.org>; Wed, 13 Apr 2016 13:15:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=Ao2zE8NKxZI/5OBsQg5kZJk1C+1KZglsNJhRIpUJfek=; b=PwZS7TG6Rbpea/PdKwGCHMzd7zNY7M90DlvNCcrxPPV0pyp1/DeUiDTclecZpTyOhy 4o8h+i8AMMXHOGX1kSjuvSBJnwFPzPcIoe7ZtEOpttmOPvtfhTqJmecgG/AuqgvA5+8M NBz9AG9eBeCXsYZkTMPUePQbkESQMczhaAim2olurOZSTqfuO9sJrCgxMCC0c+LrlQj1 NK4kaAZYOqgwkZXYaWllHohYmJPBqzG+5dtbtYGmAeiKLMkekoDQn4nZQvCdH6b/Evup lMbj38F7Hm7/53wyRlBzrl69IUg8bGnP6HETEFExbY1vY/WI7Ko89xAUv3TbndeEMdgd VhVw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=Ao2zE8NKxZI/5OBsQg5kZJk1C+1KZglsNJhRIpUJfek=; b=YJwkXHSB4tnXYij2BIQJkrOFDR+yhNnV97QsaV6Q6bcOVYCwAb4/PNnHMLkiMNZEDv 5Cy23vR/GxnnAqfyyvTK7EEXBw4WRTD+pH4bxPbRAGukJl3dw1sHZsA/Wn+Hhc4K+ucl XUfu0o+rX68tlMxQVXp151irT/5VsKJ45FQAJl2YPj6AAEgd5I9OjQqXVfvNmmen4QtY 0iaYcJUDplC/g1GBhDNBKTySTjVBo7bFrDSMvTkQ7u1jkMR9Q3GrjyMZgZD2NxaF2+Fy JNqcb2DkKF0QFLgmIa4leYzcZknODHHLycLny/JYZM1snM9IzwHVhxMNkP56jHzetrno L0Yw== X-Gm-Message-State: AOPr4FWRlg1lPM3rl0zI6/XoP0i63uwqnjE0dXUblyBkX10GGcO/LCWi5/XWgdHYsKx1KRSTPucFouDapEr5ag== X-Received: by 10.129.103.85 with SMTP id b82mr5848852ywc.127.1460578505854; Wed, 13 Apr 2016 13:15:05 -0700 (PDT) Original-Received: by 10.37.71.86 with HTTP; Wed, 13 Apr 2016 13:14:46 -0700 (PDT) In-Reply-To: <87a8kxcs4k.fsf@mbork.pl> 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: 208.118.235.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:116442 Archived-At: Marcin Borkowski wrote: > My proposal is that a "page separator" would be a position in the buffer > where (looking-at-p page-delimiter) is true, and if point is at such > a place, then we consider it on the next page. I.e., in this situation > > abcabcabc > -!-^L > cbacbacba > > the point is already on the second page (unlike the default Emacs > behavior). That seems somewhat confusing to me. Intuitively, I would expect the new page to start after the delimiter, not immediately before it For comparison, when (looking-at-p "$") returns non-nil, that means point is at the end of the current line (i.e. before the "\n"), not the beginning of the next one. (Of course, they're not exactly the same, since page-delimiter can match multiple characters.) -- john