emacs-devel
[Top][All Lists]
Advanced

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

Re: delq string element in ido


From: Leo
Subject: Re: delq string element in ido
Date: Sat, 26 Dec 2009 12:13:22 +0000

2009/12/26 Andreas Schwab <address@hidden>:
> Leo <address@hidden> writes:
>
>> In function `ido-kill-buffer-at-head', there's this form
>>
>>     (delq buf ido-cur-list)
>>
>> where buf is a string and ido-cur-list is a list of strings. I get this
>> by stepping through this function and checking the values of buf and
>> ido-cur-list. But delq uses `eq' to compare. Any idea why this function
>> still succeeds?
>
> Because `eq' returns t for identical Lisp objects.
>
> Andreas.

I don't quite get it.

If buf holds "str1" and ido-cur-list '("str1" "str2" "str3"), (delq
buf ido-cur-list) does not return '("str2" "str3"). But it does inside
ido-kill-buffer-at-head. That's where I am confused.

Could you explain a bit more? Thanks.

Leo




reply via email to

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