From: Joost Kremers <joostkremers@yahoo.com>
To: help-gnu-emacs@gnu.org
Subject: Re: buffer-name in find-file-hook
Date: 3 Sep 2008 15:38:52 GMT [thread overview]
Message-ID: <slrngbtbpe.30t.joostkremers@j.kremers4.news.arnhem.chello.nl> (raw)
In-Reply-To: 87bpz5waro.fsf@DEBLAP1.BeNet
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)
next prev parent reply other threads:[~2008-09-03 15:38 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-03 14:43 buffer-name in find-file-hook Joe Bloggs
2008-09-03 15:38 ` Joost Kremers [this message]
2008-09-03 15:44 ` Joe Bloggs
2008-09-03 17:57 ` Nikolaj Schumacher
[not found] ` <mailman.18339.1220464668.18990.help-gnu-emacs@gnu.org>
2008-09-12 22:21 ` Joe Bloggs
2008-09-14 21:10 ` Nikolaj Schumacher
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=slrngbtbpe.30t.joostkremers@j.kremers4.news.arnhem.chello.nl \
--to=joostkremers@yahoo.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.