From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: daniela-spit@gmx.it Newsgroups: gmane.emacs.help Subject: Re: Toggle appointment notification Date: Wed, 2 Dec 2020 02:54:40 +0100 Message-ID: References: <87sg8q86p0.fsf@zoho.eu> <87o8je86dm.fsf@zoho.eu> <20201201195357.GA17507@tuxteam.de> 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="11143"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org To: tomas@tuxteam.de Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed Dec 02 02:56:20 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 1kkHNT-0002n7-Hv for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 02 Dec 2020 02:56:19 +0100 Original-Received: from localhost ([::1]:34398 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kkHNS-0005wp-Iq for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 01 Dec 2020 20:56:18 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37974) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kkHMB-0005qA-Kz for help-gnu-emacs@gnu.org; Tue, 01 Dec 2020 20:55:00 -0500 Original-Received: from mout.gmx.net ([212.227.15.19]:35029) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kkHM5-0000KD-HU for help-gnu-emacs@gnu.org; Tue, 01 Dec 2020 20:54:55 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1606874080; bh=+o5+x2xQ9HOeKC1nDkdziiqvzZdIXvmtlWVCqzrlfvA=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=bg0ShNOZ+7id+MaUqkx8NtBCFCPyZ+KRhLMAGaeoFDv1RFgIIYpGPRvdHqB5q1+DC 3Qt89cnm9hVnj0TrGLDqRgYdckBNXVb47/q7tdvQNOE/3t3j7oMBnIIYGPgw2dGQLG 0opQSMZN/9pMPdEuG1/mvh+1IAMVFPwPpDWVSLBk= 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); Wed, 2 Dec 2020 02:54:40 +0100 Importance: normal Sensitivity: Normal In-Reply-To: <20201201195357.GA17507@tuxteam.de> X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:wYO+eL/79gOix1UAaBoQQNAVlzkr1YqdVnM+xPPN4wj9c3cs30b3XuvVDuRIKXkCqZxZ7 nwdjh5yh1Jon/dhW/FyRcNcy30E8wdqbvizwQcedMZChWSKGoP6Z93vJ7unjPwhRQC9scBYOtmw0 ktnJokWffnWgfgQzTtk5MLrGQ6ytZR4m4ZIsykdTWYIdRgKkoH/ZfbgARf1BR7bkupazMt1BxBId P6XI0O3DjyW2tx5Zqy+HOpZU3wsrw/9kErfoUilZAAURnKgOBHKogMJtNZjlApdCkV/MqyHtexU1 Go= X-UI-Out-Filterresults: notjunk:1;V03:K0:Jl2vJedjyzc=:oJRm8fnZrJxhY7msmHa0AS BlMJOxGrwD+p34FYuJQP0k4+7ConifPR90PVSGjaiB7dfENecaAn3ZGWykT5HuCvbliVeKjY0 9K9PCHproaiRMj9wPzKqIxlKxba8nc1TTfhLOXf+uAOxc2mT0Qnisc+IgvshnvT+uZdFSUGS5 rLQDGOlhoY+qEB0B3YUcnnJSBptC15QAIOpEOqgdtig46YOiaZ1oqnC141d2hQ+M+T3dOTc/s Nzkjzd2k03hL+C9Rpz+rYgzcYlQ3udTmk58WoZhBF/Yvu8g38mxekXOMHxeXOByKyyupcpsL+ l8cdUs3bzOvmqkyhqGk91gO8VBbSA5ZBU5NQ+eyl6u+4mCEVfsf7ixm8u0dLaMg5ZVRECkaB1 EKYAColWauZ5JJIdYjT9MzGnyS7e2B7gToErn5zvzvepQ22l4lj+oLXIBvsxzxRO/EddpBczg dW/sP+gmBP7fB/LHXo949jPUBIh/SPKow5MJDX6EzpJDiJSEjnPXnuQ8YcxFMXMp7c6mEenrG DjYMsLhPtgjM1/g7DWYv15rv+IvBjgtrqEhF4D5mwGH2w+KyOaB+XfYcPJQLYW5BTLiJqF3ee PW15sW/5qGVps= Received-SPF: pass client-ip=212.227.15.19; envelope-from=daniela-spit@gmx.it; helo=mout.gmx.net X-Spam_score_int: -15 X-Spam_score: -1.6 X-Spam_bar: - X-Spam_report: (-1.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, FREEMAIL_REPLY=1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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:125814 Archived-At: I have gone into appt-activate (defun appt-activate (&optional arg) "Toggle checking of appointments=2E With optional numeric argument ARG, turn appointment checking on if ARG is positive, otherwise off=2E" (interactive "P") (let ((appt-active appt-timer)) (setq appt-active (if arg (> (prefix-numeric-value arg) 0) (not appt-active))) In some areas of mathematical usage, zero is both positive and negative=2E Sometimes for computational purposes, it may be necessary to consider signed zeros, that is, treating +0 and =E2=88=920 as two different numbers= =2E=20 Would it be possible to clarify this in the defun description string, saying:=20 ARG is positive (ARG > 0), otherwise off=2E > Sent: Tuesday, December 01, 2020 at 8:53 PM > From: tomas@tuxteam=2Ede > To: help-gnu-emacs@gnu=2Eorg > Subject: Re: Toggle appointment notification > > On Tue, Dec 01, 2020 at 10:23:31PM +0300, Jean Louis wrote: > > * pietru@caramail=2Ecom [2020-12-01 22:14]: > > > > (defun message-any (any) > > > > "Message anything to minibuffer" > > > > (message "%s" (prin1-to-string any))) > > >=20 > > > How can one add a heading string before calling prin1-to-string=2E > > > The message would then give me some more clarity=2E > >=20 > > (message "%s: %s" heading (prin1-to-string any)) >=20 > Or, if the heading is a constant, just >=20 > (message "my heading: %s" (prin1-to-string any)) >=20 > Cheers > - t >