[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Special treatment of `term-setup-hook'
From: |
Juanma Barranquero |
Subject: |
Re: Special treatment of `term-setup-hook' |
Date: |
Thu, 7 Dec 2006 17:31:13 +0100 |
On 12/7/06, Kim F. Storm <address@hidden> 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