GNU bug report logs - #19424
23.4; incorrect byte-compiler warning for `mode-line-format'

Previous Next

Package: emacs;

Reported by: Drew Adams <drew.adams <at> oracle.com>

Date: Sun, 21 Dec 2014 17:25:02 UTC

Severity: wishlist

Tags: fixed

Found in version 23.4

Fixed in version 26.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Drew Adams <drew.adams <at> oracle.com>
To: Dmitry Gutov <dgutov <at> yandex.ru>
Cc: 19424 <at> debbugs.gnu.org
Subject: bug#19424: 23.4; incorrect byte-compiler warning for `mode-line-format'
Date: Sun, 21 Dec 2014 12:38:46 -0800 (PST)
> >     Warning: `default-mode-line-format' is an obsolete variable
> >     (as of Emacs 23.2); use `(default-value 'mode-line-format)'
> >     instead.
> 
> Why `default-value', but not `setq-default'?

Should be obvious: Because the intention of a given occurrence
of `default-mode-line-format' might not be to set the default
value of `mode-line-format'.

Consider code that used, for example:

(setq mode-line-format  default-mode-line-format)

A reasonable update of that code would likely be

(setq mode-line-format  (default-value 'mode-line-format))

That does not set the default value of `mode-line-format'.




This bug report was last modified 8 years and 173 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.