From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#12491: 24.2.50; `Info-insert-dir' should be able to not show msgs Date: Thu, 28 Apr 2016 09:05:02 -0700 (PDT) Message-ID: <0d98644c-d3a0-4e38-b054-c401eb3131f5@default> References: <87txupmxbx.fsf@mail.jurta.org> <87lh3xag2k.fsf@gnus.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1461859589 28152 80.91.229.3 (28 Apr 2016 16:06:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 28 Apr 2016 16:06:29 +0000 (UTC) Cc: 12491@debbugs.gnu.org, 11851@debbugs.gnu.org To: Lars Ingebrigtsen , Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Apr 28 18:06:15 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1avoSB-00050l-MQ for geb-bug-gnu-emacs@m.gmane.org; Thu, 28 Apr 2016 18:06:11 +0200 Original-Received: from localhost ([::1]:49969 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1avoSB-0003vX-2x for geb-bug-gnu-emacs@m.gmane.org; Thu, 28 Apr 2016 12:06:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53386) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1avoS6-0003rH-V9 for bug-gnu-emacs@gnu.org; Thu, 28 Apr 2016 12:06:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1avoS3-00026W-UL for bug-gnu-emacs@gnu.org; Thu, 28 Apr 2016 12:06:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:41003) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1avoS3-00026F-RI for bug-gnu-emacs@gnu.org; Thu, 28 Apr 2016 12:06:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1avoS2-0008Ce-Hd for bug-gnu-emacs@gnu.org; Thu, 28 Apr 2016 12:06:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 28 Apr 2016 16:06:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 12491 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 12491-submit@debbugs.gnu.org id=B12491.146185951531460 (code B ref 12491); Thu, 28 Apr 2016 16:06:02 +0000 Original-Received: (at 12491) by debbugs.gnu.org; 28 Apr 2016 16:05:15 +0000 Original-Received: from localhost ([127.0.0.1]:53337 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1avoRG-0008BL-Rh for submit@debbugs.gnu.org; Thu, 28 Apr 2016 12:05:15 -0400 Original-Received: from userp1040.oracle.com ([156.151.31.81]:20369) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1avoRF-0008B6-3P; Thu, 28 Apr 2016 12:05:13 -0400 Original-Received: from aserv0021.oracle.com (aserv0021.oracle.com [141.146.126.233]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id u3SG55dO009552 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 28 Apr 2016 16:05:06 GMT Original-Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by aserv0021.oracle.com (8.13.8/8.13.8) with ESMTP id u3SG54rR013009 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 28 Apr 2016 16:05:05 GMT Original-Received: from abhmp0004.oracle.com (abhmp0004.oracle.com [141.146.116.10]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id u3SG53Zu010986; Thu, 28 Apr 2016 16:05:03 GMT In-Reply-To: <87lh3xag2k.fsf@gnus.org> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9 (901082) [OL 12.0.6744.5000 (x86)] X-Source-IP: aserv0021.oracle.com [141.146.126.233] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:117083 Archived-At: > As Eli pointed out, there's now `inhibit-message'. Closing. That is not the Emacs way. It is not what is recommended in the manual. See (elisp) `Distinguish Interactive'. -- The recommended way to test whether the function was called using 'call-interactively' is to give it an optional argument 'print-message' and use the 'interactive' spec to make it non-'nil' in interactive calls. Here's an example: (defun foo (&optional print-message) (interactive "p") (when print-message (message "foo"))) We use '"p"' because the numeric prefix argument is never 'nil'. Defined in this way, the function does display the message when called from a keyboard macro. The above method with the additional argument is usually best, because it allows callers to say "treat this call as interactive". But you can also do the job by testing 'called-interactively-p'.