* bug#4318: 23.1; trouble indenting looooong lines with visual-line-mode
@ 2009-09-02 14:13 Allan Gottlieb
2011-09-17 7:23 ` Lars Magne Ingebrigtsen
2015-12-15 10:51 ` bug#4318: GMNT p8
0 siblings, 2 replies; 6+ messages in thread
From: Allan Gottlieb @ 2009-09-02 14:13 UTC (permalink / raw)
To: bug-gnu-emacs
Please write in English if possible, because the Emacs maintainers
usually do not have translators to read other languages for them.
Your bug report will be posted to the bug-gnu-emacs@gnu.org mailing list,
and to the gnu.emacs.bug news group.
Please describe exactly what actions triggered the bug
and the precise symptoms of the bug:
Start with emacs -Q and a buffer in fundamental mode
Consider a line wider than the frame, for example
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
which exceeds an 80 column frame.
Now assume you have a short line say
yyyy
followed by the above long line, i.e.
yyyy
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
So far so good. Now indent the long line with say one space.
If visual-line-mode is OFF, I see what I expect, the long line is
preceded by one space.
But with visual-line-mode ON, a blank line appears on the screen between
the short and long lines, i.e. the long line (with only one word) was
wrapped.
This behavior seems wrong.
I realize the blank line is not in the file, but believe the on-screen
image is misleading or at least annoying.
Thanks for emacs.
allan <gottlieb@nyu.edu>
If Emacs crashed, and you have the Emacs process in the gdb debugger,
please include the output from the following gdb commands:
`bt full' and `xbacktrace'.
If you would like to further debug the crash, please read the file
/usr/share/emacs/23.1/etc/DEBUG for instructions.
In GNU Emacs 23.1.1 (i686-pc-linux-gnu, GTK+ Version 2.14.7)
of 2009-08-17 on ajglap
Windowing system distributor `The X.Org Foundation', version 11.0.10503000
configured using `configure '--prefix=/usr' '--build=i686-pc-linux-gnu' '--host=i686-pc-linux-gnu' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--datadir=/usr/share' '--sysconfdir=/etc' '--localstatedir=/var/lib' '--program-suffix=-emacs-23' '--infodir=/usr/share/info/emacs-23' '--with-sound' '--with-x' '--with-toolkit-scroll-bars' '--with-gif' '--with-jpeg' '--with-png' '--without-rsvg' '--with-tiff' '--with-xpm' '--with-xft' '--without-libotf' '--without-m17n-flt' '--with-x-toolkit=gtk' '--without-hesiod' '--without-kerberos' '--without-kerberos5' '--with-gpm' '--with-dbus' 'build_alias=i686-pc-linux-gnu' 'host_alias=i686-pc-linux-gnu' 'CFLAGS=-O2 -march=prescott -pipe' 'LDFLAGS=-Wl,-O1''
Important settings:
value of $LC_ALL: nil
value of $LC_COLLATE: nil
value of $LC_CTYPE: nil
value of $LC_MESSAGES: nil
value of $LC_MONETARY: nil
value of $LC_NUMERIC: nil
value of $LC_TIME: nil
value of $LANG: nil
value of $XMODIFIERS: nil
locale-coding-system: nil
default-enable-multibyte-characters: t
Major mode: Article
Minor modes in effect:
iswitchb-mode: t
delete-selection-mode: t
tooltip-mode: t
mouse-wheel-mode: t
file-name-shadow-mode: t
global-font-lock-mode: t
font-lock-mode: t
blink-cursor-mode: t
global-auto-composition-mode: t
auto-composition-mode: t
auto-encryption-mode: t
auto-compression-mode: t
line-number-mode: t
transient-mark-mode: t
Recent input:
M-x a j g SPC i n i t <return> M-x g n u s <return>
<return> <down> <down> <down> SPC E SPC <help-echo>
<select-window> <help-echo> <select-window> <help-echo>
<select-window> <select-window> q <down> <return> <C-end>
C-r - > <return> <return> <help-echo> <help-echo> <select-window>
<help-echo> <select-window> <select-window> <select-window>
<help-echo> <help-echo> <select-window> ! d ! <select-window>
<select-window> C-x 5 2 <switch-frame> <switch-frame>
<select-window> <help-echo> <help-echo> M-x r e p o
r t - e m <tab> <return>
Recent messages:
Fetching headers for nnml:MAIL...done
Finding all score files...done
Generating summary...done
Retrieving newsgroup: nnml:emacs...
Fetching headers for nnml:emacs...done
Scoring...done
Generating summary...done
Mark set
Mark saved where search started
Auto-saving...done
^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#4318: 23.1; trouble indenting looooong lines with visual-line-mode
2009-09-02 14:13 bug#4318: 23.1; trouble indenting looooong lines with visual-line-mode Allan Gottlieb
@ 2011-09-17 7:23 ` Lars Magne Ingebrigtsen
2011-09-17 9:42 ` Eli Zaretskii
2015-12-15 10:51 ` bug#4318: GMNT p8
1 sibling, 1 reply; 6+ messages in thread
From: Lars Magne Ingebrigtsen @ 2011-09-17 7:23 UTC (permalink / raw)
To: Allan Gottlieb; +Cc: 4318
Allan Gottlieb <gottlieb@nyu.edu> writes:
> yyyy
> xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
>
> So far so good. Now indent the long line with say one space.
> If visual-line-mode is OFF, I see what I expect, the long line is
> preceded by one space.
>
> But with visual-line-mode ON, a blank line appears on the screen between
> the short and long lines, i.e. the long line (with only one word) was
> wrapped.
> This behavior seems wrong.
I can confirm this behaviour in Emacs 24.
The problem seems to be that `visual-line-mode' breaks long lines after
any white space -- even if the white space begins the line. That
doesn't seem optimal, I think.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog http://lars.ingebrigtsen.no/
^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#4318: 23.1; trouble indenting looooong lines with visual-line-mode
2011-09-17 7:23 ` Lars Magne Ingebrigtsen
@ 2011-09-17 9:42 ` Eli Zaretskii
2011-09-18 7:56 ` Lars Magne Ingebrigtsen
2011-09-18 15:26 ` Chong Yidong
0 siblings, 2 replies; 6+ messages in thread
From: Eli Zaretskii @ 2011-09-17 9:42 UTC (permalink / raw)
To: Lars Magne Ingebrigtsen; +Cc: 4318, gottlieb
> From: Lars Magne Ingebrigtsen <larsi@gnus.org>
> Date: Sat, 17 Sep 2011 09:23:14 +0200
> Cc: 4318@debbugs.gnu.org
>
> Allan Gottlieb <gottlieb@nyu.edu> writes:
>
> > yyyy
> > xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> >
> > So far so good. Now indent the long line with say one space.
> > If visual-line-mode is OFF, I see what I expect, the long line is
> > preceded by one space.
> >
> > But with visual-line-mode ON, a blank line appears on the screen between
> > the short and long lines, i.e. the long line (with only one word) was
> > wrapped.
> > This behavior seems wrong.
>
> I can confirm this behaviour in Emacs 24.
>
> The problem seems to be that `visual-line-mode' breaks long lines after
> any white space -- even if the white space begins the line. That
> doesn't seem optimal, I think.
The extra line stands for the space that is not shown. If you place
the cursor on that "empty line" and type "C-x =", you will see that
point is before the space character, not before newline.
So I think visual-line-mode (a.k.a. "word wrap") behaves correctly.
Doing what the OP asks for would also have undesirable side effects,
albeit different ones. E.g., adding some non-white character at the
beginning of that line will suddenly and mysteriously move the
"xxxx..." part one line down.
And that's even before I consider the potential complications of the
code, which already tracks the word wrap mode with no less than 12
state variables...
My recommendation is to close this bug as "won't fix".
^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#4318: 23.1; trouble indenting looooong lines with visual-line-mode
2011-09-17 9:42 ` Eli Zaretskii
@ 2011-09-18 7:56 ` Lars Magne Ingebrigtsen
2011-09-18 15:26 ` Chong Yidong
1 sibling, 0 replies; 6+ messages in thread
From: Lars Magne Ingebrigtsen @ 2011-09-18 7:56 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: 4318, gottlieb
Eli Zaretskii <eliz@gnu.org> writes:
> The extra line stands for the space that is not shown. If you place
> the cursor on that "empty line" and type "C-x =", you will see that
> point is before the space character, not before newline.
>
> So I think visual-line-mode (a.k.a. "word wrap") behaves correctly.
> Doing what the OP asks for would also have undesirable side effects,
> albeit different ones. E.g., adding some non-white character at the
> beginning of that line will suddenly and mysteriously move the
> "xxxx..." part one line down.
I think that's probably desired.
The point of `visual-line-mode' is to (visually) do word wrap between
words to keep lines short(ish). Folding before there even has been a
word looks odd to me.
On the other hand, it does make the lines visually shorter, so it's
debatable...
> And that's even before I consider the potential complications of the
> code, which already tracks the word wrap mode with no less than 12
> state variables...
:-)
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog http://lars.ingebrigtsen.no/
^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#4318: 23.1; trouble indenting looooong lines with visual-line-mode
2011-09-17 9:42 ` Eli Zaretskii
2011-09-18 7:56 ` Lars Magne Ingebrigtsen
@ 2011-09-18 15:26 ` Chong Yidong
1 sibling, 0 replies; 6+ messages in thread
From: Chong Yidong @ 2011-09-18 15:26 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: Lars Magne Ingebrigtsen, gottlieb, 4318
Eli Zaretskii <eliz@gnu.org> writes:
>> The problem seems to be that `visual-line-mode' breaks long lines after
>> any white space -- even if the white space begins the line. That
>> doesn't seem optimal, I think.
>
> The extra line stands for the space that is not shown. If you place
> the cursor on that "empty line" and type "C-x =", you will see that
> point is before the space character, not before newline.
>
> So I think visual-line-mode (a.k.a. "word wrap") behaves correctly.
It's different from what other word-wrapping editors do, so I think this
should be considered a bug.
^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#4318:
2009-09-02 14:13 bug#4318: 23.1; trouble indenting looooong lines with visual-line-mode Allan Gottlieb
2011-09-17 7:23 ` Lars Magne Ingebrigtsen
@ 2015-12-15 10:51 ` GMNT p8
1 sibling, 0 replies; 6+ messages in thread
From: GMNT p8 @ 2015-12-15 10:51 UTC (permalink / raw)
To: 4318
[-- Attachment #1: Type: text/plain, Size: 183 bytes --]
Hello,
we just started to work on this issue, if you have any tips or advices that
aren't in the report yet about how to solve it, they are welcome.
Thanks in advance.
Cheers
-GMNT
[-- Attachment #2: Type: text/html, Size: 276 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2015-12-15 10:51 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-02 14:13 bug#4318: 23.1; trouble indenting looooong lines with visual-line-mode Allan Gottlieb
2011-09-17 7:23 ` Lars Magne Ingebrigtsen
2011-09-17 9:42 ` Eli Zaretskii
2011-09-18 7:56 ` Lars Magne Ingebrigtsen
2011-09-18 15:26 ` Chong Yidong
2015-12-15 10:51 ` bug#4318: GMNT p8
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.