GNU bug report logs -
#71850
[PATCH] macOS (Cocoa) alpha-background
Previous Next
To reply to this bug, email your comments to 71850 AT debbugs.gnu.org.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
jonathan.rubens <at> gmail.com, luangruo <at> yahoo.com, bug-gnu-emacs <at> gnu.org
:
bug#71850
; Package
emacs
.
(Sun, 30 Jun 2024 05:10:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Stefan Kangas <stefankangas <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
jonathan.rubens <at> gmail.com, luangruo <at> yahoo.com, bug-gnu-emacs <at> gnu.org
.
(Sun, 30 Jun 2024 05:10:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Severity: wishlist
-------------------- Start of forwarded message --------------------
From: Jon Rubens <jonathan.rubens <at> gmail.com>
Date: Thu, 27 Jun 2024 17:38:29 -0700
Subject: Re: macOS (Cocoa) alpha-background
To: Stefan Kangas <stefankangas <at> gmail.com>
Cc: Po Lu <luangruo <at> yahoo.com>, emacs-devel <at> gnu.org
[Message part 2 (text/plain, attachment)]
[0001-Add-alpha-background-feature-to-MacOS-Emacs.patch (text/x-patch, attachment)]
[Message part 4 (text/plain, attachment)]
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#71850
; Package
emacs
.
(Thu, 20 Feb 2025 00:25:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 71850 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
-------------------- Start of forwarded message --------------------
From: Jon Rubens <jonathan.rubens <at> gmail.com>
Date: Wed, 19 Feb 2025 09:53:42 -0800
Subject: Re: macOS (Cocoa) alpha-background
To: Alan Third <alan <at> idiocy.org>, Alexander Adolf
<alexander.adolf <at> condition-alpha.com>,
Eli Zaretskii <eliz <at> gnu.org>, Rudolf Adamkovič <rudolf <at> adamkovic.org>,
stefankangas <at> gmail.com, jonathanrubens <at> gmail.com, luangruo <at> yahoo.com,
emacs-devel <at> gnu.org
[Message part 2 (text/plain, attachment)]
[0001-ns_alpha_background.patch (text/x-patch, attachment)]
[Message part 4 (text/plain, attachment)]
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#71850
; Package
emacs
.
(Thu, 20 Feb 2025 00:30:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 71850 <at> debbugs.gnu.org (full text, mbox):
Stefan Kangas <stefankangas <at> gmail.com> writes:
> The patch seeks to enable the alpha_background frame parameter for
> MacOS (and NS). Presently, that frame parameter does nothing on MacOS.
> Similar to the alpha frame parameter, this should enable transparency
> but not change the transparency of any text.
Could you please send some instructions for how to test the patch?
I'm looking for an easy-to-use recipe that would demonstrate the effect
before and after applying this patch.
Also, is there anything else you could add regarding the use case here?
Thanks in advance.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#71850
; Package
emacs
.
(Thu, 20 Feb 2025 01:59:02 GMT)
Full text and
rfc822 format available.
Message #14 received at 71850 <at> debbugs.gnu.org (full text, mbox):
Jon Rubens <jonathan.rubens <at> gmail.com> writes:
>> > The patch seeks to enable the alpha_background frame parameter for
>> > MacOS (and NS). Presently, that frame parameter does nothing on MacOS.
>> > Similar to the alpha frame parameter, this should enable transparency
>> > but not change the transparency of any text.
>
>> Could you please send some instructions for how to test the patch?
>> I'm looking for an easy-to-use recipe that would demonstrate the effect
>> before and after applying this patch.
>
> To test, run emacs with eval:
> emacs -Q --eval="(modify-all-frames-parameters '((alpha-background . 0.5)))"
> compare with changing "alpha" instead:
> emacs -Q --eval="(modify-all-frames-parameters '((alpha . 0.5)))"
> Notice that the text does not become transparent when alpha-background is used.
> Test with themes. Larger font size makes the effect more obvious.
>
>> Also, is there anything else you could add regarding the use case here?
> Emacs already has the alpha-background frame parameter. This patch
> enables the feature for MacOS to match X.
Thanks. Your patch doesn't seem to apply cleanly against latest master:
patching file 'src/macfont.m'
patching file 'src/nsfns.m'
patching file 'src/nsfont.m'
1 out of 1 hunks failed--saving rejects to 'src/nsfont.m.rej'
patching file 'src/nsterm.m'
2 out of 14 hunks failed--saving rejects to 'src/nsterm.m.rej'
Could you please rebase on top of current master and resend the patch as
an attachment, created by:
git format-patch -1
Please also add a ChangeLog entry for this change as per CONTRIBUTE, if
possible, and I think we need an entry in etc/NEWS.
Thanks in advance.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#71850
; Package
emacs
.
(Thu, 20 Feb 2025 05:07:03 GMT)
Full text and
rfc822 format available.
Message #17 received at 71850 <at> debbugs.gnu.org (full text, mbox):
> > The patch seeks to enable the alpha_background frame parameter for
> > MacOS (and NS). Presently, that frame parameter does nothing on MacOS.
> > Similar to the alpha frame parameter, this should enable transparency
> > but not change the transparency of any text.
> Could you please send some instructions for how to test the patch?
> I'm looking for an easy-to-use recipe that would demonstrate the effect
> before and after applying this patch.
To test, run emacs with eval:
emacs -Q --eval="(modify-all-frames-parameters '((alpha-background . 0.5)))"
compare with changing "alpha" instead:
emacs -Q --eval="(modify-all-frames-parameters '((alpha . 0.5)))"
Notice that the text does not become transparent when alpha-background is used.
Test with themes. Larger font size makes the effect more obvious.
> Also, is there anything else you could add regarding the use case here?
Emacs already has the alpha-background frame parameter. This patch
enables the feature for MacOS to match X.
--
Jon
Added tag(s) moreinfo.
Request was from
Stefan Kangas <stefankangas <at> gmail.com>
to
control <at> debbugs.gnu.org
.
(Sun, 23 Feb 2025 00:53:02 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#71850
; Package
emacs
.
(Tue, 27 May 2025 16:21:01 GMT)
Full text and
rfc822 format available.
Message #22 received at 71850 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
> Could you please rebase on top of current master
> Please also add a ChangeLog entry for this change as per CONTRIBUTE, if
> possible, and I think we need an entry in etc/NEWS.
I updated the patch with a etc/NEWS entry and verified it applies
cleanly on the master branch.
[0001-Add-alpha_background-feature-for-NS-MacOS.patch (application/octet-stream, attachment)]
This bug report was last modified 18 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.