* bug#72090: [Improvement] Option for disabling truncation symbols
@ 2024-07-13 8:51 the_wurfkreuz via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-07-13 9:22 ` Eli Zaretskii
2024-07-13 9:23 ` Stephen Berman via Bug reports for GNU Emacs, the Swiss army knife of text editors
0 siblings, 2 replies; 4+ messages in thread
From: the_wurfkreuz via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2024-07-13 8:51 UTC (permalink / raw)
To: 72090
[-- Attachment #1.1: Type: text/plain, Size: 479 bytes --]
I haven't found a way to disable truncation characters when I'm not using
line wrapping.
There is a way to make them appear as empty spaces:
(set-display-table-slot standard-display-table 'truncation ?\ )
However, this isn't a real solution because it still takes up buffer
space for no benefit.
In some cases, truncation symbols on the left side of the buffer seem
completely pointless. There's no additional context to be derived from them,
and they just clutter the buffer.
[-- Attachment #1.2: Type: text/html, Size: 965 bytes --]
[-- Attachment #2: symbols.png --]
[-- Type: image/png, Size: 36921 bytes --]
[-- Attachment #3: symbols2.png --]
[-- Type: image/png, Size: 67145 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#72090: [Improvement] Option for disabling truncation symbols
2024-07-13 8:51 bug#72090: [Improvement] Option for disabling truncation symbols the_wurfkreuz via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2024-07-13 9:22 ` Eli Zaretskii
[not found] ` <wrCsvK_30SavmeDBRkk02E0_jep_p9DWFfvhaqtVTUIHgpmNynMVk4hZrrkoDLcGvSBqfJINFZvW38LtUKFoqHOAy2V4nzyqU0QAGnZW_us=@proton.me>
2024-07-13 9:23 ` Stephen Berman via Bug reports for GNU Emacs, the Swiss army knife of text editors
1 sibling, 1 reply; 4+ messages in thread
From: Eli Zaretskii @ 2024-07-13 9:22 UTC (permalink / raw)
To: the_wurfkreuz; +Cc: 72090
tags 72090 notabug
thanks
> Date: Sat, 13 Jul 2024 08:51:58 +0000
> From: the_wurfkreuz via "Bug reports for GNU Emacs,
> the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
>
> I haven't found a way to disable truncation characters when I'm not using
> line wrapping.
What do you mean by "disable"? If you mean force Emacs not to show
any glyph there, then there's no way of disabling that completely.
> There is a way to make them appear as empty spaces:
>
> (set-display-table-slot standard-display-table 'truncation ?\ )
>
> However, this isn't a real solution because it still takes up buffer
> space for no benefit.
Yes, and that's by design.
> In some cases, truncation symbols on the left side of the buffer seem
> completely pointless. There's no additional context to be derived from them,
> and they just clutter the buffer.
I don't agree that they are clutter. They serve as a clear indication
that the line was truncated. Since Emacs supports a feature whereby
only the current line is hscrolled, this indication is important.
I'm not interested in adding a feature that would disable these glyphs
on TTY frames. (On GUI frames, Emacs does not show these glyphs by
default, and the continuation/truncation indications are shown on the
fringes.)
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#72090: [Improvement] Option for disabling truncation symbols
2024-07-13 8:51 bug#72090: [Improvement] Option for disabling truncation symbols the_wurfkreuz via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-07-13 9:22 ` Eli Zaretskii
@ 2024-07-13 9:23 ` Stephen Berman via Bug reports for GNU Emacs, the Swiss army knife of text editors
1 sibling, 0 replies; 4+ messages in thread
From: Stephen Berman via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2024-07-13 9:23 UTC (permalink / raw)
To: 72090; +Cc: the_wurfkreuz
On Sat, 13 Jul 2024 08:51:58 +0000 the_wurfkreuz via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org> wrote:
> I haven't found a way to disable truncation characters when I'm not using
> line wrapping.
> There is a way to make them appear as empty spaces:
>
> (set-display-table-slot standard-display-table 'truncation ?\ )
>
> However, this isn't a real solution because it still takes up buffer
> space for no benefit.
>
> In some cases, truncation symbols on the left side of the buffer seem
> completely pointless. There's no additional context to be derived from them,
> and they just clutter the buffer.
I don't know if truncation characters can be disabled, but maybe this is
good enough as a workaround:
(set-display-table-slot standard-display-table 'truncation ?\N{ZERO WIDTH SPACE})
Steve Berman
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#72090: [Improvement] Option for disabling truncation symbols
[not found] ` <wrCsvK_30SavmeDBRkk02E0_jep_p9DWFfvhaqtVTUIHgpmNynMVk4hZrrkoDLcGvSBqfJINFZvW38LtUKFoqHOAy2V4nzyqU0QAGnZW_us=@proton.me>
@ 2024-07-13 12:17 ` Eli Zaretskii
0 siblings, 0 replies; 4+ messages in thread
From: Eli Zaretskii @ 2024-07-13 12:17 UTC (permalink / raw)
To: the_wurfkreuz; +Cc: 72090
[Please use Reply All to keep the bug tracker on the CC list.]
> Date: Sat, 13 Jul 2024 11:16:15 +0000
> From: the_wurfkreuz <the_wurfkreuz@proton.me>
>
> > What do you mean by "disable"?
>
> Initially, i had the need to disable wrapping. I know only one way of doing that, and it's by enabling truncation (setq-default truncate-lines t).
> But i still have the fringe area and its symbols, that show truncation. If i want to remove of the symbols and free up space for buffer characters, the logical step would be to disable the fringe area '(set-fringe-mode 0)'. After doing that, the fringe area disappears only visually, i still have the truncation symbols, but now they have a form of a dollar sign. So, essentially, the fringe area is still there and i have no option to completely remove it so that all possible buffer space is taken only by its characters.
>
> It looks reasonable for me, that users have the option to completely free up the buffer space from any indications and indication areas if they want it.
I can only suggest to use visual-line-mode, maybe it will come closer
to what you want.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2024-07-13 12:17 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-13 8:51 bug#72090: [Improvement] Option for disabling truncation symbols the_wurfkreuz via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-07-13 9:22 ` Eli Zaretskii
[not found] ` <wrCsvK_30SavmeDBRkk02E0_jep_p9DWFfvhaqtVTUIHgpmNynMVk4hZrrkoDLcGvSBqfJINFZvW38LtUKFoqHOAy2V4nzyqU0QAGnZW_us=@proton.me>
2024-07-13 12:17 ` Eli Zaretskii
2024-07-13 9:23 ` Stephen Berman 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).