all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* VM and find-face
@ 2005-01-06 15:49 Stephen Eglen
  2005-01-06 21:42 ` Kyle Jones
  2005-01-07  2:50 ` Richard Stallman
  0 siblings, 2 replies; 4+ messages in thread
From: Stephen Eglen @ 2005-01-06 15:49 UTC (permalink / raw)


Hi,

VM 7.17 no longer works with the CVS version of Emacs, I think due to
the introduction yesterday of find-face into find-func.el.  VM has the
following code:

(if (if (fboundp 'find-face)
		(find-face 'vm-monochrome-image)
	      (facep 'vm-monochrome-image))
	    nil
	  (make-face 'vm-monochrome-image)
	  (set-face-background 'vm-monochrome-image "white")
	  (set-face-foreground 'vm-monochrome-image "black"))

In todays's CVS emacs, with its newly defined find-face defun, I get 
the backtrace:

  signal(error ("Don't know where `vm-monochrome-image' is defined"))
  error("Don't know where `%s' is defined" vm-monochrome-image)
  find-function-search-for-symbol(vm-monochrome-image defface nil)
  find-definition-noselect(vm-monochrome-image defface)
  find-function-do-it(vm-monochrome-image defface switch-to-buffer)
  find-face(vm-monochrome-image)


One problem is that find-face behaves differently on Emacs and XEmacs;
find-face returns nil on the above call if the face could not be
found.

What's the best way to proceed - update VM or allow find-face to
return nil?

Stephen

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2005-01-07  2:50 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-06 15:49 VM and find-face Stephen Eglen
2005-01-06 21:42 ` Kyle Jones
2005-01-06 22:11   ` Miles Bader
2005-01-07  2:50 ` Richard Stallman

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.