From: Emanuel Berg <embe8573@student.uu.se>
To: help-gnu-emacs@gnu.org
Subject: Re: How to alphabetasize sections?
Date: Sat, 13 Sep 2014 02:00:02 +0200 [thread overview]
Message-ID: <87a964jsot.fsf@debian.uxu> (raw)
In-Reply-To: mailman.8788.1410564074.1147.help-gnu-emacs@gnu.org
Robert Thorpe <rt@robertthorpeconsulting.com> writes:
>> One way is to add (or augment) the local variables
>> block in the file to read: % Local variables: %
>> paragraph-separate: "\\section" % End: then save,
>> then revert, then mark the region around all the
>> \section (and text), and type ‘M-x sort-paragraphs
>> RET’.
>
> Another way is to do search and replace (M-%):
> \\section with ^L \\section
>
> Then use sort-pages. Finally M-% again to get rid of
> the ^Ls.
That's very creative, both of you, but isn't the best
way to move all the sections to separate files and then
put one-line references in the "motherfile", and simply
sort those with `sort-lines'?
--
underground experts united
next parent reply other threads:[~2014-09-13 0:00 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.8788.1410564074.1147.help-gnu-emacs@gnu.org>
2014-09-13 0:00 ` Emanuel Berg [this message]
2014-09-13 0:58 ` How to alphabetasize sections? Thorsten Jolitz
2014-09-13 1:29 ` Robert Thorpe
2014-09-13 7:50 ` Thien-Thi Nguyen
[not found] ` <mailman.8807.1410594408.1147.help-gnu-emacs@gnu.org>
2014-09-13 19:22 ` Emanuel Berg
2014-09-15 7:27 ` Thien-Thi Nguyen
[not found] <mailman.8797.1410571808.1147.help-gnu-emacs@gnu.org>
2014-09-13 5:27 ` Emanuel Berg
2014-09-12 0:29 Sharon Kimble
2014-09-12 7:11 ` Thien-Thi Nguyen
2014-09-12 23:20 ` Robert Thorpe
2014-09-12 7:11 ` Sharon Kimble
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.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87a964jsot.fsf@debian.uxu \
--to=embe8573@student.uu.se \
--cc=help-gnu-emacs@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.
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).