all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* what's intangibility in move-end-of-line?
@ 2008-12-06 23:49 Xah Lee
  2008-12-07 14:54 ` Kevin Rodgers
  0 siblings, 1 reply; 2+ messages in thread
From: Xah Lee @ 2008-12-06 23:49 UTC (permalink / raw)
  To: help-gnu-emacs

 aboutin 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.
»

this seems unclear to me. What is this intangibility? looking up on
inhibit-point-motion-hooks does not seems to clear up. It seems about
some properties in lisp symbols.

I need to use this in elisp code. Not sure if it is proper to use in
elisp code.

Thanks.

  Xah
∑ http://xahlee.org/^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: what's intangibility in move-end-of-line?
  2008-12-06 23:49 what's intangibility in move-end-of-line? Xah Lee
@ 2008-12-07 14:54 ` Kevin Rodgers
  0 siblings, 0 replies; 2+ messages in thread
From: Kevin Rodgers @ 2008-12-07 14:54 UTC (permalink / raw)
  To: help-gnu-emacs

Xah Lee wrote:
>  aboutin 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.
> »
> 
> this seems unclear to me. What is this intangibility? looking up on
> inhibit-point-motion-hooks does not seems to clear up. It seems about
> some properties in lisp symbols.

No, text properties.  You can read about them in the Emacs Lisp manual.
The "Special Properties" says this about intangibility:

,----
| `intangible'
|      If a group of consecutive characters have equal and non-`nil'
|      `intangible' properties, then you cannot place point between them.
|      If you try to move point forward into the group, point actually
|      moves to the end of the group.  If you try to move point backward
|      into the group, point actually moves to the start of the group.
|
|      If consecutive characters have unequal non-`nil' `intangible'
|      properties, they belong to separate groups; each group is
|      separately treated as described above.
|
|      When the variable `inhibit-point-motion-hooks' is non-`nil', the
|      `intangible' property is ignored.
`----

> I need to use this in elisp code. Not sure if it is proper to use in
> elisp code.

Sure it is.  Or (goto-char (line-end-position))

-- 
Kevin Rodgers
Denver, Colorado, USA





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

end of thread, other threads:[~2008-12-07 14:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-06 23:49 what's intangibility in move-end-of-line? Xah Lee
2008-12-07 14:54 ` Kevin Rodgers

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.