help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Toggle appointment notification


From: daniela-spit
Subject: Re: Toggle appointment notification
Date: Wed, 2 Dec 2020 02:54:40 +0100

I have gone into appt-activate


(defun appt-activate (&optional arg)
  "Toggle checking of appointments.
With optional numeric argument ARG, turn appointment checking on if
ARG is positive, otherwise off."
  (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.
Sometimes for computational purposes, it may be necessary to consider
signed zeros, that is, treating +0 and −0 as two different numbers. 

Would it be possible to clarify this in the defun description string,
saying: 

ARG is positive (ARG > 0), otherwise off.


> Sent: Tuesday, December 01, 2020 at 8:53 PM
> From: tomas@tuxteam.de
> To: help-gnu-emacs@gnu.org
> Subject: Re: Toggle appointment notification
>
> On Tue, Dec 01, 2020 at 10:23:31PM +0300, Jean Louis wrote:
> > * pietru@caramail.com <pietru@caramail.com> [2020-12-01 22:14]:
> > > > (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.
> > 
> > (message "%s: %s" heading (prin1-to-string any))
> 
> Or, if the heading is a constant, just
> 
>   (message "my heading: %s" (prin1-to-string any))
> 
> Cheers
>  - t
>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]