all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* trailing whitespace in calendar
@ 2017-02-01  1:16 luis o silva
  2017-02-01  9:23 ` Robert Pluim
  0 siblings, 1 reply; 3+ messages in thread
From: luis o silva @ 2017-02-01  1:16 UTC (permalink / raw)
  To: help-gnu-emacs

Dear Emacs users,

In my init.el, I have:

***************************
(add-hook 'today-visible-calendar-hook ; when displaying calendar
          (lambda ()
            (setq show-trailing-whitespace nil)))

**************************

so that the calendar buffer does not show trailing
whitespaces. Unfortunately, after updating emacs to the latest version
(25.1), this stoped working and now trailing whitespaces are shown in
the calendar buffer. Do you know why this is not working now?

Thank you very much for any hint.

Regards,
luis

-- 
luis octavio silva pereyra.
IIMAS-UNAM
Física Matemática
Circuito Escolar s/n
Cd. Universitaria
04510 México, D.F.
http://www.iimas.unam.mx/silva/



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: trailing whitespace in calendar
  2017-02-01  1:16 trailing whitespace in calendar luis o silva
@ 2017-02-01  9:23 ` Robert Pluim
  2017-02-01 16:40   ` Drew Adams
  0 siblings, 1 reply; 3+ messages in thread
From: Robert Pluim @ 2017-02-01  9:23 UTC (permalink / raw)
  To: help-gnu-emacs

luis o silva <lsilvapereyra@gmail.com> writes:

> Dear Emacs users,
>
> In my init.el, I have:
>
> ***************************
> (add-hook 'today-visible-calendar-hook ; when displaying calendar
>           (lambda ()
>             (setq show-trailing-whitespace nil)))
>
> **************************
>
> so that the calendar buffer does not show trailing
> whitespaces. Unfortunately, after updating emacs to the latest version
> (25.1), this stoped working and now trailing whitespaces are shown in
> the calendar buffer. Do you know why this is not working now?
>

That hook got renamed to calendar-today-visible-hook




^ permalink raw reply	[flat|nested] 3+ messages in thread

* RE: trailing whitespace in calendar
  2017-02-01  9:23 ` Robert Pluim
@ 2017-02-01 16:40   ` Drew Adams
  0 siblings, 0 replies; 3+ messages in thread
From: Drew Adams @ 2017-02-01 16:40 UTC (permalink / raw)
  To: help-gnu-emacs

> > (add-hook 'today-visible-calendar-hook ...
> 
> That hook got renamed to calendar-today-visible-hook

Actually, it's not the problem that it was renamed.  The
problem is that the old name is no longer recognized.

The option was renamed in Emacs 23, but Emacs remained smart
enough and careful enough, through release 24.5, to continue
to respect the old name as well.  This respect (support) was
removed in Emacs 25.

Prior to Emacs 25, Emacs did the following just before the
defcustom for the new name, `calendar-today-visible-hook':

 (define-obsolete-variable-alias 'today-visible-calendar-hook
   'calendar-today-visible-hook "23.1")

As `C-h f define-obsolete-variable-alias' says:

 If CURRENT-NAME is a defcustom ... then the
 define-obsolete-variable-alias statement should be
 evaluated before the defcustom, if user customizations
 are to be respected.

IOW, `define-obsolete-variable-alias' is an easy way
to warn users about a name change but also continue to
support the old name.

It was decided in Emacs 25 that this user customization
(and others that were also deprecated in Emacs 23) is no
longer to be respected.

It is _good_ for users to use the new names.  Whether it
is good for them to be forced (silently) to use them is
a different question.  At any rate, that's the case now.

It might be better perhaps if the warning, which tells
you what the new name is, continued to be issued, even
after support was discontinued.

For example, after desupport the warning message could
perhaps be changed to an error (raised when the old name
is used), to let you know what the problem is.  Then
users like Luis would not need to wonder "Do you know
why this is not working now?"

Instead, Emacs just fails to recognize the old name now.



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-02-01 16:40 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-02-01  1:16 trailing whitespace in calendar luis o silva
2017-02-01  9:23 ` Robert Pluim
2017-02-01 16:40   ` Drew Adams

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.