[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: buffer-name in find-file-hook
From: |
Joost Kremers |
Subject: |
Re: buffer-name in find-file-hook |
Date: |
3 Sep 2008 15:38:52 GMT |
User-agent: |
slrn/0.9.8.1 (Linux) |
Joe Bloggs wrote:
> (if (eq (buffer-name) (car current))
>
> the problem is that the 'if' statement never evaluates to true.
> I tried debugging in edebug, and both (buffer-name) and (car current)
> evaluate to the same string, but for some reason the 'if' statement evaluates
> to 'nil'.
check out the section on equality predicates in the elisp manual:
(info "(elisp) Equality Predicates")
--
Joost Kremers joostkremers@yahoo.com
Selbst in die Unterwelt dringt durch Spalten Licht
EN:SiS(9)