From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: org-element-at-point and special blocks Date: Thu, 10 Dec 2015 17:08:02 +0100 Message-ID: <87h9jq70d9.fsf@nicolasgoaziou.fr> References: <87y4d3jy6t.fsf@gmx.us> <87zixiolps.fsf@nicolasgoaziou.fr> <87fuzajodi.fsf@gmx.us> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34879) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a73jT-0007tj-VE for emacs-orgmode@gnu.org; Thu, 10 Dec 2015 11:06:16 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a73jP-0008LL-M8 for emacs-orgmode@gnu.org; Thu, 10 Dec 2015 11:06:15 -0500 Received: from relay4-d.mail.gandi.net ([2001:4b98:c:538::196]:40252) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a73jP-0008LH-FR for emacs-orgmode@gnu.org; Thu, 10 Dec 2015 11:06:11 -0500 In-Reply-To: <87fuzajodi.fsf@gmx.us> (rasmus@gmx.us's message of "Thu, 10 Dec 2015 16:48:41 +0100") 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: Rasmus Cc: emacs-orgmode@gnu.org Rasmus writes: > Out of curiosity, why is it "more" consistent to return paragraph > here? Notwithstanding this case, if `org-element-at-point' returns `special-block', you /know/ that you are either on block boundaries (#+begin_special or #+end_special) or on any affiliated keyword above, but /never/ within the block. If `org-element-at-point' returns `special-block' here, you create an exception, which you have to handle later on. Besides, the truly empty contents are #+begin_special #+end_special therefore, I'm not shocked if #+begin_special #+end_special is a special block with an empty paragraph instead. Regards,