From: Robert Pluim <rpluim@gmail.com>
To: "Håkon Flatval" <hkon20@hotmail.com>
Cc: "emacs-devel@gnu.org" <emacs-devel@gnu.org>
Subject: Re: Sv: Sv: Support for background transparency
Date: Mon, 24 Jan 2022 10:14:52 +0100 [thread overview]
Message-ID: <87lez5jy0j.fsf@gmail.com> (raw)
In-Reply-To: <PRAP251MB0688B246513A3676F1A8E745CF5D9@PRAP251MB0688.EURP251.PROD.OUTLOOK.COM> ("Håkon Flatval"'s message of "Sun, 23 Jan 2022 22:43:04 +0100")
>>>>> On Sun, 23 Jan 2022 22:43:04 +0100, Håkon Flatval <hkon20@hotmail.com> said:
>> - Something answering the question: "what's the difference between
>> this and the existing 'alpha frame parameter",
Håkon> I added paragraph after that for alpha with a brief description.
Håkon> I have included it in the attached patch. For convenience, I'm
Håkon> reciting the relevant part here:
Håkon> ====
Håkon> diff --git a/doc/lispref/frames.texi b/doc/lispref/frames.texi
Håkon> index 2eeb8b7ed7..05d0b1a72a 100644
Håkon> --- a/doc/lispref/frames.texi
Håkon> +++ b/doc/lispref/frames.texi
Håkon> @@ -2433,6 +2433,16 @@ Font and Color Parameters
Håkon> Some window systems do not support the @code{alpha} parameter for child
Håkon> frames (@pxref{Child Frames}).
Håkon> +
Håkon> +@vindex alpha-background@r{, a frame parameter}
Håkon> +@item alpha-background
Håkon> +@cindex opacity, frame
Håkon> +@cindex transparency, frame
Håkon> +Sets the background transparency of the frame. Unlike the @code{alpha}
Håkon> +frame parameter, this only controls the transparency of the background
Håkon> +while keeping foreground elements such as text fully opaque.
Håkon> +It should be an integer between 0 and 100, where 0 means
Håkon> +completely transparent and 100 means completely opaque (default).
Håkon> @end table
Håkon> The following frame parameters are semi-obsolete in that they are
Håkon> ====
Håkon> Please let me know if this is what you had in mind or if I should revise
Håkon> it.
That looks good, although the Emacs convention is to put two spaces
after '.'
>> - a commit message containing a description of the changes in
>> ChangeLog format
Håkon> I have attached a file with a changelog entry. I'm also giving it here
Håkon> for convenience:
Håkon> ====
Håkon> 2022-01-23 Håkon Flatval <hkon20@hotmail.com>
Håkon> Add support for background transparency
Håkon> * src/haikufns.c:
Håkon> * src/nsfns.m:
Håkon> * src/pgtkfns.c:
Håkon> * src/w32fns.c:
Håkon> * src/xfns.c: Add alpha-background frame parameter defaults. Prefer to use 32-bit depth visual in X.
Håkon> * src/frame.h:
Håkon> * src/frame.c: Add alpha-background frame parameter and setter function.
Håkon> * src/gtkutil.c: Setup GTK to allow transparency.
Håkon> * src/xterm.c: Draw background transparent using alpha-background frame parameter.
Håkon> * doc/lispref/frames.texi: Add docs for alpha-background frame parameter
Håkon> ====
Håkon> Let me know if it needs changes.
Each filename should also have the name of the affected function in
parens after it (before the ':'). C-x 4 a when in a diff will fill in
this kind of stuff for you automatically (or
'magit-generate-changelog' if you use magit to commit).
Håkon> I'm a little confused as to where I should put this. Should I add it to
Håkon> one of the Changelog files?
It goes in the commit message when you commit locally using git. See
CONTRIBUTE in the emacs repository (search for "** Commit messages")
Committing locally has the additional advantage that you can later do
"git format-patch" to produce a patch file, which is easy for the
maintainers to apply (and preserves your commit message and authorship
info).
Robert
--
next prev parent reply other threads:[~2022-01-24 9:14 UTC|newest]
Thread overview: 47+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-04 19:45 Support for background transparency Håkon Flatval
2021-11-04 20:06 ` Eli Zaretskii
2021-11-04 20:17 ` Lars Ingebrigtsen
2021-11-27 23:01 ` Håkon Flatval
2021-11-28 0:35 ` Sv: " arthur miller
2021-11-28 13:32 ` Lars Ingebrigtsen
2021-11-28 16:04 ` Arthur Miller
2021-11-28 20:33 ` Håkon Flatval
2021-11-29 2:56 ` Arthur Miller
2021-11-28 7:41 ` Eli Zaretskii
2021-11-28 7:47 ` Po Lu
2021-11-28 8:27 ` Eli Zaretskii
2021-12-01 18:54 ` Sv: " Håkon Flatval
2021-12-09 17:13 ` Håkon Flatval
2021-12-10 0:40 ` Lars Ingebrigtsen
2022-01-19 17:26 ` Sv: " Håkon Flatval
2022-01-20 0:52 ` Po Lu
2022-01-20 19:52 ` Sv: " Håkon Flatval
2022-01-21 0:59 ` Po Lu
2022-01-23 13:48 ` Håkon Flatval
2022-01-24 0:11 ` Po Lu
2022-01-25 17:53 ` Håkon Flatval
2022-01-26 1:00 ` Po Lu
2022-01-24 10:22 ` Po Lu
2022-01-25 19:47 ` Håkon Flatval
2022-01-25 19:37 ` Robert Pluim
2022-01-26 18:16 ` Håkon Flatval
2022-01-26 1:05 ` Po Lu
2022-01-26 11:11 ` Robert Pluim
2022-01-26 18:34 ` Håkon Flatval
2022-01-27 1:00 ` Po Lu
2022-01-29 0:01 ` Håkon Flatval
2022-01-29 1:08 ` Po Lu
2022-01-20 9:12 ` Robert Pluim
2022-01-23 21:43 ` Håkon Flatval
2022-01-24 9:14 ` Robert Pluim [this message]
2022-01-25 20:00 ` Håkon Flatval
2022-01-25 19:31 ` Robert Pluim
2022-01-29 10:26 ` Po Lu
2022-01-29 15:17 ` Håkon Flatval
2022-01-30 0:53 ` Po Lu
2021-11-28 13:41 ` Lars Ingebrigtsen
2021-11-28 15:05 ` Sv: " Håkon Flatval
2021-11-28 16:07 ` Gregor Zattler
2021-11-28 16:32 ` Lars Ingebrigtsen
2021-11-28 18:10 ` Jean Louis
2021-11-28 18:44 ` Sv: " Håkon Flatval
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=87lez5jy0j.fsf@gmail.com \
--to=rpluim@gmail.com \
--cc=emacs-devel@gnu.org \
--cc=hkon20@hotmail.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 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).