Re: confusion (aka specifiers...)
giacomo boffi <[email protected]> Tue, 15 Jun 2004 10:12:33 +0200
| Newsgroups | gmane.emacs.xemacs.design |
|---|---|
| Message-ID | <[email protected]> |
Stephen J. Turnbull writes:
>
> Yeah, I got it working, I'm not sure what was going on. I don't
> see a flicker, but I suspect what you are seeing is that fact that
> two separate hooks are used. It's possible to use the fact that
> specifiers are more powerful than merely "frame-local" to do all
> the work in the select-frame-hook. (See below.)
>
> I propose to discuss your feature in the Lispref. I think it
> nicely exposes some neat features of specifiers in a simple
> example. I'd appreciate comments on whether it makes sense to you,
> and any questions it raises.
>
> Definitely let me know your preferences about attribution. Also, as
> you may know, I dislike the GFDL and took the author's prerogative to
> deliberately leave it out of the permission statement. But if you
> would like it added, I have no objection.
yes, i have a preference about attribution: i didn't write the code
that is going into lispref, so i'd prefer that the copyright were
assigned to someone else
otoh, i guess if i should apply for a patent --> <-- an invisible smiley
> + Boffi's modeline hack as an example.
> +@emph{E.g.}, Giacomo Boffi wanted a modeline that indicates whether the frame
> +example format, up to the ``@code{;;; end of boffi-modeline-hack.el}''
> +;;; boffi-modeline-hack.el
> +;; Copyright (c) 2004 Giacomo Boffi <giacomo.boffi@@polimi.it>
> +(defgroup boffi-modeline-hack nil "Giacomo Boffi's modeline hack."
> +;; Boffi prefers red2 and red3 here.
> +(defcustom boffi-modeline-hack-selected-background "LemonChiffon"
> + :group 'boffi-modeline-hack)
> +(defcustom boffi-modeline-hack-deselected-background "Wheat"
> + :group 'boffi-modeline-hack)
> + (set-face-background 'modeline boffi-modeline-hack-selected-background
> + (set-face-background 'modeline boffi-modeline-hack-deselected-background
> +(defun boffi-modeline-hack-setup ()
> + (set-face-background 'modeline boffi-modeline-hack-deselected-background)
> +This approach causes a decided flicker on Boffi's platform, because the
> + (set-face-background 'modeline boffi-modeline-hack-deselected-background
> + (set-face-background 'modeline boffi-modeline-hack-deselected-background
> +(defun boffi-modified-modeline-hack-setup ()
> + (set-face-background 'modeline boffi-modeline-hack-selected-background
> +;;; end of boffi-modeline-hack.el
another preference: everyone like to see its name in print, but i'd
say that the above is a bit too much
ciao
gb