From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Bug: org-backward-paragraph give an error when called from the #+BEGIN_SRC line of a source block [9.1.1 (9.1.1-17-g24ea1b-elpaplus @ /home/omar/.emacs.d/elpa/org-plus-contrib-20171002/)] Date: Wed, 04 Oct 2017 13:00:41 +0200 Message-ID: <87wp4bfa92.fsf@nicolasgoaziou.fr> References: <86o9poovi2.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59634) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dzhQ6-0008O4-6b for emacs-orgmode@gnu.org; Wed, 04 Oct 2017 07:00:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dzhPx-0007R8-F4 for emacs-orgmode@gnu.org; Wed, 04 Oct 2017 07:00:54 -0400 Received: from relay2-d.mail.gandi.net ([2001:4b98:c:538::194]:39845) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dzhPx-0007Qd-8s for emacs-orgmode@gnu.org; Wed, 04 Oct 2017 07:00:45 -0400 In-Reply-To: <86o9poovi2.fsf@gmail.com> (Omar Antolin's message of "Tue, 03 Oct 2017 14:56:53 -0500") 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" To: Omar Antolin Cc: emacs-orgmode@gnu.org Hello, Omar Antolin writes: > If you run `org-backward-paragraph` from the `#+BEGIN_SRC` line of a > source block it gives the error message "Invalid search bound (wrong > side of point)", instead of moving point. Fixed. Thank you. > This excerpt is from inside a branch of a `cond` that tests for > `(memq type '(src-block verse-block))`. I don't really understand what > the code is trying to do or why the case of source blocks and verse > block should be handled together. Because we want to treat their contents differently than what the parser sees. For example, source blocks have no contents, and verse blocks' ignore blank lines. Regards, -- Nicolas Goaziou