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: Mon, 21 Mar 2011 13:01:48 +0100 Message-ID: References: <4D8705CA.1020300@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 1300708967 22773 80.91.229.12 (21 Mar 2011 12:02:47 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 21 Mar 2011 12:02:47 +0000 (UTC) Cc: Emacs developers To: martin rudalics Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Mar 21 13:02:43 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 1Q1dop-0003Uu-Fz for ged-emacs-devel@m.gmane.org; Mon, 21 Mar 2011 13:02:43 +0100 Original-Received: from localhost ([127.0.0.1]:48145 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q1don-0001lU-QP for ged-emacs-devel@m.gmane.org; Mon, 21 Mar 2011 08:02:42 -0400 Original-Received: from [140.186.70.92] (port=54228 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q1doh-0001hD-6c for emacs-devel@gnu.org; Mon, 21 Mar 2011 08:02:36 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q1doa-0001HY-T6 for emacs-devel@gnu.org; Mon, 21 Mar 2011 08:02:30 -0400 Original-Received: from mail-qy0-f176.google.com ([209.85.216.176]:42244) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q1doa-0001HP-Ni for emacs-devel@gnu.org; Mon, 21 Mar 2011 08:02:28 -0400 Original-Received: by qyk30 with SMTP id 30so5065539qyk.0 for ; Mon, 21 Mar 2011 05:02:28 -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=8BlVjTLpUyf1pQ64dgo2cdUj19SchJOySmlzaYe/NF4=; b=PQf4xSrM3e7X6pyHsxg4zcR7JUOUSKojAAZz4xz4FwGaz4YgddsC8u23eXb75VmhgA j0pIxPA15bDW5ikGV3euQphzM+zR+5MUuv18fgwdu/E1dDH9cPXoOnPAKWayjljZDm+g QIuPu/WOSeq7pRHh0kAeKoHwv4TjXJdHijZK8= 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=I22jcS9APx3pWzYcZG7FE+Mx0M1ss1XgC9oSmtZCPi2watBOKFHOCNkTev5Nuacgyp h/fTDsg8xdCz1/FkZ7XOeGC+AZYHLvO81EPmcaXkH4TMGTo7grVSrLmPRh+gKLfr028u OHJmM+ttnI7tZV9lfCQniuWIGCaBV3id6pxYs= Original-Received: by 10.229.29.129 with SMTP id q1mr3046842qcc.295.1300708948131; Mon, 21 Mar 2011 05:02:28 -0700 (PDT) Original-Received: by 10.229.74.212 with HTTP; Mon, 21 Mar 2011 05:01:48 -0700 (PDT) In-Reply-To: <4D8705CA.1020300@gmx.at> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.216.176 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:137466 Archived-At: > Couldn't we handle this inside (a possibly improved) add_to_log? Well, the whole point of my proposal is that I want to give a warning, not just a message (which is very easily overlooked when starting Emacs). Also, as the process of delayed-warnings happens very late (after .emacs), the user can remove warnings he doesn't really want with (setq delayed-warnings (delete* "unwanted warning" delayed-warnings :key 'cadr :test 'string-match-p)) or equivalent non-CL code. This is a plus, because we want to warn the user, but not punish him in case he does really have a reason to continue doing whatever causes the warning. In fact, if we adopt delayed-warnings, there are other warnings (quite a few in startup.el, for example, like the one I recently added about _emacs) that could be converted to using it and so give the user more control over them. =C2=A0 =C2=A0 Juanma