From: Drew Adams <drew.adams@oracle.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 17511@debbugs.gnu.org
Subject: bug#17511: 24.4.50; `line-move-ignore-invisible': doc and purpose not clear
Date: Sat, 17 May 2014 07:45:44 -0700 (PDT) [thread overview]
Message-ID: <8c772b14-20d1-4e3a-9936-f81936c3d31b@default> (raw)
In-Reply-To: <<83iop4eq5h.fsf@gnu.org>>
Thanks for improving this.
> > 1. The doc string says only that `next-line' and `previous-line' ignore
> > invisible lines. What does it mean for these commands to "ignore
> > invisible lines" - what does "ignore" mean here? What's the
> > user-visible BEHAVIOR difference between a nil and a non-nil value?
> > Why/when might a user change the value to nil?
>
> I changed the doc string to this:
>
> "Non-nil means commands that move by lines ignore invisible newlines.
>
> When this option is non-nil, \\[next-line], \\[previous-line], \\[move-end-
> of-line], and \\[move-beginning-of-line] behave
> as if newlines that are invisible didn't exist, and count
> only visible newlines. Thus, moving across across 2 newlines
> one of which is invisible will be counted as a one-line move.
> Also, a non-nil value causes invisible text to be ignored when
> counting columns for the purposes of keeping point in the same
> column by \\[next-line] and \\[previous-line].
>
> Outline mode sets this."
>
> I hope this answers all of your questions in #1.
Very good; thanks. (I don't think there should be a blank line after the
first line, but maybe that is just a mail artifact.)
> > 2. The doc string speaks of invisible lines. But (elisp) `Invisible
> > Text' speaks of "invisible newlines" (not lines), which is presumably
> > something different (newline chars vs lines of any chars except newline,
> > possibly including the separating newlines). Are both true? Which?
>
> I think the doc string now clarifies this as well.
Yes, thanks. But the manual speaks only of invisible newlines, and to
me this part is not clear. And whenever we speak of newlines (especially
where we are also talking about doing something wrt lines in general),
we should say "newline characters" or "newline chars". A "newline" as
such doesn't really exist in our vocabulary (or at least it shouldn't),
and some people might read it as meaning a "new line".
> > 3 The manual speaks of "the user-level line motion commands", not just
> > `next-line' and `previous-line'. Is there a difference? What other
> > commands are involved here, besides those two?
>
> Again, I believe the doc string now clarifies that.
OK.
> > 4. This Elisp manual node is not very clear in general. Again, what
> > does it mean for these line commands to ignore invisible newlines? Or,
> > for that matter, for them to "not care whether the text is invisible"?
> > What user-visible BEHAVIOR difference is there?
>
> I clarified in that paragraph that "ignoring" invisible text means
> behaving as if it didn't exist in the buffer. This implies that an
> invisible newline does not count as a newline, so when invisible text
> is ignored, such a line is considered to be part of the next line.
> IOW, commands that count lines will not count a line whose newline is
> invisible, when this option is non-nil, so, e.g., "C-u 10 C-n" will
> not decrement its counter when it moves across an invisible newline.
Very good (modulo newline -> newline char).
> > 5. After saying that we provide option `line-move-ignore-invisible'
> > specifically to let you prevent line motion commands from ignoring
> > invisible newlines (whatever that might mean!), this node says that if
> > ANY command ends with point in a certain position relative to invisible
> > text, then the cursor is automatically moved past that stretch of
> > invisible text (one direction or the other). How is this related to the
> > previous text about line motion commands and
> > `line-move-ignore-invisible'?
>
> It isn't related to line-move-ignore-invisible. It is related to the
> broader issue described by that node, which is invisible text in
> general.
Yes, I sensed that. I found (find) the juxtaposition confusing.
Maybe separate the two discussions better, and perhaps give an example
of interaction (or lack thereof) between the two.
next parent reply other threads:[~2014-05-17 14:45 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <<e3c64828-b37d-466e-8f33-b509898027a1@default>
[not found] ` <<83iop4eq5h.fsf@gnu.org>
2014-05-17 14:45 ` Drew Adams [this message]
2014-05-17 15:02 ` bug#17511: 24.4.50; `line-move-ignore-invisible': doc and purpose not clear Eli Zaretskii
[not found] <<8c772b14-20d1-4e3a-9936-f81936c3d31b@default>
[not found] ` <<83a9age9dl.fsf@gnu.org>
2014-05-17 16:03 ` Drew Adams
2014-05-17 16:11 ` Eli Zaretskii
[not found] ` <<547b37b1-f55b-45e9-8c89-eb9388580d36@default>
[not found] ` <<8361l4e66d.fsf@gnu.org>
2014-05-17 16:24 ` Drew Adams
2014-05-16 20:52 Drew Adams
2014-05-17 9:00 ` Eli Zaretskii
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8c772b14-20d1-4e3a-9936-f81936c3d31b@default \
--to=drew.adams@oracle.com \
--cc=17511@debbugs.gnu.org \
--cc=eliz@gnu.org \
/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 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.