[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Toio little error information from widgets

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: Gecko/20061207 Thunderbird/ Mnenhy/

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.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]