From mboxrd@z Thu Jan 1 00:00:00 1970 From: Calvin Young Subject: Getting beginning postiion of a description list Date: Wed, 14 Jan 2015 20:28:52 -0800 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=089e01494c2a49c256050ca94c3c Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50545) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YBc3W-0007ud-Ay for emacs-orgmode@gnu.org; Wed, 14 Jan 2015 23:29:15 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YBc3V-0008Q7-D9 for emacs-orgmode@gnu.org; Wed, 14 Jan 2015 23:29:14 -0500 Received: from mail-ig0-x230.google.com ([2607:f8b0:4001:c05::230]:50768) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YBc3V-0008Py-7z for emacs-orgmode@gnu.org; Wed, 14 Jan 2015 23:29:13 -0500 Received: by mail-ig0-f176.google.com with SMTP id b16so10604594igk.3 for ; Wed, 14 Jan 2015 20:29:12 -0800 (PST) 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: emacs-orgmode@gnu.org --089e01494c2a49c256050ca94c3c Content-Type: text/plain; charset=ISO-8859-1 Hi all, 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? Thanks everyone :) Calvin --089e01494c2a49c256050ca94c3c Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hi all,

If my cursor is in a descriptio= n list item, what's the recommended way of getting the point at the beg= inning 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 `(o= rg-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 ne= ed to massage this to give me the beginning of the whole list item? Is ther= e a recommended solution that'd work for both description lists *and* p= lain lists?

Thanks everyone :)

Calvin
--089e01494c2a49c256050ca94c3c--