* need a way to override defface?
@ 2007-07-09 23:55 Drew Adams
2007-07-10 2:46 ` Ryan Yeske
0 siblings, 1 reply; 4+ messages in thread
From: Drew Adams @ 2007-07-09 23:55 UTC (permalink / raw)
To: Emacs-Devel
`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?
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: need a way to override defface?
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
0 siblings, 1 reply; 4+ messages in thread
From: Ryan Yeske @ 2007-07-10 2:46 UTC (permalink / raw)
To: Drew Adams; +Cc: emacs-devel
"Drew Adams" <drew.adams@oracle.com> writes:
> `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?
Ryan
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: need a way to override defface?
2007-07-10 2:46 ` Ryan Yeske
@ 2007-07-10 3:00 ` Drew Adams
2007-07-14 22:58 ` Drew Adams
0 siblings, 1 reply; 4+ messages in thread
From: Drew Adams @ 2007-07-10 3:00 UTC (permalink / raw)
To: Ryan Yeske; +Cc: emacs-devel
> > `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'.
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: need a way to override defface?
2007-07-10 3:00 ` Drew Adams
@ 2007-07-14 22:58 ` Drew Adams
0 siblings, 0 replies; 4+ messages in thread
From: Drew Adams @ 2007-07-14 22:58 UTC (permalink / raw)
To: emacs-devel
> 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?
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2007-07-14 22:58 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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).