unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Ship Mints <shipmints@gmail.com>
To: martin rudalics <rudalics@gmx.at>
Cc: Eli Zaretskii <eliz@gnu.org>, 74750@debbugs.gnu.org
Subject: bug#74750: clone-frame and make-frame pixelwise issues
Date: Mon, 16 Dec 2024 05:40:22 -0500	[thread overview]
Message-ID: <CAN+1Hbr0kKHyO6DLhgs3iquwJm4YHtBWvBw91KQFnqtMutimsg@mail.gmail.com> (raw)
In-Reply-To: <544d13ee-54f0-4786-8c5b-b1c87570f36c@gmx.at>

[-- Attachment #1: Type: text/plain, Size: 1738 bytes --]

My expectation was that clone-frame, when frame-resize-pixelwise t, would
implicitly DTRT. I expect most people would have the same expectation. Same
as frameset-restore (now fixed with the patch).

When packages we use invoke clone-frame, we can't control their
parameterization of those invocations without advice, so
implied pixelwise seems wise. I added the explicit parameter more as
awareness than anything else, but I imagine that carefully-crafted
pixelwise child frames in packages may want explicit pixelwise clones if
the authors aren't going to let-bind frame-resize-pixelwise around
clone-frame calls. I'd prefer that we recommend that, actually.

Let's just do away with the pixelwise parameter and rely on the user
setting? That would be in keeping with the rest of the implementation, I
think.

On Mon, Dec 16, 2024 at 4:32 AM martin rudalics <rudalics@gmx.at> wrote:

>  > I'd write that as
>  >
>  >    If PIXELWISE or `frame-resize-pixelwise' is non-nil and FRAME's
> terminal
>  >    is not text-only, use the pixel size of FRAME for the cloned frame.
>  >    Otherwise, use the number of columns and lines of FRAME for the
> cloned
>  >    frame.
>
> But may be we should write
>
>                 (and pixelwise frame-resize-pixelwise))
>
> and say
>
>    If PIXELWISE and `frame-resize-pixelwise' are both non-nil and FRAME's
>    terminal is not text-only, use the pixel size of FRAME for the cloned
>    frame.  Otherwise, use the number of columns and lines of FRAME for
>    the cloned frame.
>
> Setting PIXELWISE to t in a setting where 'frame-resize-pixelwise' is
> nil means asking for trouble since the window manager might not honor
> it.  WDYT?
>
> martin
>

[-- Attachment #2: Type: text/html, Size: 2477 bytes --]

  reply	other threads:[~2024-12-16 10:40 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-12-09 15:51 bug#74750: clone-frame and make-frame pixelwise issues Ship Mints
2024-12-10 12:27 ` Eli Zaretskii
2024-12-10 15:56   ` martin rudalics via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-12-10 16:24     ` Ship Mints
2024-12-11  9:37       ` martin rudalics via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-12-11 22:41         ` Ship Mints
2024-12-12  6:05           ` Eli Zaretskii
2024-12-12  9:22           ` martin rudalics via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-12-13 10:30             ` martin rudalics via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-12-13 16:28               ` Ship Mints
2024-12-13 18:15                 ` martin rudalics via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-12-13 18:25                   ` Ship Mints
2024-12-14  8:27                     ` martin rudalics via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-12-15 20:34                       ` Ship Mints
2024-12-16  9:23                         ` martin rudalics via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-12-16  9:32                           ` martin rudalics via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-12-16 10:40                             ` Ship Mints [this message]
2024-12-16 10:48                               ` Ship Mints
2024-12-16 15:49                                 ` martin rudalics via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-12-16 15:55                                   ` Ship Mints
2024-12-16 16:01                                     ` Ship Mints
2024-12-16 16:02                                       ` Ship Mints
2024-12-16 16:39                                   ` Ship Mints
2024-12-16 17:06                                     ` martin rudalics via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-12-16 17:32                                     ` Eli Zaretskii
2024-12-16 17:51                                       ` Ship Mints
2024-12-16 16:07                               ` martin rudalics via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-12-16 16:41                                 ` Ship Mints
2024-12-16 17:06                                   ` martin rudalics via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-12-16 16:07                         ` martin rudalics 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

  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=CAN+1Hbr0kKHyO6DLhgs3iquwJm4YHtBWvBw91KQFnqtMutimsg@mail.gmail.com \
    --to=shipmints@gmail.com \
    --cc=74750@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    --cc=rudalics@gmx.at \
    /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).