From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.help Subject: How to suppress messages? Date: Wed, 26 Jan 2005 15:25:48 -0800 Message-ID: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1106782504 2771 80.91.229.6 (26 Jan 2005 23:35:04 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 26 Jan 2005 23:35:04 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jan 27 00:34:59 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1Ctwgc-0004Rs-00 for ; Thu, 27 Jan 2005 00:34:59 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ctwsx-0003z1-52 for geh-help-gnu-emacs@m.gmane.org; Wed, 26 Jan 2005 18:47:43 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ctwkk-0005b2-1X for help-gnu-emacs@gnu.org; Wed, 26 Jan 2005 18:39:14 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Ctwki-0005ZT-2y for help-gnu-emacs@gnu.org; Wed, 26 Jan 2005 18:39:12 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ctwkh-0005Z1-H9 for help-gnu-emacs@gnu.org; Wed, 26 Jan 2005 18:39:11 -0500 Original-Received: from [141.146.126.228] (helo=agminet01.oracle.com) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1CtwXp-000572-3L for help-gnu-emacs@gnu.org; Wed, 26 Jan 2005 18:25:53 -0500 Original-Received: from agminet01.oracle.com (localhost [127.0.0.1]) by agminet01.oracle.com (Switch-3.1.4/Switch-3.1.0) with ESMTP id j0QNPpJU023006 for ; Wed, 26 Jan 2005 15:25:51 -0800 Original-Received: from rgmsgw301.us.oracle.com (rgmsgw301.us.oracle.com [138.1.191.50]) by agminet01.oracle.com (Switch-3.1.4/Switch-3.1.0) with ESMTP id j0QNPo26022984 for ; Wed, 26 Jan 2005 15:25:50 -0800 Original-Received: from rgmsgw301.us.oracle.com (localhost [127.0.0.1]) by rgmsgw301.us.oracle.com (Switch-3.1.4/Switch-3.1.0) with ESMTP id j0QNPoWF022108 for ; Wed, 26 Jan 2005 16:25:50 -0700 Original-Received: from dradamslap (dradams-lap.us.oracle.com [130.35.177.126]) by rgmsgw301.us.oracle.com (Switch-3.1.4/Switch-3.1.0) with SMTP id j0QNPnZp022103 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO) for ; Wed, 26 Jan 2005 16:25:49 -0700 Original-To: "Help-Gnu-Emacs" X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:23672 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:23672 I couldn't find any mention in the Elisp manual of a way to do this. If I have a function that calls a function (a built-in, as it turns out) that calls (message...), how can my function stop the message from being displayed by the called function? The example is a call to `default-boundp'. In Emacs 20, this apparently displays a message "Library is file `whatever'." By grepping, this seems like it might come from a call to `locate-library', but, as I say, `default-boundp' is built-in. Is there some way to bind something and then call the "messaging" function (e.g. `default-boundp') from within the binding scope, to prevent messages from echoing? E.g. (let ((inhibit-messages t)) ... (default-boundp ...)).