From: Samuel Wales <samologist@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: orgalist and refill a paragraph
Date: Tue, 23 Apr 2019 17:11:44 -0700 [thread overview]
Message-ID: <CAJcAo8snQYZ=fgS5qdLMXrdNxWh5T3hkdGruCL5p5+W5=SNeSw@mail.gmail.com> (raw)
In-Reply-To: <87imv59jqv.fsf@mat.ucm.es>
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 <oub@mat.ucm.es> wrote:
>
> > Hello,
> > Uwe Brauer <oub@mat.ucm.es> 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.
prev parent reply other threads:[~2019-04-24 0:11 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-04-22 16:26 orgalist and refill a paragraph Uwe Brauer
2019-04-22 18:21 ` Nicolas Goaziou
2019-04-22 20:44 ` Tim Cross
2019-04-23 8:59 ` Uwe Brauer
2019-04-23 9:03 ` Uwe Brauer
2019-04-24 0:11 ` Samuel Wales [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAJcAo8snQYZ=fgS5qdLMXrdNxWh5T3hkdGruCL5p5+W5=SNeSw@mail.gmail.com' \
--to=samologist@gmail.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).