unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#66716: Reconcile display-fill-column-indicator-character behavior and customization description
@ 2023-10-23 21:23 Joseph Turner via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2023-10-24 12:31 ` Eli Zaretskii
  0 siblings, 1 reply; 5+ messages in thread
From: Joseph Turner via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2023-10-23 21:23 UTC (permalink / raw)
  To: 66716

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

Tags: patch

Tags: patch

Tags: patch

AFAICT, setting display-fill-column-indicator-character to nil means
that no fill indicator is displayed. This patch changes the
customization description to match the current behavior.

However, I like the behavior that's currently described in the
customization option:

"If possible, use U+2502 to indicate fill column, otherwise use |"

What do folks think about changing the behavior of
display-fill-column-indicator-character to match this description?

Thank you!!

Joseph


[-- Attachment #2: 0001-Fix-customization-description-display-fill-column-in.patch --]
[-- Type: text/patch, Size: 1089 bytes --]

From 846252d0c3912623ba2d8ff9832e00dfa00fc091 Mon Sep 17 00:00:00 2001
From: Joseph Turner <joseph@breatheoutbreathe.in>
Date: Mon, 23 Oct 2023 14:20:09 -0700
Subject: [PATCH] Fix customization description:
 display-fill-column-indicator-character

* lisp/cus-start.el (standard): Change the description of the nil
value to its current behavior: to not display a fill indicator.
---
 lisp/cus-start.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/cus-start.el b/lisp/cus-start.el
index 054683d7cf6..2fc5d3d727c 100644
--- a/lisp/cus-start.el
+++ b/lisp/cus-start.el
@@ -806,7 +806,7 @@ since it could result in memory overflow and make Emacs crash."
                       :value ?│)
                (character :tag "Use | to indicate fill column"
                       :value ?|)
-               (const :tag "If possible, use U+2502 to indicate fill column, otherwise use |"
+               (const :tag "Do not indicate fill column"
                       :value nil)
                character)
               "27.1"
-- 
2.41.0


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* bug#66716: Reconcile display-fill-column-indicator-character behavior and customization description
  2023-10-23 21:23 bug#66716: Reconcile display-fill-column-indicator-character behavior and customization description Joseph Turner via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2023-10-24 12:31 ` Eli Zaretskii
  2023-10-24 19:46   ` Joseph Turner via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 1 reply; 5+ messages in thread
From: Eli Zaretskii @ 2023-10-24 12:31 UTC (permalink / raw)
  To: Joseph Turner; +Cc: 66716

> Date: Mon, 23 Oct 2023 14:23:06 -0700
> From:  Joseph Turner via "Bug reports for GNU Emacs,
>  the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
> 
> AFAICT, setting display-fill-column-indicator-character to nil means
> that no fill indicator is displayed.

That's not true, AFAICT.  The default value is nil, but when you turn
on the mode, it modifies the value of the character to be either
U+2502 or '|'.

> This patch changes the customization description to match the
> current behavior.

I don't think the patch is correct.

> However, I like the behavior that's currently described in the
> customization option:
> 
> "If possible, use U+2502 to indicate fill column, otherwise use |"
> 
> What do folks think about changing the behavior of
> display-fill-column-indicator-character to match this description?

I don't understand the proposal.  We don't use U+2502 by default
because not all terminals support it.





^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#66716: Reconcile display-fill-column-indicator-character behavior and customization description
  2023-10-24 12:31 ` Eli Zaretskii
@ 2023-10-24 19:46   ` Joseph Turner via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2023-10-25  2:29     ` Eli Zaretskii
  0 siblings, 1 reply; 5+ messages in thread
From: Joseph Turner via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2023-10-24 19:46 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 66716


Eli Zaretskii <eliz@gnu.org> writes:

>> Date: Mon, 23 Oct 2023 14:23:06 -0700
>> From:  Joseph Turner via "Bug reports for GNU Emacs,
>>  the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
>>
>> AFAICT, setting display-fill-column-indicator-character to nil means
>> that no fill indicator is displayed.
>
> That's not true, AFAICT.  The default value is nil, but when you turn
> on the mode, it modifies the value of the character to be either
> U+2502 or '|'.
>
>> This patch changes the customization description to match the
>> current behavior.
>
> I don't think the patch is correct.

Indeed, the patch is incorrect.  I misunderstood the behavior of
display-fill-column-indicator-mode when
display-fill-column-indicator-character is nil.

>> However, I like the behavior that's currently described in the
>> customization option:
>>
>> "If possible, use U+2502 to indicate fill column, otherwise use |"
>>
>> What do folks think about changing the behavior of
>> display-fill-column-indicator-character to match this description?
>
> I don't understand the proposal.  We don't use U+2502 by default
> because not all terminals support it.

When enabling display-fill-column-indicator in .dir-locals.el, is it
possible to dynamically set display-fill-column-indicator-character
according to what characters are displayable without using eval?

Currently in my project, I have:

((emacs-lisp-mode . ((display-fill-column-indicator . t)
                     ;; This won't work on some terminals
                     (display-fill-column-indicator-character . ?\u2502)
                     (fill-column . 80))))

Please let me know if you have suggestions for improvement!

Thank you!!!

Joseph





^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#66716: Reconcile display-fill-column-indicator-character behavior and customization description
  2023-10-24 19:46   ` Joseph Turner via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2023-10-25  2:29     ` Eli Zaretskii
  2023-10-25  3:11       ` Joseph Turner via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 1 reply; 5+ messages in thread
From: Eli Zaretskii @ 2023-10-25  2:29 UTC (permalink / raw)
  To: Joseph Turner; +Cc: 66716

> From: Joseph Turner <joseph@breatheoutbreathe.in>
> Cc: 66716@debbugs.gnu.org
> Date: Tue, 24 Oct 2023 12:46:11 -0700
> 
> >> What do folks think about changing the behavior of
> >> display-fill-column-indicator-character to match this description?
> >
> > I don't understand the proposal.  We don't use U+2502 by default
> > because not all terminals support it.
> 
> When enabling display-fill-column-indicator in .dir-locals.el, is it
> possible to dynamically set display-fill-column-indicator-character
> according to what characters are displayable without using eval?

I don't think so.





^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#66716: Reconcile display-fill-column-indicator-character behavior and customization description
  2023-10-25  2:29     ` Eli Zaretskii
@ 2023-10-25  3:11       ` Joseph Turner via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 0 replies; 5+ messages in thread
From: Joseph Turner via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2023-10-25  3:11 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 66716-done


Eli Zaretskii <eliz@gnu.org> writes:

>> From: Joseph Turner <joseph@breatheoutbreathe.in>
>> Cc: 66716@debbugs.gnu.org
>> Date: Tue, 24 Oct 2023 12:46:11 -0700
>>
>> >> What do folks think about changing the behavior of
>> >> display-fill-column-indicator-character to match this description?
>> >
>> > I don't understand the proposal.  We don't use U+2502 by default
>> > because not all terminals support it.
>>
>> When enabling display-fill-column-indicator in .dir-locals.el, is it
>> possible to dynamically set display-fill-column-indicator-character
>> according to what characters are displayable without using eval?
>
> I don't think so.

Thank you!!





^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-10-25  3:11 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-23 21:23 bug#66716: Reconcile display-fill-column-indicator-character behavior and customization description Joseph Turner via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-10-24 12:31 ` Eli Zaretskii
2023-10-24 19:46   ` Joseph Turner via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-10-25  2:29     ` Eli Zaretskii
2023-10-25  3:11       ` Joseph Turner via Bug reports for GNU Emacs, the Swiss army knife of text editors

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).