From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juanma Barranquero Newsgroups: gmane.emacs.devel Subject: Re: Delayed warnings Date: Tue, 22 Mar 2011 13:04:38 +0100 Message-ID: References: <4D8705CA.1020300@gmx.at> <4D874FF3.9010606@gmx.at> <4D8793B1.2040701@gmx.at> <4D8856C1.1000206@gmx.at> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1300795759 6481 80.91.229.12 (22 Mar 2011 12:09:19 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 22 Mar 2011 12:09:19 +0000 (UTC) Cc: Emacs developers To: martin rudalics Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Mar 22 13:09:14 2011 Return-path: Envelope-to: ged-emacs-devel@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 1Q20Og-0003js-2d for ged-emacs-devel@m.gmane.org; Tue, 22 Mar 2011 13:09:14 +0100 Original-Received: from localhost ([127.0.0.1]:56584 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q20Of-00012S-3K for ged-emacs-devel@m.gmane.org; Tue, 22 Mar 2011 08:09:13 -0400 Original-Received: from [140.186.70.92] (port=58736 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q20Kt-00069m-Qg for emacs-devel@gnu.org; Tue, 22 Mar 2011 08:05:20 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q20Ks-0005l1-RL for emacs-devel@gnu.org; Tue, 22 Mar 2011 08:05:19 -0400 Original-Received: from mail-gy0-f169.google.com ([209.85.160.169]:37974) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q20Ks-0005kw-NZ for emacs-devel@gnu.org; Tue, 22 Mar 2011 08:05:18 -0400 Original-Received: by gyg10 with SMTP id 10so2840735gyg.0 for ; Tue, 22 Mar 2011 05:05:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type:content-transfer-encoding; bh=8ISDD7Y0NyyURmb62wWo76mY1aTEE3l3bHCvjSvzkjg=; b=Z2nxEHxYPStSrx8OPXS6Ggtk2HruBfCmvlLF/ili0FayGyi9Nsh2/UcsFUI0L5k0ob TJp+bY/89eH3tU4Gjyf31JfkYr/KXkCinQDfJEc3shHNqmtCqJJqSOsAtdR1nvRgRHtf l/EYnhWWQoSboYAMeltc0I9FEgkJppAZYw6BY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=FMm3HbuNTu176/WN5UWJtITpKt3PtP7f6ZmQ9odT08ThQR4LqPAoBFeyW9ePm+0B26 kBXQlvkNidrmWADmTfKqYKMtlIJWye2Viv3BC0RRqEf1JB+9c381uGkq3B/ewdiFcZYo vSzkXnsmGTU/hZnfgl+YQW0wdTfnUWQzZtHNk= Original-Received: by 10.146.108.19 with SMTP id g19mr4932349yac.24.1300795518090; Tue, 22 Mar 2011 05:05:18 -0700 (PDT) Original-Received: by 10.147.34.11 with HTTP; Tue, 22 Mar 2011 05:04:38 -0700 (PDT) In-Reply-To: <4D8856C1.1000206@gmx.at> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.160.169 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:137526 Archived-At: On Tue, Mar 22, 2011 at 08:58, martin rudalics wrote: > As in your patch, I presume. =C2=A0Only that there you never reset the > variable (obviously so, since you run the function once only). Yes. My code was intended for one-off warnings, yours is more general. > And I would run this after the post-command-hook and before the > resize-echo-area call. I wrap `display-warning' in an advice that shrinks the buffer displaying *Warnings* (basically a call to fit-window-to-buffer). It'll be interesting to see how these two interact. =C2=A0 =C2=A0 Juanma