all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Po Lu <luangruo@yahoo.com>
Cc: peter.mao@gmail.com, 65191@debbugs.gnu.org
Subject: bug#65191: 29.1; -ms and -cr CL options don't work
Date: Fri, 11 Aug 2023 10:24:19 +0300	[thread overview]
Message-ID: <83leeighy4.fsf@gnu.org> (raw)
In-Reply-To: <87edkaqese.fsf@yahoo.com> (message from Po Lu on Fri, 11 Aug 2023 14:22:25 +0800)

> From: Po Lu <luangruo@yahoo.com>
> Cc: Eli Zaretskii <eliz@gnu.org>,  65191@debbugs.gnu.org
> Date: Fri, 11 Aug 2023 14:22:25 +0800
> 
> I tracked this down to the Cairo xsettings stuff, and uncovered a
> fundamental problem with it in the process.  
> 
> Our settings code operates on FreeType font patterns, but the conversion
> from Cairo is a one-way process: Emacs cannot impart the new settings it
> reads to Cairo, so every time it registers a settings event, it compares
> the new settings with whatever Cairo used as its defaults from the very
> outset.  Consequentially, the dynamic-setting stuff is always run every
> time a settings change event arrives, even if the changes are congruent
> with what Emacs last saw of them.  dynamic-setting subsequently resets
> the cursor color, because face-set-after-frame-default calls
> face-spec-recalc prior to reapplying frame parameters, which sets the
> cursor face's background to black, culminating in
> face-set-after-frame-default calling:
> 
>   (set-face-attribute 'cursor frame :background "black")
> 
> This issue is also the cause of bug#64809 and another bug.  So I would
> like to revert the entirety of the Cairo dynamic-setting support, since
> it's relatively pointless for Emacs to respond to settings change events
> when it cannot save those settings.

I don't think I understand this well enough to discuss this
intelligently, so please elaborate on what happens, and include
pointers to more of the code so I and others could complement the
descriptions with what's actually in the code, and maybe suggest
alternative ways of dealing with this.

Not responding to Cairo setting changes sounds like a loss: what
features are currently based on that, and would be lost if we revert
this support?  Also, can't you think about an alternative way of
handling dynamic settings that will let us eat the cake, but also have
it?

Thanks.





  reply	other threads:[~2023-08-11  7:24 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-10  3:00 bug#65191: 29.1; -ms and -cr CL options don't work Peter Mao
2023-08-10  7:01 ` Eli Zaretskii
2023-08-10  7:04   ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-08-10  7:19     ` Eli Zaretskii
2023-08-10  7:31       ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-08-10  7:47         ` Eli Zaretskii
2023-08-10  7:21   ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
     [not found]     ` <CAEK3s1NrTSTtvQKkhOYaUPafZoSn=Gm=QaYwPO8UUmTC66bUgw@mail.gmail.com>
     [not found]       ` <CAEK3s1Mtt5jckJzptYdhK4jU5tS0k1SJHXy6DgTGY94CjoYSFQ@mail.gmail.com>
     [not found]         ` <87il9mqhj1.fsf@yahoo.com>
2023-08-11  5:43           ` Peter Mao
2023-08-11  6:06             ` Peter Mao
2023-08-11  6:23               ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-08-12  4:36                 ` Peter Mao
2023-08-12  4:44                   ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-08-11  6:22             ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-08-11  7:24               ` Eli Zaretskii [this message]
2023-08-11  7:36                 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-08-11 11:05                   ` Eli Zaretskii
2023-08-12  0:05                     ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors

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=83leeighy4.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=65191@debbugs.gnu.org \
    --cc=luangruo@yahoo.com \
    --cc=peter.mao@gmail.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.