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: Wed, 20 Oct 2004 21:45:31 -0400 Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Message-ID: 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> Reply-To: rms@gnu.org NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1098323204 961 80.91.229.6 (21 Oct 2004 01:46:44 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 21 Oct 2004 01:46:44 +0000 (UTC) Cc: teirllm@dms.auburn.edu, monnier@iro.umontreal.ca, alexander.pohoyda@gmx.net, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Oct 21 03:46:39 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 1CKS2I-00085g-00 for ; Thu, 21 Oct 2004 03:46:39 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CKS9i-0005Fx-IN for ged-emacs-devel@m.gmane.org; Wed, 20 Oct 2004 21:54:18 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CKS9H-00057T-EE for emacs-devel@gnu.org; Wed, 20 Oct 2004 21:53:51 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CKS9G-000574-EX for emacs-devel@gnu.org; Wed, 20 Oct 2004 21:53:50 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CKS9G-00056j-94 for emacs-devel@gnu.org; Wed, 20 Oct 2004 21:53:50 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CKS1F-0006Uc-6U for emacs-devel@gnu.org; Wed, 20 Oct 2004 21:45:33 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1CKS1D-0007nc-TW; Wed, 20 Oct 2004 21:45:31 -0400 Original-To: storm@cua.dk (Kim F. Storm) In-reply-to: (storm@cua.dk) 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:28679 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:28679 > Anything but a progress message should go into *Messages*. In principle yes, in practice I'm not sure.. If I use such a command in a macro and I do M-1000 C-x e, I get 1000 similar messages in *Messages* -- or actually just the last message-log-max (50) copies. ... for what purpose ? That is an interesting question--what to do when the macro is repeated so many times. Perhaps that case should be handled differently. For instance, if a macro is repeating many times, maybe only in the last few times should Fmessage actually put something into *Messages*. Before them maybe it could insert a line of ellipses. Would you like to implement that? It could be done with changes in xdisp.c. To reliably get the last iterations might require inserting the messages on every iteration, but deleting each iteration once it gets "old". This is a little like what message-log-max does; you could think of it as a separate limit on messages from macros. But this has nothing to do with what to do about interactive-p and its callers.