all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Thien-Thi Nguyen <ttn@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: How to alphabetasize sections?
Date: Mon, 15 Sep 2014 09:27:57 +0200	[thread overview]
Message-ID: <87iokpcphe.fsf@zigzag.favinet> (raw)
In-Reply-To: <87ha0ahxre.fsf@debian.uxu> (Emanuel Berg's message of "Sat, 13 Sep 2014 21:22:39 +0200")

[-- Attachment #1: Type: text/plain, Size: 2351 bytes --]

() Emanuel Berg <embe8573@student.uu.se>
() 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., ‘^L’) 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.]

-- 
Thien-Thi Nguyen
   GPG key: 4C807502
   (if you're human and you know it)
      read my lisp: (responsep (questions 'technical)
                               (not (via 'mailing-list)))
                     => nil

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 197 bytes --]

  reply	other threads:[~2014-09-15  7:27 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 ` How to alphabetasize sections? Emanuel Berg
2014-09-13  0:58   ` 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 [this message]
     [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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87iokpcphe.fsf@zigzag.favinet \
    --to=ttn@gnu.org \
    --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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.