From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Stefan Monnier" Newsgroups: gmane.emacs.devel Subject: Re: mgp.el Date: Fri, 05 Jul 2002 17:57:53 -0400 Sender: emacs-devel-admin@gnu.org Message-ID: <200207052157.g65Lvsx04816@rum.cs.yale.edu> References: <200207041824.g64IO1V06411@aztec.santafe.edu> <20020705090509F.kakugawa@aten.aial.hiroshima-u.ac.jp> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1025906519 10296 127.0.0.1 (5 Jul 2002 22:01:59 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 5 Jul 2002 22:01:59 +0000 (UTC) Cc: rms@gnu.org, christian.egli@wyona.com, monnier+gnu/emacs@rum.cs.yale.edu, emacs-devel@gnu.org Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 17Qb9L-0002fx-00 for ; Sat, 06 Jul 2002 00:01:59 +0200 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 17QbG1-0002gF-00 for ; Sat, 06 Jul 2002 00:08:53 +0200 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 17Qb7m-0007fs-00; Fri, 05 Jul 2002 18:00:22 -0400 Original-Received: from rum.cs.yale.edu ([128.36.229.169]) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 17Qb5R-0007WY-00; Fri, 05 Jul 2002 17:57:57 -0400 Original-Received: (from monnier@localhost) by rum.cs.yale.edu (8.11.6/8.11.6) id g65Lvsx04816; Fri, 5 Jul 2002 17:57:54 -0400 X-Mailer: exmh version 2.4 06/23/2000 with nmh-1.0.4 Original-To: Hirotsugu Kakugawa Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:5523 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:5523 > I wrote two elisp functions, and they are only 23 lines of code in total. > They simply count the number of "\n%page" in a buffer. BTW, assuming you've set page-delimiter accordingly, you should be able to use `what-page' except that it's obviously only meant for interactive use. Maybe you should fix `what-page' to be usable from elisp and then use that. Stefan