From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.help Subject: RE: message in minibuffer Date: Sat, 19 Nov 2005 16:10:51 -0800 Message-ID: References: <1132444322.535781.216800@o13g2000cwo.googlegroups.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1132445513 18164 80.91.229.2 (20 Nov 2005 00:11:53 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 20 Nov 2005 00:11:53 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Nov 20 01:11:49 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Edco7-0002cO-Bt for geh-help-gnu-emacs@m.gmane.org; Sun, 20 Nov 2005 01:11:47 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Edco6-0001Ca-7F for geh-help-gnu-emacs@m.gmane.org; Sat, 19 Nov 2005 19:11:46 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EdcnM-0001AC-4r for help-gnu-emacs@gnu.org; Sat, 19 Nov 2005 19:11:00 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EdcnJ-00017a-AL for help-gnu-emacs@gnu.org; Sat, 19 Nov 2005 19:10:58 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EdcnI-000174-MN for help-gnu-emacs@gnu.org; Sat, 19 Nov 2005 19:10:56 -0500 Original-Received: from [148.87.122.30] (helo=rgminet01.oracle.com) by monty-python.gnu.org with esmtp (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.34) id 1EdcnI-0007sX-Fp for help-gnu-emacs@gnu.org; Sat, 19 Nov 2005 19:10:56 -0500 Original-Received: from rgmsgw301.us.oracle.com (rgmsgw301.us.oracle.com [138.1.186.50]) by rgminet01.oracle.com (Switch-3.1.6/Switch-3.1.6) with ESMTP id jAK0AsUT020722 for ; Sat, 19 Nov 2005 17:10:54 -0700 Original-Received: from rgmsgw301.us.oracle.com (localhost [127.0.0.1]) by rgmsgw301.us.oracle.com (Switch-3.1.7/Switch-3.1.7) with ESMTP id jAK0As8v028679 for ; Sat, 19 Nov 2005 17:10:54 -0700 Original-Received: from dradamslap (dhcp-amer-csvpn-gw2-141-144-73-49.vpn.oracle.com [141.144.73.49]) by rgmsgw301.us.oracle.com (Switch-3.1.7/Switch-3.1.7) with SMTP id jAK0Aqdu028672 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO) for ; Sat, 19 Nov 2005 17:10:53 -0700 Original-To: X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) In-Reply-To: <1132444322.535781.216800@o13g2000cwo.googlegroups.com> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506 Importance: Normal X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE 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: news.gmane.org gmane.emacs.help:31179 Archived-At: I am a newbie in writing lisp code. When my code displays a message in the minibuffer using the (message ...) syntax, I always have double quotes around the output. I have noticed in other packages that messages appear without the double quotes yet the code uses the same syntax How do I get rid of the double quotes in the mini-buffer? Post your code, so we can see what it does. `message' displays a literal string argument without double-quotes. However, if your string _contains_ double-quotes, then they will be shown by `message', as they are characters in the string itself. This will not display any double-quotes: (message "This is a message") This will display double-quotes: (message "\"Quoted message\"") If you are doing (message foo), then make sure the value of `foo' is not a string that contains double-quotes. In particular, be aware that if you set a string-valued variable `foo' using `set-variable' or Customize, you should not include double-quotes in the value you enter. Keep in mind also that the first argument to `message' is a format string. See function `format' for the proper use of `%' in format strings. If, for example, you use `%S' instead of `%s', then a string value will be displayed surrounded by double-quotes. For example: (setq foo "aaa") (message "Here is a string value: %S." foo) -> Here is a string value: "aaa". (message "Here is a string value: %s." foo) -> Here is a string value: aaa.