From mboxrd@z Thu Jan 1 00:00:00 1970 From: Samuel Wales Subject: Re: orgalist and refill a paragraph Date: Tue, 23 Apr 2019 17:11:44 -0700 Message-ID: References: <8736maatwj.fsf@mat.ucm.es> <87ef5tx5n2.fsf@nicolasgoaziou.fr> <87imv59jqv.fsf@mat.ucm.es> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Return-path: Received: from eggs.gnu.org ([209.51.188.92]:45364) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hJ5Vu-0004Jz-9z for emacs-orgmode@gnu.org; Tue, 23 Apr 2019 20:11:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hJ5Vs-0003u9-RI for emacs-orgmode@gnu.org; Tue, 23 Apr 2019 20:11:50 -0400 Received: from mail-lf1-x130.google.com ([2a00:1450:4864:20::130]:38832) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hJ5Vs-0003se-H0 for emacs-orgmode@gnu.org; Tue, 23 Apr 2019 20:11:48 -0400 Received: by mail-lf1-x130.google.com with SMTP id v1so670922lfg.5 for ; Tue, 23 Apr 2019 17:11:47 -0700 (PDT) In-Reply-To: <87imv59jqv.fsf@mat.ucm.es> 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: emacs-orgmode@gnu.org filladapt.el usually fills much better for org lists, and everything else, but i don't think it would be better for this case. (setq filladapt-token-table '( ;; this must be first ("^" beginning-of-line) ;; Included text in news or mail replies (">+" citation->) ;; Included text generated by SUPERCITE. We can't hope to match all ;; the possible variations, your mileage may vary. ("\\(\\w\\|[0-9]\\)[^'`\"< \t\n]*>[ \t]*" supercite-citation) ;; Lisp comments ;; alpha -- this needs to treat ";; (lisp)" as not a comment (";+" lisp-comment) ;; UNIX shell comments ;; ;; alpha might or might not need to fix org comments. ;; cf. comment-start. ;; ;;("\\(# ?\\)+" sh-comment) ("#+" sh-comment) ;; Postscript comments ("%+" postscript-comment) ;; C++ comments ("///*" c++-comment) ;; Texinfo comments ("@c[ \t]" texinfo-comment) ("@comment[ \t]" texinfo-comment) ;; Bullet types. ;; ;; LaTex \item ;; ("\\\\item[ \t]" bullet) ;; ;; 1. xxxxx ;; xxxxx ;;alpha also org checkbox ("^[ ]+[0-9]+\\.[ \t]\\[[ X]?\\] " bullet) ("^[ ]+[0-9]+\\.[ \t]" bullet) ;; ;; 2.1.3 xxxxx xx x xx x ;; xxx ;; ("^[ ]+[0-9]+\\(\\.[0-9]+\\)+[ \t]" bullet) ;; ;; a. xxxxxx xx ;; xxx xxx ;;alpha also org checkbox -- why a ? here? fixme. ("^[ ]+[A-Za-z]\\.[ \t]\\[[ X]?\\] " bullet) ("^[ ]+[A-Za-z]\\.[ \t]" bullet) ;; ;; 1) xxxx x xx x xx or (1) xx xx x x xx xx ;; xx xx xxxx xxx xx x x xx x ;; ;;alpha also org checkbox ;; ("^[ ]+(?[0-9]+)[ \t]\\[[ X]?\\] " bullet) ("^[ ]+(?[0-9]+)[ \t]" bullet) ;; ;; a) xxxx x xx x xx or (a) xx xx x x xx xx ;; xx xx xxxx xxx xx x x xx x ;;alpha also org checkbox ("^[ ]+(?[A-Za-z])[ \t]\\[[ X]?\\] " bullet) ("^[ ]+(?[A-Za-z])[ \t]" bullet) ;; ;; 2a. xx x xxx x x xxx ;; xxx xx x xx x ;; ("^[ ]+[0-9]+[A-Za-z]\\.[ \t]" bullet) ;; ;; 1a) xxxx x xx x xx or (1a) xx xx x x xx xx ;; xx xx xxxx xxx xx x x xx x ;; ("^[ ]+(?[0-9]+[A-Za-z])[ \t]" bullet) ;; ;; - xx xxx xxxx or * xx xx x xxx xxx ;; xxx xx xx x xxx x xx x x x ;;alpha also org checkbox ("^[ ]+[-~*+]+[ \t]\\[[ X]?\\] " bullet) ("^[ ]+[-~*+]+[ \t]" bullet) ;; ;; o xx xxx xxxx xx x xx xxx x xxx xx x xxx ;; xxx xx xx ;; ("^[ ]+o[ \t]" bullet) ;; don't touch ("[ \t]+" space) ("$" end-of-line) )) On 4/23/19, Uwe Brauer wrote: > > > Hello, > > Uwe Brauer writes: > > > > Use TAB on the second line. In any case, I don't think orgalist should > > do it. The second line doesn't belong to the list, by definition. > > Well the question is, if you already typed some text and want to make a > list out of it, ogalist cannot deal it. The point is this scenario to > transform some paragraph to a list, occurs to me frequently and that is > why I would like to have some function which would do the job. > > I tried out to unfill the region, that is to make a very long line, then > insert a list item and then refill, with adaptive fill, that somehow > works, but is not error free. > -- The Kafka Pandemic What is misopathy? https://thekafkapandemic.blogspot.com/2013/10/why-some-diseases-are-wronged.html The disease DOES progress. MANY people have died from it. And ANYBODY can get it at any time.