GNU bug report logs -
#1507
move-end-of-line inline doc unclear. (intangibility)
Previous Next
Reported by: xah lee <xah <at> xahlee.org>
Date: Sun, 7 Dec 2008 00:05:05 UTC
Severity: normal
Done: Chong Yidong <cyd <at> stupidchicken.com>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 1507 in the body.
You can then email your comments to 1507 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded to
bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>
:
bug#1507
; Package
emacs
.
Full text and
rfc822 format available.
Acknowledgement sent to
xah lee <xah <at> xahlee.org>
:
New bug report received and forwarded. Copy sent to
Emacs Bugs <bug-gnu-emacs <at> gnu.org>
.
Full text and
rfc822 format available.
Message #5 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):
it seems to me that the move-end-of-line inline doc is unclear.
in the inline doc for move-end-of-line, it says:
«
move-end-of-line is an interactive compiled Lisp function in
`simple.el'.
It is bound to M-D.
(move-end-of-line arg)
Move point to end of current line as displayed.
(If there's an image in the line, this disregards newlines
which are part of the text that the image rests on.)
With argument arg not nil or 1, move forward arg - 1 lines first.
If point reaches the beginning or end of buffer, it stops there.
To ignore intangibility, bind `inhibit-point-motion-hooks' to t.
»
• It is not clear to me what this sentence means: “(If there's an
image in the line, this disregards newlines which are part of the
text that the image rests on.)” So, if there is a image on the
current line... i don't know what it means to say it disregard
newline, because to me eol char is at the end of line...
• the last paragraph about intangibility is unclear. (i don't
understand what it means. Looking up on that hook var didn't help much.)
• am not sure if move-end-of-line should be used in elisp code,
which is my primary query. If this function is not suitable in elisp
code, perhaps the doc should say.
similar in move-beginning-of-line.
Xah
∑ http://xahlee.org/
☄
Reply sent
to
Chong Yidong <cyd <at> stupidchicken.com>
:
You have taken responsibility.
(Sun, 04 Jan 2009 08:20:03 GMT)
Full text and
rfc822 format available.
Notification sent
to
xah lee <xah <at> xahlee.org>
:
bug acknowledged by developer.
(Sun, 04 Jan 2009 08:20:03 GMT)
Full text and
rfc822 format available.
Message #10 received at 1507-done <at> emacsbugs.donarmstrong.com (full text, mbox):
> It is not clear to me what this sentence means: “(If there's an image
> in the line, this disregards newlines which are part of the text that
> the image rests on.)” So, if there is a image on the current line... i
> don't know what it means to say it disregard newline, because to me
> eol char is at the end of line...
Whenever a range of text contains a text or overlay property with a
`display' property that specifies an image to display, Emacs displays
that image instead of displaying the range of text in the usual way.
Hence, move-end-of-line ignores newlines in that range of text, because
it is not displayed as the end of a line (it is "hidden" inside the
image).
> the last paragraph about intangibility is unclear. (i don't understand
> what it means. Looking up on that hook var didn't help much.)
Unfortunately, it's not feasible to explain the effects of every single
text or overlay property in docstrings. The role of the `intangible'
property is explained in the "Special Properties" node of the Emacs Lisp
reference manual.
> am not sure if move-end-of-line should be used in elisp code, which is
> my primary query. If this function is not suitable in elisp code,
> perhaps the doc should say.
This function is suitable for use in elisp code, provided one keeps in
mind that it moves to the end of line *as displayed*, i.e., taking
things like text properties into account, exactly as C-e does. This may
or may not be what you want in a Lisp program.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> emacsbugs.donarmstrong.com
.
(Sun, 01 Feb 2009 15:24:07 GMT)
Full text and
rfc822 format available.
This bug report was last modified 16 years and 139 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.