From mboxrd@z Thu Jan 1 00:00:00 1970 From: pinard@iro.umontreal.ca (=?utf-8?Q?Fran=C3=A7ois?= Pinard) Subject: Re: A bit more feedback on org-publish-all Date: Mon, 06 Feb 2012 09:56:03 -0500 Message-ID: <87ipjkau4c.fsf@iro.umontreal.ca> References: <87ty351gl6.fsf@iro.umontreal.ca> <871uq821ez.fsf@iro.umontreal.ca> <17364.1328499519@alphaville> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([140.186.70.92]:41194) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RuPzF-00055X-Do for emacs-orgmode@gnu.org; Mon, 06 Feb 2012 09:56:15 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RuPzA-0000Qj-ML for emacs-orgmode@gnu.org; Mon, 06 Feb 2012 09:56:09 -0500 Received: from 206-248-137-202.dsl.teksavvy.com ([206.248.137.202]:63822 helo=mercure.epsilon-ti.ca) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RuPzA-0000QX-GF for emacs-orgmode@gnu.org; Mon, 06 Feb 2012 09:56:04 -0500 In-Reply-To: <17364.1328499519@alphaville> (Nick Dokos's message of "Sun, 05 Feb 2012 22:38:39 -0500") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Nick Dokos writes: > (message "foo") prints to stderr in batch mode, which is an unbuffered > stream. E.g ``emacs --batch -l foo.el'' with foo.el containing > (message "foo") > (sit-for 10) > prints out ``foo'' and then sits for 10 seconds before exiting. Hi, Nick. It seems you are right. I initially guessed that -batch might have Emacs to allocate an output buffer, or at least do it when output is not directed to a terminal. But it even works as you say if I do: emacs 2>&1 --batch -l foo.el | cat This is more similar to my actual usage, which really is: [...] write =3D sys.stderr.write for line in os.popen('emacs 2>&1 -batch' ' -l ~/fp/notes/publish.el' ' -f org-publish-all'): write(repr(line) + '\n') sys.stderr.flush() [...] The write(...) and the flush() are only there for debugging: I wanted to see if the lines are delivered timely or not (and I'm seemingly getting the Emacs output in one blow). I just do not understand why the behavior differs between the "... | cat" line and the Python excerpt. I'm surely missing something somewhere... Sigh! > Also, don't you get messages for every file? Yes, and these messages usually say: "Skipping unmodified file ..." On the "entertaining side", this is too much noise; I would have preferred a mere line per project. Not a big deal anyway for me. On the "debugging side", this is sufficient indeed. > I would recommend looking at the worg publishing mechanism in > general. See > http://orgmode.org/worg/worg-setup.html > particularly the sections entitled=20 > - What .emacs.el file is used on the server? > - I want it for my own server! Hey, thanks for this pointer, Nick; there seems to be useful hints or tricks in there. I'm saving it for later study. I plan to progressively convert more of my previous pages to Org format, and use it more for new pages too, as Org format and mode are so nice for maintenance. I plan to retain a few reStructuredText sources as such, as reST also has it virtues for publishing. I also hope that Org publishing offers me opportunities for experimenting (OK, OK: toying!) with new HTML/CSS avenues, I'm not familiar enough to be sure yet. Fran=C3=A7ois