GNU bug report logs - #45428
27.1; (quote (quote (quote ...))) unexpectedly works as anonymous face

Previous Next

Package: emacs;

Reported by: Markus Triska <triska <at> metalevel.at>

Date: Fri, 25 Dec 2020 12:41:02 UTC

Severity: minor

Tags: wontfix

Found in version 27.1

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

Bug is archived. No further changes may be made.

Full log


Message #8 received at 45428 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Markus Triska <triska <at> metalevel.at>
Cc: 45428 <at> debbugs.gnu.org
Subject: Re: bug#45428: 27.1; (quote (quote (quote ...))) unexpectedly works
 as anonymous face
Date: Sat, 26 Dec 2020 23:19:09 +0100
Markus Triska <triska <at> metalevel.at> writes:

> In this case, the anonymous face is not specified as a property list,
> but as a symbolic expression of the form (quote (quote (quote ...))),
> and still works. Is this the intended result, and can we rely on it? If
> so, could you please document it?

I think it's just that Emacs is liberal in what it receives, and tries
to muddle through.  For instance, the following works fine:

(insert (propertize "hello" 'face (list (list (list :height 10.0)))))

But this isn't something we'd want to document -- we document the
recommended forms to use, even if Emacs is more liberal in what it
accepts, sometimes.

Anybody else got an opinion here?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




This bug report was last modified 4 years and 181 days ago.

Previous Next


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