From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: storm@cua.dk (Kim F. Storm) Newsgroups: gmane.emacs.devel Subject: Re: how-many/count-matches for non-interactive use Date: Sun, 17 Oct 2004 00:00:15 +0200 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> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1097964063 25388 80.91.229.6 (16 Oct 2004 22:01:03 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 16 Oct 2004 22:01:03 +0000 (UTC) Cc: rms@gnu.org, alexander.pohoyda@gmx.net, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Oct 17 00:00:50 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 1CIwbU-0003OH-00 for ; Sun, 17 Oct 2004 00:00:45 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CIwih-0004cv-Ue for ged-emacs-devel@m.gmane.org; Sat, 16 Oct 2004 18:08:11 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CIwic-0004ch-A8 for emacs-devel@gnu.org; Sat, 16 Oct 2004 18:08:06 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CIwib-0004cI-Gd for emacs-devel@gnu.org; Sat, 16 Oct 2004 18:08:05 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CIwib-0004cF-CU for emacs-devel@gnu.org; Sat, 16 Oct 2004 18:08:05 -0400 Original-Received: from [195.41.46.235] (helo=pfepa.post.tele.dk) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CIwb3-0005e4-Th; Sat, 16 Oct 2004 18:00:18 -0400 Original-Received: from kfs-l.imdomain.dk.cua.dk (0x503e2644.bynxx3.adsl-dhcp.tele.dk [80.62.38.68]) by pfepa.post.tele.dk (Postfix) with SMTP id 5563347FE18; Sun, 17 Oct 2004 00:00:14 +0200 (CEST) Original-To: Stefan Monnier In-Reply-To: <87zn2mh5jk.fsf-monnier+emacs@gnu.org> (Stefan Monnier's message of "Sat, 16 Oct 2004 14:41:58 -0400") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/21.3.50 (gnu/linux) 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:28493 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:28493 Stefan Monnier writes: >>> It seems that interactive-p as currently defined is very rarely useful >>> -- perhaps never. Thinking more about it, I belive that the current behaviour of interactive-p makes good sense in cases where it is used to determine whether a command should do sit-for or output a message, as those are typically not desireable during macro execution. >>> Perhaps we should change interactive-p to ignore >>> whether the command is running from a macro and do what most people >>> seem to expect. > >> I think we should declare it obsolete because the alternative (of >> adding an argument) is always clearer, less brittle, and allows >> callers better control. > >> Before we say it is obsolete, we had better see if anyone does really >> want it. It would be very good for someone to determine which, if >> any, of the current uses of interactive-p really want the current >> behavior of interactive-p. > > The current behavior can still be obtained without interactive-p by checking > executing-macro. Doing it that way also has the advantage of being much > more clear. > I doubt anybody used interactive-p rather than an extra argument just > because of the subtle difference w.r.t keyboard macros. I expect 99% of the > people who used interactive-p haven't even thought about the interaction > with keyboard macros. You could just as well do (and (not executing-macro) (interactive-p)) But without checking all current uses, it is hard to say what the right functionality is. I won't have time to do that ... -- Kim F. Storm http://www.cua.dk