From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Luc Teirlinck Newsgroups: gmane.emacs.devel Subject: Re: how-many/count-matches for non-interactive use Date: Wed, 20 Oct 2004 22:22:03 -0500 (CDT) Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Message-ID: <200410210322.i9L3M3t11013@raven.dms.auburn.edu> References: <87pt3m5vqk.fsf@oak.pohoyda.family> <87zn2mh5jk.fsf-monnier+emacs@gnu.org> <87is99nznd.fsf-monnier+emacs@gnu.org> <200410172053.i9HKrdL01136@raven.dms.auburn.edu> <200410190158.i9J1wrH25523@raven.dms.auburn.edu> NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1098329055 13359 80.91.229.6 (21 Oct 2004 03:24:15 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 21 Oct 2004 03:24:15 +0000 (UTC) Cc: emacs-devel@gnu.org, monnier@iro.umontreal.ca, alexander.pohoyda@gmx.net, storm@cua.dk Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Oct 21 05:24:04 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 1CKTYZ-0005VD-00 for ; Thu, 21 Oct 2004 05:24:03 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CKTfz-0003s2-Dr for ged-emacs-devel@m.gmane.org; Wed, 20 Oct 2004 23:31:43 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CKTfi-0003l7-4l for emacs-devel@gnu.org; Wed, 20 Oct 2004 23:31:26 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CKTfh-0003kA-5h for emacs-devel@gnu.org; Wed, 20 Oct 2004 23:31:25 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CKTfh-0003k3-1C for emacs-devel@gnu.org; Wed, 20 Oct 2004 23:31:25 -0400 Original-Received: from [131.204.53.104] (helo=manatee.dms.auburn.edu) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CKTYA-0003Ba-Kr; Wed, 20 Oct 2004 23:23:39 -0400 Original-Received: from raven.dms.auburn.edu (raven.dms.auburn.edu [131.204.53.29]) by manatee.dms.auburn.edu (8.12.10/8.12.10) with ESMTP id i9L3NSiU008207; Wed, 20 Oct 2004 22:23:28 -0500 (CDT) Original-Received: (from teirllm@localhost) by raven.dms.auburn.edu (8.11.7p1+Sun/8.11.7) id i9L3M3t11013; Wed, 20 Oct 2004 22:22:03 -0500 (CDT) X-Authentication-Warning: raven.dms.auburn.edu: teirllm set sender to teirllm@dms.auburn.edu using -f Original-To: rms@gnu.org In-reply-to: (message from Richard Stallman on Wed, 20 Oct 2004 21:45:31 -0400) 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:28684 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:28684 >>From my previous message: In other words, instead of changing the behavior of `interactive-p', it would seem to make relatively more sense to do (in the `how-many' code and any similar places): (if (interactive-p) (message "%d occurrences" count) (with-current-buffer "*Messages*" (insert (format "%d occurrences" count)))) Well: (insert (format "%d occurrences\n" count)) Sincerely, Luc.