unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
To: <emacs-devel@gnu.org>
Subject: RE: need a way to override defface?
Date: Sat, 14 Jul 2007 15:58:49 -0700	[thread overview]
Message-ID: <BNELLINCGFJLDJIKDGACIEIMCAAA.drew.adams@oracle.com> (raw)
In-Reply-To: <BNELLINCGFJLDJIKDGACOEGCCAAA.drew.adams@oracle.com>

> From: Drew Adams Sent: Monday, July 09, 2007 8:00 PM
> > > `setq' will override a value already given to a variable by
> > > `defvar' or `defcustom', but is there a way to override a face already
> > > defined by `defface'?  Interactively, you can use `C-M-x' on another
> > > `defface' to override the previous definition, but how can you do that
> > > programmatically (without resorting to `eval-defun')?
> > >
> > > If there is no good way to do this, how about adding one?
> >
> > What about the set-face-* functions?
>
> Sure. What I meant, however, was something analogous to what
> `setq' does for `defvar' and `defcustom'. Something, for instance, that
> a user can put in .emacs to override a predefined `defface'.
>
> Yes, I realize that users can use Customize, but I'm thinking of something
> less interactive.
>
> As another example, I just sent a message to the list about a buff-menu.el
> patch. In order for others to try it out, I need to tell people to
> explicitly use `C-M-x' on a particular `defface' sexp. This is because
> buff-menu.el is preloaded, it calls `defface', and the patch gives a
> different definition of one of the faces. It would be simpler to
> give people a snippet of code to load (not eval with `C-M-x'), to override
> the predefined `defface'.

Anyone else have an idea about this?

      reply	other threads:[~2007-07-14 22:58 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-09 23:55 need a way to override defface? Drew Adams
2007-07-10  2:46 ` Ryan Yeske
2007-07-10  3:00   ` Drew Adams
2007-07-14 22:58     ` Drew Adams [this message]

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=BNELLINCGFJLDJIKDGACIEIMCAAA.drew.adams@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).