From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kevin Rodgers Newsgroups: gmane.emacs.help Subject: Re: what's intangibility in move-end-of-line? Date: Sun, 07 Dec 2008 07:54:28 -0700 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1228662399 11987 80.91.229.12 (7 Dec 2008 15:06:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 7 Dec 2008 15:06:39 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Dec 07 16:07:43 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1L9LEU-0002mi-Qx for geh-help-gnu-emacs@m.gmane.org; Sun, 07 Dec 2008 16:07:43 +0100 Original-Received: from localhost ([127.0.0.1]:33009 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L9LDJ-00034p-8p for geh-help-gnu-emacs@m.gmane.org; Sun, 07 Dec 2008 10:06:29 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L9L20-00069E-5K for help-gnu-emacs@gnu.org; Sun, 07 Dec 2008 09:54:48 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L9L1y-00068J-Dk for help-gnu-emacs@gnu.org; Sun, 07 Dec 2008 09:54:47 -0500 Original-Received: from [199.232.76.173] (port=35599 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L9L1y-000683-3L for help-gnu-emacs@gnu.org; Sun, 07 Dec 2008 09:54:46 -0500 Original-Received: from main.gmane.org ([80.91.229.2]:35552 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1L9L1x-000534-IO for help-gnu-emacs@gnu.org; Sun, 07 Dec 2008 09:54:45 -0500 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1L9L1o-0006oX-6t for help-gnu-emacs@gnu.org; Sun, 07 Dec 2008 14:54:36 +0000 Original-Received: from c-67-161-145-183.hsd1.co.comcast.net ([67.161.145.183]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 07 Dec 2008 14:54:36 +0000 Original-Received: from kevin.d.rodgers by c-67-161-145-183.hsd1.co.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 07 Dec 2008 14:54:36 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 49 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: c-67-161-145-183.hsd1.co.comcast.net User-Agent: Thunderbird 2.0.0.18 (Macintosh/20081105) In-Reply-To: X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:60417 Archived-At: 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