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: Special treatment of `term-setup-hook' Date: Thu, 7 Dec 2006 17:31:13 +0100 Message-ID: References: NNTP-Posting-Host: dough.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1165509104 29130 80.91.229.10 (7 Dec 2006 16:31:44 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 7 Dec 2006 16:31:44 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Dec 07 17:31:41 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by dough.gmane.org with esmtp (Exim 4.50) id 1GsM9k-0001S7-IF for ged-emacs-devel@m.gmane.org; Thu, 07 Dec 2006 17:31:32 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GsM9j-00079Z-So for ged-emacs-devel@m.gmane.org; Thu, 07 Dec 2006 11:31:32 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GsM9X-00078N-VN for emacs-devel@gnu.org; Thu, 07 Dec 2006 11:31:20 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GsM9T-00077R-Kb for emacs-devel@gnu.org; Thu, 07 Dec 2006 11:31:18 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GsM9T-00077N-HX for emacs-devel@gnu.org; Thu, 07 Dec 2006 11:31:15 -0500 Original-Received: from [66.249.92.170] (helo=ug-out-1314.google.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GsM9T-0001Z4-Eq for emacs-devel@gnu.org; Thu, 07 Dec 2006 11:31:15 -0500 Original-Received: by ug-out-1314.google.com with SMTP id j3so579185ugf for ; Thu, 07 Dec 2006 08:31:14 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=XOw2Y+IaSn74XBcPCMUCqIy6rDvuT9hQDwh/XtriF7Sw4JkZXGrgRyiTebMuqArbLEfUYd0d24m9n0TVb6XkjObt9zJtKIWFyfk3y/M/0buu0+W5toVmpiatqvxdr+3t9Vq3EZpxEIcZoTdRqg4YLFLXTEXoWYG/XX9S6opcUqs= Original-Received: by 10.82.167.5 with SMTP id p5mr157246bue.1165509073939; Thu, 07 Dec 2006 08:31:13 -0800 (PST) Original-Received: by 10.82.146.7 with HTTP; Thu, 7 Dec 2006 08:31:13 -0800 (PST) Original-To: "Kim F. Storm" In-Reply-To: Content-Disposition: inline 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:63418 Archived-At: On 12/7/06, Kim F. Storm wrote: > They are different if x is not bound. Well, of course, if you don't mind getting and error :) I expect people would write either: (if (boundp 'x) (run-hooks 'x) ; error or whatever or (and (boundp 'x) x (run-hooks 'x)) or, nowadays: (when (bound-and-true-p 'x) (run-hooks 'x)) which seem clearer for that specific purpose. > But for the case at hand, I don't see the difference either... That's what puzzles me. I don't understand why someone would add (and term-setup-hook (run-hooks 'term-setup-hook)) instead of the simpler alternative. But someone did, and I suppose he had a good reason... That's all idle thinking, of course. /L/e/k/t/u