From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: list items not treated as such. Date: Fri, 04 Oct 2013 18:37:44 +0200 Message-ID: <87li298013.fsf@gmail.com> References: <87txh3v5d6.fsf@rudin.co.uk> <524877EE.3030002@toel.it> <87pprrv47y.fsf@rudin.co.uk> <5249A133.1070703@toel.it> <874n92xo43.fsf@rudin.co.uk> <877gdx4hy8.fsf@rudin.co.uk> <87fvsh5nqd.fsf@rudin.co.uk> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46419) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VS8OM-0004Q7-DZ for emacs-orgmode@gnu.org; Fri, 04 Oct 2013 12:38:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VS8OD-0003pd-WD for emacs-orgmode@gnu.org; Fri, 04 Oct 2013 12:38:14 -0400 Received: from plane.gmane.org ([80.91.229.3]:54775) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VS8OD-0003pJ-PV for emacs-orgmode@gnu.org; Fri, 04 Oct 2013 12:38:05 -0400 Received: from public by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1VS8O7-0006WV-8x for emacs-orgmode@gnu.org; Fri, 04 Oct 2013 18:37:59 +0200 In-Reply-To: <87fvsh5nqd.fsf@rudin.co.uk> (Paul Rudin's message of "Fri, 04 Oct 2013 11:34:02 +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: Paul Rudin Cc: public-emacs-orgmode-mXXj517/zsQ@plane.gmane.org Hello, Paul Rudin writes: > Paul Rudin writes: > > (about lists) > > Here is a test for this problem. Notice that if you change the "a)" to "1." > - for example - the test passes. So this is something specific to > alphabetically labelled list items. > > > (ert-deftest org-list-item-test () > (with-temp-buffer > (org-mode) > (let ((org-allow-alphabetical t) > (fill-column 70)) > (insert "1. some stuff\n" > " a) an alphabetic list item with text longer that the current fill column so that it gets wrapped by fill-paragraph") > (fill-paragraph) > (should (not (equal (org-in-item-p) 1)))))) Quoting `org-list-allow-alphabetical' docstring: This variable needs to be set before org.el is loaded. If you need to make a change while Emacs is running, use the customize interface or run the following code, where VALUE stands for the new value of the variable, after updating it: (when (featurep 'org-element) (load "org-element" t t)) So let-binding it cannot work. Regards, -- Nicolas Goaziou