|
From: | Lennart Borgman (gmail) |
Subject: | Re: Toio little error information from widgets |
Date: | Wed, 07 Feb 2007 01:17:41 +0100 |
User-agent: | Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.9) Gecko/20061207 Thunderbird/1.5.0.9 Mnenhy/0.7.4.666 |
Daniel Brockman wrote:
"Lennart Borgman (gmail)" <address@hidden> writes:;;(or (eq value 'fundamental-mode) (intern-soft (concat sym-name "-hook")) (boundp (intern-soft (concat sym-name "-hook")))) ;;)This part does not make sense: (or (intern-soft (concat sym-name "-hook")) (boundp (intern-soft (boncat sym-name "-hook")))) In general, nothing that looks like this can make sense, (or FOO (boundp FOO)) because `boundp' will only ever be called if FOO is nil.
Thamnks. Sorry, I just added the "fundamental-mode" line to make it more clear when I posted. I missed to put and "add" around the following two lines.
It should be ;;(or (eq value 'fundamental-mode) ;; (and (intern-soft (concat sym-name "-hook")) (boundp (intern-soft (concat sym-name "-hook")))) ;;))Both the "fundamental-line" and the "and" line must be uncommented to get it working.
[Prev in Thread] | Current Thread | [Next in Thread] |