From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?UTF-8?Q?Aur=C3=A9lien_Aptel?= Newsgroups: gmane.emacs.help Subject: Re: Display compilation buffer only if compilation failed Date: Sat, 11 Feb 2012 19:13:52 +0100 Message-ID: References: <2A710B90B5974D5F8EFD545F7BADC5B1@us.oracle.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: dough.gmane.org 1328984044 27079 80.91.229.3 (11 Feb 2012 18:14:04 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 11 Feb 2012 18:14:04 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Drew Adams Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Feb 11 19:14:02 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RwHSR-0006z3-9E for geh-help-gnu-emacs@m.gmane.org; Sat, 11 Feb 2012 19:13:59 +0100 Original-Received: from localhost ([::1]:45908 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RwHSQ-0003Y2-O4 for geh-help-gnu-emacs@m.gmane.org; Sat, 11 Feb 2012 13:13:58 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:48870) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RwHSM-0003Xw-4i for help-gnu-emacs@gnu.org; Sat, 11 Feb 2012 13:13:55 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RwHSL-0008Tn-4p for help-gnu-emacs@gnu.org; Sat, 11 Feb 2012 13:13:54 -0500 Original-Received: from mail-tul01m020-f169.google.com ([209.85.214.169]:41017) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RwHSL-0008Tf-1N for help-gnu-emacs@gnu.org; Sat, 11 Feb 2012 13:13:53 -0500 Original-Received: by obbta7 with SMTP id ta7so6212516obb.0 for ; Sat, 11 Feb 2012 10:13:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=5SJOvBn6LZGviExy/T3VjqGCGlAlMEojY+dLTgTb/Ak=; b=nryRSZe/GmPaWMjzPZjjEmz3EBAokrocR5Q2fxCj2Bir7RL0fsPILlvdYSr+PuBm1A YHOYpQukqbmI14Id5/hh9m5Idw0JVtmPUtc4JXlyfPLP/YqqMFRw99TzuOgi/aXtShDa d6sppOHrtH9QFehqHFqiZP1gRmpV2NAu6SH50= Original-Received: by 10.182.231.100 with SMTP id tf4mr7006809obc.56.1328984032692; Sat, 11 Feb 2012 10:13:52 -0800 (PST) Original-Received: by 10.182.11.166 with HTTP; Sat, 11 Feb 2012 10:13:52 -0800 (PST) In-Reply-To: X-Google-Sender-Auth: kb6yz7RIrhaGxVZgbVqmzhrzobI X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.214.169 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:83707 Archived-At: I think I understand now. (with-current-buffer "obfu.c" (let ((buf (buffer-name (recompile)))) (sit-for 1) (my-compile-success-p "*compilation*"))) => t The call to recompile is asynchronous. I have to wait until the end of the compilation before checking the content of the buffer. How can I do this?