From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Robert Thorpe Newsgroups: gmane.emacs.help Subject: Re: How to alphabetasize sections? Date: Sat, 13 Sep 2014 00:20:55 +0100 Message-ID: <87lhpomnmw.fsf@robertthorpeconsulting.com> References: <87a965e2jf.fsf@zigzag.favinet> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1410564093 27640 80.91.229.3 (12 Sep 2014 23:21:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 12 Sep 2014 23:21:33 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Sep 13 01:21:26 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XSa9e-00039A-1b for geh-help-gnu-emacs@m.gmane.org; Sat, 13 Sep 2014 01:21:26 +0200 Original-Received: from localhost ([::1]:47648 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XSa9d-00008F-17 for geh-help-gnu-emacs@m.gmane.org; Fri, 12 Sep 2014 19:21:25 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60230) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XSa9J-000081-Gk for help-gnu-emacs@gnu.org; Fri, 12 Sep 2014 19:21:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XSa9C-0004bH-S8 for help-gnu-emacs@gnu.org; Fri, 12 Sep 2014 19:21:05 -0400 Original-Received: from outbound-smtp04.blacknight.com ([81.17.249.35]:41669) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XSa9C-0004az-M6 for help-gnu-emacs@gnu.org; Fri, 12 Sep 2014 19:20:58 -0400 Original-Received: from mail.blacknight.com (pemlinmail04.blacknight.ie [81.17.254.17]) by outbound-smtp04.blacknight.com (Postfix) with ESMTP id 8AC0099332 for ; Fri, 12 Sep 2014 23:19:26 +0000 (UTC) Original-Received: (qmail 3878 invoked from network); 12 Sep 2014 23:20:57 -0000 Original-Received: from unknown (HELO RTLaptop) (rt@robertthorpeconsulting.com@[109.78.179.221]) by 81.17.254.9 with ESMTPSA (DHE-RSA-AES128-SHA encrypted, authenticated); 12 Sep 2014 23:20:57 -0000 In-Reply-To: <87a965e2jf.fsf@zigzag.favinet> (message from Thien-Thi Nguyen on Fri, 12 Sep 2014 09:11:32 +0200) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 81.17.249.35 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:99864 Archived-At: Thien-Thi Nguyen 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 =E2=80=98M-x sort-paragraphs RET=E2=80=99. 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. BR, Robert Thorpe