From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: how-many/count-matches for non-interactive use Date: Fri, 15 Oct 2004 08:22:54 -0400 Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Message-ID: References: <87pt3m5vqk.fsf@oak.pohoyda.family> <874qkwmr5w.fsf@oak.pohoyda.family> Reply-To: rms@gnu.org NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1097843003 15598 80.91.229.6 (15 Oct 2004 12:23:23 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 15 Oct 2004 12:23:23 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Oct 15 14:23:18 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CIR78-00009Z-00 for ; Fri, 15 Oct 2004 14:23:18 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CIREG-0002Wv-RR for ged-emacs-devel@m.gmane.org; Fri, 15 Oct 2004 08:30:40 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CIRE7-0002W0-9W for emacs-devel@gnu.org; Fri, 15 Oct 2004 08:30:31 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CIRE6-0002Vi-NL for emacs-devel@gnu.org; Fri, 15 Oct 2004 08:30:30 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CIRE6-0002Vf-Jn for emacs-devel@gnu.org; Fri, 15 Oct 2004 08:30:30 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CIR6m-0004uj-DP for emacs-devel@gnu.org; Fri, 15 Oct 2004 08:22:56 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1CIR6k-0007dL-Gl; Fri, 15 Oct 2004 08:22:54 -0400 Original-To: Alexander Pohoyda In-reply-to: <874qkwmr5w.fsf@oak.pohoyda.family> (message from Alexander Pohoyda on 15 Oct 2004 08:28:11 +0200) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:28432 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:28432 (defun how-many (regexp &optional rstart rend) "..." (interactive (keep-lines-read-args "How many matches for (regexp): ")) How do I use "p" here? Since it is using Lisp code, you just do it with more Lisp code. Add a t to the list in a place that corresponds to where the new extra arg gets its value.