From: "Drew Adams" <drew.adams@oracle.com>
To: <emacs-devel@gnu.org>
Subject: RE: "Invalid face reference" msg logged to *Messages* (but no error)
Date: Tue, 5 May 2009 17:12:44 -0700 [thread overview]
Message-ID: <006d01c9cddf$622ae830$0200a8c0@us.oracle.com> (raw)
In-Reply-To: <002c01c9cdb2$ec215510$0200a8c0@us.oracle.com>
The message "Invalid face reference: quote [N times]" seems to start when this
is evaluated:
(add-text-properties 99 111 (face (quote some-face)))
The actual face `some-face' makes no difference. The `face' text property is in
fact added (and displayed) correctly.
N is incremented thereafter, with seemingly each event. My guess is that it is
redisplay that is logging/updating the message - it doesn't seem to be related
to the code being evaluated. The add-text-property call seems only to be what
initiates it.
And a correction: I do see this also with Emacs 22 - just never noticed it
before.
HTH. Anyone know what this is about?
> From: Drew Adams Sent: Tuesday, May 05, 2009 11:54 AM
> In GNU Emacs 23.0.93.1 (i386-mingw-nt5.1.2600) of 2009-05-02
> on SOFT-MJASON, I am seeing this logged to *Messages* at
> various points, with N = various integers:
>
> "Invalid face reference: quote [N times]"
>
> Haven't been able to figure out where it's coming from yet.
> No error is raised (why not?), so debug-on-error doesn't help.
> I assume that some code has (quote foo) where Emacs is expecting
> just foo, and so it tries to interpret `quote' as
> a face. But I haven't been able to track this down, to see if
> it is a problem with my code or something else. I haven't
> noticed this in earlier builds of Emacs 23 (or in other releases).
>
> The only src directory I have for Emacs 23 dates from 2007.
> There I see this in merge_face_ref:
>
> /* FACE_REF ought to be a face name. */
> ok = merge_named_face (f, face_ref, to, named_merge_points);
> if (!ok && err_msgs)
> add_to_log ("Invalid face reference: %s", face_ref, Qnil);
>
> Anyone have a clue about this error? Have you seen it?
>
>
> [FWIW (no doubt unrelated), I've also seen this logged in *Messages*:
> "Error during redisplay: (quit)". And of course I too still get this:
> "Emergency (alloc): Warning: past 75% of memory limit"]
next prev parent reply other threads:[~2009-05-06 0:12 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-05 18:54 "Invalid face reference" msg logged to *Messages* (but no error) Drew Adams
2009-05-06 0:12 ` Drew Adams [this message]
2009-05-06 1:25 ` Stefan Monnier
2009-05-06 2:29 ` Drew Adams
2009-05-06 3:01 ` Miles Bader
2009-05-06 3:26 ` Stefan Monnier
2009-05-06 5:54 ` Drew Adams
2009-05-06 18:38 ` Eli Zaretskii
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='006d01c9cddf$622ae830$0200a8c0@us.oracle.com' \
--to=drew.adams@oracle.com \
--cc=emacs-devel@gnu.org \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).