From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: pietru@caramail.com Newsgroups: gmane.emacs.help Subject: Re: Toggle appointment notification Date: Tue, 1 Dec 2020 20:13:38 +0100 Message-ID: References: <87sg8q86p0.fsf@zoho.eu> <87o8je86dm.fsf@zoho.eu> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39074"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org, moasenwood@zoho.eu To: Jean Louis Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue Dec 01 20:17:26 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 1kkB9S-000A3w-D7 for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 01 Dec 2020 20:17:26 +0100 Original-Received: from localhost ([::1]:49044 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kkB9R-0000re-6V for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 01 Dec 2020 14:17:25 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37922) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kkB6M-0000pr-7l for help-gnu-emacs@gnu.org; Tue, 01 Dec 2020 14:14:14 -0500 Original-Received: from mout.gmx.net ([212.227.17.22]:42471) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kkB6K-0001fB-8D for help-gnu-emacs@gnu.org; Tue, 01 Dec 2020 14:14:14 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1606850018; bh=BgoSvrWSV41u0n6UYEhMSUP2Ce3Yv8Rdneb2QVC/taA=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=OJduGtFjz4PZf3CHtU0zLdRAk/OwGZ/KvddgXHdD7jA5fF7ulcQnb7y4XDVMA8xUS Fqpu0/Qqy15AfeES+0QrTKzJnnrHMDvEsONwmyMixBH9/hY/FaVRGod1HiCVh6GKRa 5HYEK8o46xPgY8t/Howw20HGnIQAOYwJ/4Htmq0k= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from [213.165.168.94] ([213.165.168.94]) by web-mail.gmx.net (3c-app-mailcom-bs14.server.lan [172.19.170.182]) (via HTTP); Tue, 1 Dec 2020 20:13:38 +0100 Importance: normal Sensitivity: Normal In-Reply-To: X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:7y16lk6HSb2tOsOU797okJDtwvdqqm5KnjCmNsbDf3kz5D8uj6//HNByMbf/IdC5wgFAX ZYLTSwpbjEw5fuXkTFpceh7nd60M32MKJBQ1rcWg7gf5ZW2UkpgTPu31lSgAo8kTj70vuKBh6VCH MRaYYFDY03i93pNHucO+z0VmT/MpCelqODSxrQqhUhhXFNePSlH1FuJAGRkB7Eqo8BcC7WfAoNRY dFUvpJJV2gOsTY/DMvcH26c55JULeNzawUVQZmPUiCxHi5emync+eAxacufD3sXJ50q1fOwIzICB m8= X-UI-Out-Filterresults: notjunk:1;V03:K0:H2LNIlozuDI=:z5VgQuW0kOFcq4RQO+JjNp Qt3Q5w2thK+jfWrXQ+A1tm6mTGkwcchxilzQ0VeHI5wBi9g2Yb/HUTFCyZpbQgdt1z0btVZbz e6Ksqo6fCzwDZjfrESkIzOjomYOkf9DwgQuLCmZgMwwdo5lHZRjI0i6eo0zEc/Z0MnW9wwFsh gO52U02YKbfT7zKbfZHmfAlBNCrBAK41cWZPgEuPSLXptOdmG/wxE87YvBMePJmRV2wIjnQgL hdg/OGYLhD4QXgLxdg7HAhAKgwbxYuI9mArO+vBy5nKwDn0gTiq/xAEuzcVGHSNz3tZBb63rg BJu9Hx1EJXYEDXNJcmYzAc+UPNoV+97+AwiHjeFZIzEGcAUJ6Y3H+j1rSiSN9FfvxjM4ebZWP O+7ZtFZrfQqENzQzCpI75UPSi/olqQPNMFZQ4AqqJuyNnmm8c1aO8BxW3AGqHvbTYUq3PCfsL kY2hzFKNrJCXEx3Ikpz5MZ1g7DMytBBxJ9L927CHG8BxEhx1awdGF6j39LEEiURYbtHAUph78 dGojQ/56EgPfco9/tVz+8bvJy8uEQ05NT5qR0otOzbNiy8BCVHarUjvVqzW2Mu0R5ssSYG8b3 mNjWftc8OV5LY= Received-SPF: pass client-ip=212.227.17.22; envelope-from=pietru@caramail.com; helo=mout.gmx.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=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:125800 Archived-At: > Sent: Tuesday, December 01, 2020 at 7:52 PM > From: "Jean Louis" > To: pietru@caramail.com > Cc: moasenwood@zoho.eu, help-gnu-emacs@gnu.org > Subject: Re: Toggle appointment notification > > * pietru@caramail.com [2020-12-01 21:37]: > > There is one thing that is bugging me while testing my approach. If I= get > > the state of a function, how can I then print the state in the message= s > > buffer? > > > > (get 'appt-ntf-cycle 'state) > > Do you know (message "%s" state) function? > > If you obtain any value you may put it instead of `state'. > > For long time I used this function: > > (defun message-any (any) > "Message anything to minibuffer" > (message "%s" (prin1-to-string any))) How can one add a heading string before calling prin1-to-string. The message would then give me some more clarity.