[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: master ac6b62b: * lisp/time.el (world-clock-mode): Make non-interact
From: |
Eli Zaretskii |
Subject: |
Re: master ac6b62b: * lisp/time.el (world-clock-mode): Make non-interactive. |
Date: |
Fri, 23 Apr 2021 13:34:03 +0300 |
> From: Stefan Kangas <stefan@marxist.se>
> Date: Fri, 23 Apr 2021 09:22:29 +0000
> Cc: emacs-devel@gnu.org
>
> >> (define-derived-mode world-clock-mode special-mode "World clock"
> >> "Major mode for buffer that displays times in various time zones.
> >> See `world-clock'."
> >> + :interactive nil
> >> (setq-local revert-buffer-function #'world-clock-update)
> >> (setq show-trailing-whitespace nil))
> >
> > Stefan, can you give your rationale for the change? Why should user
> > be unable to invoke this mode interactively, when they could do so for
> > a long time?
>
> This mode is only useful in a buffer prepared for its use by
> `world-clock'. Running it in an arbitrary buffer will silently fail.
Is that true also for turning off the mode?