From: Eli Zaretskii <eliz@gnu.org>
To: "Gerd Möllmann" <gerd.moellmann@gmail.com>
Cc: 75020@debbugs.gnu.org
Subject: bug#75020: [PATCH] Fix make-separator-line for ttys not supporting underline
Date: Sun, 22 Dec 2024 10:22:02 +0200 [thread overview]
Message-ID: <8634ig6sb9.fsf@gnu.org> (raw)
In-Reply-To: <m2wmfsi2nh.fsf@gmail.com> (message from Gerd Möllmann on Sun, 22 Dec 2024 08:43:14 +0100)
> From: Gerd Möllmann <gerd.moellmann@gmail.com>
> Date: Sun, 22 Dec 2024 08:43:14 +0100
>
> To reproduce, emacs -nw -Q on a terminal not supporting underlining (in
> my case Terminal.app on macOS).
>
> - M-x display-line-number-mode RET
> - Eval (insert (amke-separator-line))
>
> => the separator line is too long
>
> Attached patch fixes that.
Thanks. But I'm not sure this is for make-separator-line to decide.
For example, after applying the patch, using this recipe:
M-: (insert (make-separator-line)) RET
M-x display-line-number-mode RET
we will again get a too-long separator line. And with this recipe:
M-x display-line-number-mode RET
M-: (insert (make-separator-line)) RET
M-x display-line-number-mode RET
we will get a too-short separator line.
So arguably, in these special cases, the caller should pass the
required length as the optional argument, because only the caller
knows the context in which the function is called and the purpose for
which the separator will be used. Which would mean the default of
using window-width is correct.
Does this make sense?
next prev parent reply other threads:[~2024-12-22 8:22 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-22 7:43 bug#75020: [PATCH] Fix make-separator-line for ttys not supporting underline Gerd Möllmann
2024-12-22 8:22 ` Eli Zaretskii [this message]
2024-12-22 8:49 ` Gerd Möllmann
2024-12-22 12:20 ` Eli Zaretskii
2024-12-22 13:19 ` Gerd Möllmann
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=8634ig6sb9.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=75020@debbugs.gnu.org \
--cc=gerd.moellmann@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 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).