From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thien-Thi Nguyen Newsgroups: gmane.emacs.help Subject: Re: How to alphabetasize sections? Date: Mon, 15 Sep 2014 09:27:57 +0200 Message-ID: <87iokpcphe.fsf@zigzag.favinet> References: <87a964jsot.fsf@debian.uxu> <87ha0ahxre.fsf@debian.uxu> Reply-To: help-gnu-emacs@gnu.org NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" X-Trace: ger.gmane.org 1410765908 4225 80.91.229.3 (15 Sep 2014 07:25:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 15 Sep 2014 07:25:08 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Sep 15 09:25:01 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 1XTQeZ-0000AD-U0 for geh-help-gnu-emacs@m.gmane.org; Mon, 15 Sep 2014 09:24:52 +0200 Original-Received: from localhost ([::1]:57806 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XTQeZ-00063d-G2 for geh-help-gnu-emacs@m.gmane.org; Mon, 15 Sep 2014 03:24:51 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39867) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XTQe6-0005oB-55 for help-gnu-emacs@gnu.org; Mon, 15 Sep 2014 03:24:28 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XTQdx-0004Wc-6v for help-gnu-emacs@gnu.org; Mon, 15 Sep 2014 03:24:22 -0400 Original-Received: from smtp209.alice.it ([82.57.200.105]:49187) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XTQdw-0004Tl-PY for help-gnu-emacs@gnu.org; Mon, 15 Sep 2014 03:24:13 -0400 Original-Received: from zigzag.favinet (79.24.205.25) by smtp209.alice.it (8.6.060.43) id 540DA632015017C5 for help-gnu-emacs@gnu.org; Mon, 15 Sep 2014 09:24:11 +0200 Original-Received: from ttn by zigzag.favinet with local (Exim 4.80) (envelope-from ) id 1XTQhn-0006vD-5t for help-gnu-emacs@gnu.org; Mon, 15 Sep 2014 09:28:11 +0200 Mail-Followup-To: help-gnu-emacs@gnu.org In-Reply-To: <87ha0ahxre.fsf@debian.uxu> (Emanuel Berg's message of "Sat, 13 Sep 2014 21:22:39 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 82.57.200.105 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:99899 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable () Emanuel Berg () Sat, 13 Sep 2014 21:22:39 +0200 Yeah? - the entropy is the directories and the files and the references in the main file? Entropy is everywhere. When it gets too involved w/ the sorting of \section blocks, the disk drive dies sooner. [hypothetical document organization] I don't see how this relates to the OP's sorting issue. > data motion Do you mean when the subdivision is done, or in compilation? In this case, data motion of the actual sort is managed by Emacs, so i have no choice in the matter. Under my control, instead, is how to specify the data head and the data body. In the procedure i sketched, there is a lot of bulk data motion for that (writing to disk plus revert, all just to set a buffer-local variable), because it was written for a possibly non-expert audience. Personally, i would have: (setq ttn "\\section") (rotatef ttn paragraph-separate) ;; mark region ;; M-x sort-paragraphs RET (rotatef ttn paragraph-separate) (makunbound 'ttn) which neither sullies the buffer nor touches disk. (Now, someone will say "hey ttn, Emacs now has commands to push / pop buffer-local vars -- check it out!", you just watch!) (Why is data motion bad at all by the way?) It's not good or bad per se. However, when you have an old computer, the consequences of too much disk activity becomes a worry. Although the OP did not specify the computer's age, i try to factor-in that worry in my advice anyway, because computers grow older and people suffer when theirs dies, universally. Obviously, here i somewhat failed... > and manularity. [hypothetical C++ project organization] The other suggestion is essentially the same as the one i made, except that there is formfeed (i.e., =E2=80=98^L=E2=80=99) involved. That's the kind of manularity i understand but try to avoid. Luckily Emacs lets us surf at many levels... [OT: BTW, if anyone wants to donate to me a less than ancient computer (and is willing to pay shipping :-D), please feel free to contact me off list.] =2D-=20 Thien-Thi Nguyen GPG key: 4C807502 (if you're human and you know it) read my lisp: (responsep (questions 'technical) (not (via 'mailing-list))) =3D> nil --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEYEARECAAYFAlQWlQQACgkQZwMiJEyAdQI82ACggz5rmffFFWM/HONXNRTBJZuX NOIAnjkPilvubzSWnZnwCUwCm69GL3Da =B8II -----END PGP SIGNATURE----- --=-=-=--