From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.help Subject: Re: Mode for output analysis Date: Tue, 21 Dec 2010 19:31:20 +0100 Message-ID: <87r5db9dvr.fsf@member.fsf.org> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1292957023 21283 80.91.229.12 (21 Dec 2010 18:43:43 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 21 Dec 2010 18:43:43 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Dec 21 19:43:39 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PV7BP-00077N-4E for geh-help-gnu-emacs@m.gmane.org; Tue, 21 Dec 2010 19:43:35 +0100 Original-Received: from localhost ([127.0.0.1]:44799 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PV70G-00074P-L8 for geh-help-gnu-emacs@m.gmane.org; Tue, 21 Dec 2010 13:32:04 -0500 Original-Received: from [140.186.70.92] (port=57962 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PV6zr-00073X-9j for help-gnu-emacs@gnu.org; Tue, 21 Dec 2010 13:31:40 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PV6zq-0000LJ-AP for help-gnu-emacs@gnu.org; Tue, 21 Dec 2010 13:31:39 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]:43187) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PV6zp-0000Kp-LC for help-gnu-emacs@gnu.org; Tue, 21 Dec 2010 13:31:38 -0500 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1PV6zn-0008Jw-IV for help-gnu-emacs@gnu.org; Tue, 21 Dec 2010 19:31:35 +0100 Original-Received: from 95-88-32-105-dynip.superkabel.de ([95.88.32.105]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 21 Dec 2010 19:31:35 +0100 Original-Received: from tassilo by 95-88-32-105-dynip.superkabel.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 21 Dec 2010 19:31:35 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 30 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 95-88-32-105-dynip.superkabel.de User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:N2a0wxDGssKu1qHUOduN2NXlMcI= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:77748 Archived-At: Andrea Crotti 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