all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Drew Adams <drew.adams@oracle.com>
To: Eli Zaretskii <eliz@gnu.org>, Drew Adams <drew.adams@oracle.com>
Cc: larsi@gnus.org, stefan@marxist.se, triska@metalevel.at,
	45428@debbugs.gnu.org
Subject: bug#45428: 27.1; (quote (quote (quote ...))) unexpectedly works as anonymous face
Date: Mon, 28 Dec 2020 12:44:11 -0800 (PST)	[thread overview]
Message-ID: <b91aabf1-4786-4013-8015-198d9befb65c@default> (raw)
In-Reply-To: <<83im8lk9lp.fsf@gnu.org>>

> > I see the same thing that I see when I use this:
> > (insert (propertize "hello" 'face '(:height 10.0)))
> 
> Not exactly the same, see below.
> 
> > The bug, IMO, is that this is not "a sequence of
> > PROPERY VALUE pairs...", which is what the doc
> > says it should be: (quote (quote '(:height 10.0)))
> 
> Right, it's not.
> 
> > I wouldn't think of this as a doc bug because (1)
> > this behavior is so unusual
> 
> Which behavior are you alluding to here? and what is the "doc bug",
> exactly?

I was alluding to the fact that the doc says that
"Remaining arguments form a sequence of PROPERTY
VALUE pairs", but the inserted text seems to show
the effect of the pair `face (:height 10.0)', even
though that pair isn't present.

Instead, the only pair is, in effect (by evaling
the outermost `quote'), `face (quote '(:height 10.0))'.
The value `(quote '(:height 10.0))' for text property
`face' is different from the value `(:height 10.0)',
but the effect seems to be the same.  Likewise, if
you use

 (quote (quote (quote (quote '(:height 10.0)))))

> > Wrt #1: nowhere else, AFAIK, do we accept
> >    (quote (quote (quote SEXP)))
> > or (quote (quote (quote (quote (quote SEXP)))))
> > or <add more `quote' ...> as a substitute for SEXP.
> 
> We don't "accept" it here, either.
> 
> > We don't do that anywhere else, and I don't see
> > why we should do it here (or anywhere)?
> 
> We don't.  Please look in *Messages*, and you will see that.

OK.  I see that if I click move point around in
*Messages*, and with repetitions presumably from
redisplay cycles, this is shown in *Messages*:

  Invalid face reference: quote

There's no doubt some explanation for why the pair
formed by nested `quote's doesn't just get rejected
but is reported as invalid and has the innermost
`(:height 10.0)' taken into account.  No doubt you'll
explain that (please), but at least I hope you can
see that it's not obvious.

Given an explanation, there's presumably no bug.

So far, without an explanation, I don't understand
the behavior.  It's surprising, at the least.  But
I guess it has something to do with what's allowed
as a face "reference" and how such are handled?

If this is entirely normal behavior then I don't,
off-hand, see a way to lessen the surprise by
changing the doc.  Do you?  Depending on the
explanation, maybe there's something that could or
should be added to the manual about the behavior
of anonymous face representations?

Having heard the misunderstanding that we've made
(still without my understanding, so far), do you
have a suggestion for how to dispel/prevent it?





       reply	other threads:[~2020-12-28 20:44 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <<<<<<m2tusa3vzm.fsf@metalevel.at>
     [not found] ` <<<<<<87eejc9pnm.fsf@gnus.org>
     [not found]   ` <<<<<<CADwFkm=Q9P-a+PJdiQzGWU9PkV1BhTEw9V4GPcFRAnuaFiUNVg@mail.gmail.com>
     [not found]     ` <<<<<<5e99c39b-b67b-4184-a890-2cae38fb40de@default>
     [not found]       ` <<<<<<87a6tzk5iv.fsf@metalevel.at>
     [not found]         ` <<<<<<83h7o7kufk.fsf@gnu.org>
     [not found]           ` <<<<<975c150b-99aa-4143-b057-8b5ec7caec19@default>
     [not found]             ` <<<<<838s9jkqh7.fsf@gnu.org>
     [not found]               ` <<<<fc9aea86-b07a-4f81-a442-019f610bb73a@default>
     [not found]                 ` <<<<835z4mkpvz.fsf@gnu.org>
     [not found]                   ` <<<5dfff982-e496-46fe-9efd-1e0edd4f0be8@default>
     [not found]                     ` <<<83o8idkehc.fsf@gnu.org>
     [not found]                       ` <<<83mtxxkcwk.fsf@gnu.org>
     [not found]                         ` <<9a600718-7caf-4ad0-a664-0ebafba63e57@default>
     [not found]                           ` <<83im8lk9lp.fsf@gnu.org>
2020-12-28 20:44                             ` Drew Adams [this message]
2020-12-29 14:53                               ` bug#45428: 27.1; (quote (quote (quote ...))) unexpectedly works as anonymous face Eli Zaretskii
2020-12-29 16:40                                 ` Markus Triska
2020-12-29 17:17                                   ` Eli Zaretskii
2020-12-29 18:39                                     ` Markus Triska
2020-12-29 19:41                                       ` Eli Zaretskii
2020-12-29 18:27                                 ` Drew Adams
2020-12-29 19:39                                   ` Eli Zaretskii
2020-12-30  2:54                                     ` Lars Ingebrigtsen
     [not found] <<<<<m2tusa3vzm.fsf@metalevel.at>
     [not found] ` <<<<<87eejc9pnm.fsf@gnus.org>
     [not found]   ` <<<<<CADwFkm=Q9P-a+PJdiQzGWU9PkV1BhTEw9V4GPcFRAnuaFiUNVg@mail.gmail.com>
     [not found]     ` <<<<<5e99c39b-b67b-4184-a890-2cae38fb40de@default>
     [not found]       ` <<<<<87a6tzk5iv.fsf@metalevel.at>
     [not found]         ` <<<<<83h7o7kufk.fsf@gnu.org>
     [not found]           ` <<<<975c150b-99aa-4143-b057-8b5ec7caec19@default>
     [not found]             ` <<<<838s9jkqh7.fsf@gnu.org>
     [not found]               ` <<<fc9aea86-b07a-4f81-a442-019f610bb73a@default>
     [not found]                 ` <<<835z4mkpvz.fsf@gnu.org>
     [not found]                   ` <<5dfff982-e496-46fe-9efd-1e0edd4f0be8@default>
     [not found]                     ` <<83o8idkehc.fsf@gnu.org>
     [not found]                       ` <<83mtxxkcwk.fsf@gnu.org>
2020-12-28 18:54                         ` Drew Adams
2020-12-28 19:34                           ` Eli Zaretskii
     [not found] <<<<m2tusa3vzm.fsf@metalevel.at>
     [not found] ` <<<<87eejc9pnm.fsf@gnus.org>
     [not found]   ` <<<<CADwFkm=Q9P-a+PJdiQzGWU9PkV1BhTEw9V4GPcFRAnuaFiUNVg@mail.gmail.com>
     [not found]     ` <<<<5e99c39b-b67b-4184-a890-2cae38fb40de@default>
     [not found]       ` <<<<87a6tzk5iv.fsf@metalevel.at>
     [not found]         ` <<<<83h7o7kufk.fsf@gnu.org>
     [not found]           ` <<<975c150b-99aa-4143-b057-8b5ec7caec19@default>
     [not found]             ` <<<838s9jkqh7.fsf@gnu.org>
     [not found]               ` <<fc9aea86-b07a-4f81-a442-019f610bb73a@default>
     [not found]                 ` <<835z4mkpvz.fsf@gnu.org>
2020-12-28 17:45                   ` Drew Adams
2020-12-28 17:49                     ` Eli Zaretskii
2020-12-28 18:23                       ` Eli Zaretskii
     [not found] <<<m2tusa3vzm.fsf@metalevel.at>
     [not found] ` <<<87eejc9pnm.fsf@gnus.org>
     [not found]   ` <<<CADwFkm=Q9P-a+PJdiQzGWU9PkV1BhTEw9V4GPcFRAnuaFiUNVg@mail.gmail.com>
     [not found]     ` <<<5e99c39b-b67b-4184-a890-2cae38fb40de@default>
     [not found]       ` <<<87a6tzk5iv.fsf@metalevel.at>
     [not found]         ` <<<83h7o7kufk.fsf@gnu.org>
     [not found]           ` <<975c150b-99aa-4143-b057-8b5ec7caec19@default>
     [not found]             ` <<838s9jkqh7.fsf@gnu.org>
2020-12-27 19:56               ` Drew Adams
2020-12-28 13:43                 ` Eli Zaretskii
     [not found] <<m2tusa3vzm.fsf@metalevel.at>
     [not found] ` <<87eejc9pnm.fsf@gnus.org>
     [not found]   ` <<CADwFkm=Q9P-a+PJdiQzGWU9PkV1BhTEw9V4GPcFRAnuaFiUNVg@mail.gmail.com>
     [not found]     ` <<5e99c39b-b67b-4184-a890-2cae38fb40de@default>
     [not found]       ` <<87a6tzk5iv.fsf@metalevel.at>
     [not found]         ` <<83h7o7kufk.fsf@gnu.org>
2020-12-27 19:06           ` Drew Adams
2020-12-27 19:18             ` Eli Zaretskii
2020-12-25 12:34 Markus Triska
2020-12-26 22:19 ` Lars Ingebrigtsen
2020-12-27  4:16   ` Stefan Kangas
2020-12-27  4:47     ` Drew Adams
2020-12-27  8:38       ` Markus Triska
2020-12-27 17:52         ` Eli Zaretskii
2020-12-28 19:58 ` Andreas Schwab

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=b91aabf1-4786-4013-8015-198d9befb65c@default \
    --to=drew.adams@oracle.com \
    --cc=45428@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    --cc=larsi@gnus.org \
    --cc=stefan@marxist.se \
    --cc=triska@metalevel.at \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.