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: Sun, 8 May 2011 20:43:53 +0200 Message-ID: References: <4D8705CA.1020300@gmx.at> <4D874FF3.9010606@gmx.at> <4D8793B1.2040701@gmx.at> <87vcxl13ci.fsf@stupidchicken.com> 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 1304880282 30317 80.91.229.12 (8 May 2011 18:44:42 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 8 May 2011 18:44:42 +0000 (UTC) Cc: martin rudalics , Stefan Monnier , Emacs developers To: Chong Yidong Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun May 08 20:44:38 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QJ8y5-0000hh-IZ for ged-emacs-devel@m.gmane.org; Sun, 08 May 2011 20:44:37 +0200 Original-Received: from localhost ([::1]:54479 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QJ8y5-00026a-3m for ged-emacs-devel@m.gmane.org; Sun, 08 May 2011 14:44:37 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:45438) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QJ8y3-00026N-37 for emacs-devel@gnu.org; Sun, 08 May 2011 14:44:36 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QJ8y2-0000R0-2q for emacs-devel@gnu.org; Sun, 08 May 2011 14:44:35 -0400 Original-Received: from mail-gx0-f169.google.com ([209.85.161.169]:54261) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QJ8y2-0000Qj-0J for emacs-devel@gnu.org; Sun, 08 May 2011 14:44:34 -0400 Original-Received: by gxk23 with SMTP id 23so2044788gxk.0 for ; Sun, 08 May 2011 11:44:33 -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=SyFrfs1byXFeeB9jVteTF4kZP0aI0+XHt+Ra7gCuhg0=; b=hjjSSTrRvr5yYMsMoS2gD518vEG8FVdgJAxPBS54Rq1eX9b+cmTIptiAWK2TYBJgRt KrVKFvgjENrbquyscmOx0qp83Kteg6GTnBCVEdRy13o+TN//TjhhbFp8LNeSiqI37nTN BqpfUc14paotIiYGY/x9hgGAbyX7mkShSiDOg= 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=QkhFZLfzsbQe56NHvCcmSGcoeIVtcWPw60kqxiWFgPMSCuY2qXkG7gt7/NU5D5ccjm TNKEKqE2TnMWx1TvEMba/MRB1Hr+kbPyVKBblipugcXnKi5cHkq/JqvPk+6uKwdDSEY2 AvIk8bhhac2jPNpzAhgQ9Z0gnngT0Jy7tkVaU= Original-Received: by 10.236.193.100 with SMTP id j64mr7331247yhn.294.1304880273214; Sun, 08 May 2011 11:44:33 -0700 (PDT) Original-Received: by 10.147.182.5 with HTTP; Sun, 8 May 2011 11:43:53 -0700 (PDT) In-Reply-To: <87vcxl13ci.fsf@stupidchicken.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.161.169 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:139227 Archived-At: On Sun, May 8, 2011 at 19:58, Chong Yidong wrote: > I think it's cleaner to have a separate delayed-warnings-hook and > delayed-warnings-function. =C2=A0The former should be nil by default, and > should be called prior to delayed-warnings-function. > In general, it's good to avoid putting default values in hook variables. I think that boat has sailed long ago. There are quite a few hooks with default values. And having to split a hook into a hook *and* a -function variable just to avoid the default doesn't seem too clean IMHO. =C2=A0 =C2=A0 Juanma