From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Joost Kremers Newsgroups: gmane.emacs.help Subject: Re: buffer-name in find-file-hook Date: 3 Sep 2008 15:38:52 GMT Message-ID: References: <87bpz5waro.fsf@DEBLAP1.BeNet> NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1220456721 11610 80.91.229.12 (3 Sep 2008 15:45:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 3 Sep 2008 15:45:21 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Sep 03 17:46:06 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KauVp-0004zI-Si for geh-help-gnu-emacs@m.gmane.org; Wed, 03 Sep 2008 17:43:18 +0200 Original-Received: from localhost ([127.0.0.1]:40320 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KauUq-0000os-Lu for geh-help-gnu-emacs@m.gmane.org; Wed, 03 Sep 2008 11:42:16 -0400 Original-Path: news.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!newsfeed.straub-nv.de!newsfeed01.sul.t-online.de!t-online.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 16 Original-X-Trace: individual.net Q46FekV9cSM3kkcSoKkKrwTHT8LScmOtO3/WZKfGJYP4VW6T07 Cancel-Lock: sha1:sK+Ne7uIRAt7NvpdEz7rlyECkrc= Mail-Copies-To: nobody X-Editor: Emacs of course! User-Agent: slrn/0.9.8.1 (Linux) Original-Xref: news.stanford.edu gnu.emacs.help:161887 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:57229 Archived-At: 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)