all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: David Reitter <david.reitter@gmail.com>
To: bug-gnu-emacs@gnu.org
Subject: copy-face, delete-frame -> invalid face
Date: Sun, 16 Dec 2007 08:53:18 +0000	[thread overview]
Message-ID: <236E051D-AA3A-44DA-A383-C1007B353E2A@gmail.com> (raw)

Executing the following:

(let ((nf (make-frame)))
   (copy-face 'default 'new-face (selected-frame) nf)
   (delete-frame nf)
   (make-frame))

will produce the error below, and it will render Emacs unusable until  
a restart, because the faulty new-face persists and causes the problem  
whenever a new frame is made.

Debugger entered--Lisp error: (error "Invalid face" new-face)
   internal-get-lisp-face-attribute(new-face :family #<frame Emacs@scarlett.lan 
  0x76a710>)
   face-attribute(new-face :family #<frame Emacs@scarlett.lan 0x76a710>)
   face-attr-match-p(new-face nil #<frame Emacs@scarlett.lan 0x76a710>)
   face-spec-match-p(new-face nil #<frame Emacs@scarlett.lan 0x76a710>)
   frame-set-background-mode(#<frame Emacs@scarlett.lan 0x1f102e0>)
   x-create-frame-with-faces(nil)
   make-frame()





In GNU Emacs 22.1.50.1 (i386-apple-darwin8.10.1, Carbon Version 1.6.0)
  of 2007-10-15 on plume.sr.unh.edu
Windowing system distributor `Apple Inc.', version 10.5.1
configured using `configure  '--without-x' '--prefix=/usr/local''

Important settings:
   value of $LC_ALL: nil
   value of $LC_COLLATE: nil
   value of $LC_CTYPE: nil
   value of $LC_MESSAGES: nil
   value of $LC_MONETARY: nil
   value of $LC_NUMERIC: nil
   value of $LC_TIME: nil
   value of $LANG: nil
   locale-coding-system: iso-8859-1
   default-enable-multibyte-characters: t

Major mode: Debugger

Minor modes in effect:
   encoded-kbd-mode: t
   tooltip-mode: t
   tool-bar-mode: t
   mouse-wheel-mode: t
   menu-bar-mode: t
   file-name-shadow-mode: t
   global-font-lock-mode: t
   font-lock-mode: t
   blink-cursor-mode: t
   unify-8859-on-encoding-mode: t
   utf-translate-cjk-mode: t
   auto-compression-mode: t
   line-number-mode: t

Recent input:
<down-mouse-1> <drag-mouse-1> C-y C-x C-e <switch-frame>
<help-echo> <help-echo> <down-mouse-1> <mouse-1> <help-echo>
<menu-bar> <help-menu> <send-emacs-bug-report>

Recent messages:
For information about the GNU system and GNU/Linux, type C-h C-p. [2  
times]
Loading encoded-kb...done
Mark set
Loading debug...done
Entering debugger...
Loading help-mode...done
Loading emacsbug...
Loading regexp-opt...done
Loading emacsbug...done
call-interactively: Text is read-only





                 reply	other threads:[~2007-12-16  8:53 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=236E051D-AA3A-44DA-A383-C1007B353E2A@gmail.com \
    --to=david.reitter@gmail.com \
    --cc=bug-gnu-emacs@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 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.