From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jean Louis Newsgroups: gmane.emacs.help Subject: Re: Toggle appointment notification Date: Wed, 2 Dec 2020 18:08:24 +0300 Message-ID: References: <20201201195357.GA17507@tuxteam.de> <878sahgq1i.fsf@web.de> <20201202084116.GA14592@tuxteam.de> <20201202123740.GC14592@tuxteam.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36980"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mutt/2.0 (3d08634) (2020-11-07) Cc: help-gnu-emacs@gnu.org To: Christopher Dimech Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed Dec 02 16:12:58 2020 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kkToO-0009TP-Od for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 02 Dec 2020 16:12:56 +0100 Original-Received: from localhost ([::1]:33406 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kkToN-0006ls-Px for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 02 Dec 2020 10:12:55 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46722) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kkTmZ-0005tj-4N for help-gnu-emacs@gnu.org; Wed, 02 Dec 2020 10:11:03 -0500 Original-Received: from static.rcdrun.com ([95.85.24.50]:41133) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kkTmX-0001YM-4m for help-gnu-emacs@gnu.org; Wed, 02 Dec 2020 10:11:02 -0500 Original-Received: from localhost ([::ffff:197.157.0.57]) (AUTH: PLAIN admin, TLS: TLS1.2,256bits,ECDHE_RSA_AES_256_GCM_SHA384) by static.rcdrun.com with ESMTPSA id 00000000002C0013.000000005FC7AE61.0000083B; Wed, 02 Dec 2020 15:10:23 +0000 Content-Disposition: inline In-Reply-To: Received-SPF: pass client-ip=95.85.24.50; envelope-from=bugs@gnu.support; helo=static.rcdrun.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:125835 Archived-At: * Christopher Dimech [2020-12-02 16:17]: > > Sent: Wednesday, December 02, 2020 at 1:37 PM > > From: tomas@tuxteam.de > > To: "Christopher Dimech" > > Cc: help-gnu-emacs@gnu.org > > Subject: Re: Toggle appointment notification > > > > On Wed, Dec 02, 2020 at 01:05:07PM +0100, Christopher Dimech wrote: > > > > Sent: Wednesday, December 02, 2020 at 9:41 AM > > > > From: tomas@tuxteam.de > > > > To: help-gnu-emacs@gnu.org > > > > Subject: Re: Toggle appointment notification > > > > > > > > On Tue, Dec 01, 2020 at 10:44:09PM +0100, Michael Heerdegen wrote: > > > > > writes: > > > > > > > > > > > (message "my heading: %s" (prin1-to-string any)) > > > > > > > > > > Or equivalent > > > > > > > > > > (message "my heading: %S" any) > > > > > > > > > > , no? > > > > > > > > Indeed. Recommended reading "4.7 Formatting Strings" in the Emacs Lisp > > > > manual (in the Intertubes here [1]). > > > > > > How does one deal with conditionals (1, nil) in format? > > > > Care to pose a more complete example? > > > > As far as I understood you, you'd put a Lisp expression in the 2nd...nth > > arguments of (message fmt ...), but I might be misunderstanding you > > completely. > > As I read it, the format it is mainly for numerical and strings. > > (format "%s" arbitrary-string) I was forgetting that (message) is formatting itself and wanted to forget about it when debugging. Often I wish to show value of a function in buffer, so I used `message-any', it appeared easier, but need not be. If I forget "%s" then it would not work.