From: martin rudalics <rudalics@gmx.at>
To: tumashu <tumashu@163.com>
Cc: Eli Zaretskii <eliz@gnu.org>,
"emacs-devel@gnu.org" <emacs-devel@gnu.org>
Subject: Re: face-remapping-alist can not override internal-border face?
Date: Sun, 10 Mar 2019 09:45:44 +0100 [thread overview]
Message-ID: <5C84CEB8.6070501@gmx.at> (raw)
In-Reply-To: <376d7fef.5d24.16962dafb01.Coremail.tumashu@163.com>
> I think set-face-background will change internal-border globally,
> Do we have any method which can let differnet frame have different border color?
One stretch of code I use every day is (unedited, so to not miss a
maybe important detail)
(defvar my-child-frame nil)
(defun my-make-child-frame ()
(interactive)
(setq my-child-frame
(make-frame
`((parent-frame . ,(selected-frame))
(no-focus-on-map . t)
(undecorated . t)
(left . 1.0)
(top . 0.5)
(width . 0.3)
(height . 0.8)
(border-width . 0)
(internal-border-width . 3)
(background-color . "yellow")
(tool-bar-lines . 0)
(menu-bar-lines . 0)
(minibuffer . nil)
(vertical-scroll-bars . nil)
(horizontal-scroll-bars . nil)
(left-fringe . 0)
(right-fringe . 0)
(drag-internal-border . t)
(drag-with-mode-line . t)
(drag-with-header-line . t)
(min-height . 1)
(min-width . 1)
(keep-ratio . t)
(snap-width . 25)
(top-visible . 4)
;; (bottom-visible . 8)
(no-special-glyphs . t)
(unsplittable . t)
)))
(setq my-child-window (frame-root-window my-child-frame))
(set-window-buffer my-child-window (get-buffer-create "*my-notes*"))
(set-window-parameter my-child-window 'mode-line-format 'none)
(set-window-parameter
my-child-window 'header-line-format '(" " (:eval (buffer-name))))
;; (set-window-parameter
;; my-child-window 'mode-line-format '(" " (:eval (buffer-name))))
(set-face-background 'internal-border "blue" my-child-frame))
The last form of the last definition does set the background for
my-child-frame's internal border, leaving the backgrounds of the
internal borders of all other frames alone.
martin
next prev parent reply other threads:[~2019-03-10 8:45 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-03-08 4:30 face-remapping-alist can not override internal-border face? tumashu
2019-03-08 8:26 ` Eli Zaretskii
2019-03-08 16:19 ` tumashu
2019-03-08 18:52 ` martin rudalics
2019-03-09 14:28 ` tumashu
2019-03-09 14:55 ` Eli Zaretskii
2019-03-10 0:35 ` tumashu
2019-03-10 3:36 ` Eli Zaretskii
2019-03-10 8:47 ` martin rudalics
2019-03-10 10:22 ` tumashu
2019-03-10 10:28 ` tumashu
2019-03-10 13:00 ` Eli Zaretskii
2019-03-10 13:16 ` tumashu
2019-03-10 13:44 ` Eli Zaretskii
2019-03-11 13:32 ` tumashu
2019-03-11 15:11 ` Eli Zaretskii
2019-03-10 12:45 ` Eli Zaretskii
2019-03-10 12:39 ` Eli Zaretskii
2019-03-10 13:04 ` tumashu
2019-03-10 13:41 ` Eli Zaretskii
2019-03-10 8:45 ` martin rudalics [this message]
2019-03-09 17:16 ` Eli Zaretskii
2019-03-09 17:51 ` Eli Zaretskii
2019-03-10 10:14 ` tumashu
2019-03-10 12:47 ` Eli Zaretskii
2019-03-10 13:35 ` martin rudalics
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5C84CEB8.6070501@gmx.at \
--to=rudalics@gmx.at \
--cc=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=tumashu@163.com \
/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 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.