[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Mode for output analysis
From: |
Tassilo Horn |
Subject: |
Re: Mode for output analysis |
Date: |
Tue, 21 Dec 2010 19:31:20 +0100 |
User-agent: |
Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux) |
Andrea Crotti <andrea.crotti.0@gmail.com> writes:
Hi Andrea,
> first a couple of questions:
> - is it possible to rewrite on an existing buffer (which is read-only)
> more easily than how I do (checking if exist, kill and then create a
> new one)?
Use something along the lines of
(progn
(set-buffer (get-buffer-create "*My Result Buffer*"))
(let ((inhibit-read-only t))
(erase-buffer)
;; do stuff in buffer...
))
> - am I sure in compile-and-show that the second expression is evaluated
> after the compilation is over?
> By default the subprocess are synchronous right?
Evaluate
(progn (shell-command-to-string "sleep 5") (message "BING!"))
and see for yourself.
Bye,
Tassilo