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: Tue, 26 Oct 2004 10:19:32 +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> <87is99nznd.fsf-monnier+emacs@gnu.org> <200410172053.i9HKrdL01136@raven.dms.auburn.edu> <200410190158.i9J1wrH25523@raven.dms.auburn.edu> <200410200127.i9K1Rpp28384@raven.dms.auburn.edu> <200410210308.i9L38Dm10997@raven.dms.auburn.edu> <200410222222.i9MMMD515903@raven.dms.auburn.edu> <200410232036.i9NKaTc05040@raven.dms.auburn.edu> <200410260309.i9Q39p205228@raven.dms.auburn.edu> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1098779294 27336 80.91.229.6 (26 Oct 2004 08:28:14 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 26 Oct 2004 08:28:14 +0000 (UTC) Cc: rms@gnu.org, jpw@gnu.org, klm@zope.com, emacs-devel@gnu.org, monnier@iro.umontreal.ca, alexander.pohoyda@gmx.net Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Oct 26 10:27:59 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 1CMMgR-0007CT-00 for ; Tue, 26 Oct 2004 10:27:59 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CMMo8-0007x8-5w for ged-emacs-devel@m.gmane.org; Tue, 26 Oct 2004 04:35:56 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CMMo1-0007ww-Qv for emacs-devel@gnu.org; Tue, 26 Oct 2004 04:35:49 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CMMo1-0007wk-C2 for emacs-devel@gnu.org; Tue, 26 Oct 2004 04:35:49 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CMMo1-0007wh-8X for emacs-devel@gnu.org; Tue, 26 Oct 2004 04:35:49 -0400 Original-Received: from [212.88.64.25] (helo=mail-relay.sonofon.dk) by monty-python.gnu.org with smtp (Exim 4.34) id 1CMMfo-0006uH-7Q for emacs-devel@gnu.org; Tue, 26 Oct 2004 04:27:20 -0400 Original-Received: (qmail 41802 invoked from network); 26 Oct 2004 08:19:26 -0000 Original-Received: from unknown (HELO kfs-l.imdomain.dk.cua.dk) (213.83.150.2) by 0 with SMTP; 26 Oct 2004 08:19:26 -0000 Original-To: Luc Teirlinck In-Reply-To: <200410260309.i9Q39p205228@raven.dms.auburn.edu> (Luc Teirlinck's message of "Mon, 25 Oct 2004 22:09:51 -0500 (CDT)") 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:28957 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:28957 Luc Teirlinck writes: > The list of files _outside the main Lisp directory_ that contain calls > to `interactive-p', which I sent yesterday, contained 18 false alarms > due to imperfect grepping. Here is the corrected list. It contains > 49 files. > emulation/cua-base.el This call is intentional. It occurs in (define-minor-mode cua-mode ...) to avoid outputting a longish message when used non-interactively (e.g. when cua-mode is enabled in .emacs). Since it only guards a message, it's ok with macros execution as well. BTW, in define-minor-mode, you cannot use the (interactive "p") alternative to check for interactive usage. -- Kim F. Storm http://www.cua.dk