emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re:Re: face-remapping-alist can not override internal-border face?


From: tumashu
Subject: Re:Re: face-remapping-alist can not override internal-border face?
Date: Sat, 9 Mar 2019 22:28:32 +0800 (CST)










At 2019-03-09 02:52:44, "martin rudalics" <address@hidden> wrote:
> > Sorry, I do not understand this,  does this mean: test is inherited to 
> > default face,
> > so internal-border is remapped to default instead of test? but the below 
> > code
> > seem to not work too:
> >
> > (defface test
> >    '((:background "green"))
> >    "Face used by the ivy-posframe."
> >    :group 'ivy-posframe)
> >
> > (setq face-remapping-alist '((internal-border . test)))
> >
> > (make-frame '((internal-border-width . 100)))
> >
> > (redraw-display)
>
>In a package I wrote I added a separate 'defcustom' to let users
>specify the background of the internal border like
>
>(defcustom my-internal-border "blue"
>   "Background of internal border."
>   :type 'string
>   ...)
>
>and later use
>
>(set-face-background 'internal-border my-internal-border ...)
>
>to put that into effect.  I don't recall whether I then conducted
>special experiments as to whether other solutions would work but
>faintly recall that the face of the internal border is special in a
>way.

I think set-face-background will change internal-border globally,
Do we have any method which can let differnet frame have different border color?
>
>martin

reply via email to

[Prev in Thread] Current Thread [Next in Thread]