From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Getting beginning postiion of a description list Date: Fri, 16 Jan 2015 11:58:06 +0100 Message-ID: <877fwnt2kh.fsf@nicolasgoaziou.fr> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49917) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YC4aU-0008LW-1G for emacs-orgmode@gnu.org; Fri, 16 Jan 2015 05:57:10 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YC4aP-0007OU-Kt for emacs-orgmode@gnu.org; Fri, 16 Jan 2015 05:57:09 -0500 Received: from relay6-d.mail.gandi.net ([2001:4b98:c:538::198]:46250) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YC4aP-0007O5-EG for emacs-orgmode@gnu.org; Fri, 16 Jan 2015 05:57:05 -0500 In-Reply-To: (Calvin Young's message of "Wed, 14 Jan 2015 20:28:52 -0800") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Calvin Young Cc: emacs-orgmode@gnu.org Hello, Calvin Young writes: > If my cursor is in a description list item, what's the recommended way of > getting the point at the beginning of the description list text (i.e., > after the bullet character)? To illustrate, given the following description > list item, I'd like to get the point represented by the pipe character "|": > > - |foo :: bar > > If I use something like `(org-element-property :contents-begin > (org-element-at-point))`, that gives me the point at the beginning of the > description, not the list item: > > - foo :: |bar > > How do I need to massage this to give me the beginning of the whole list > item? Is there a recommended solution that'd work for both description > lists *and* plain lists? See `org-special-ctrl-a/e'. Regards, -- Nicolas Goaziou