From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Marcin Borkowski Newsgroups: gmane.emacs.help Subject: Re: Are two symbols `equal' iff they are `eq'? Date: Sun, 09 Aug 2015 17:10:06 +0200 Message-ID: <87si7s5whd.fsf@mbork.pl> References: <20150809051452.23051.3919A296@ahiker.mooo.com> <87a8u07wce.fsf@mbork.pl> <871tfctv49.fsf@web.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1439133046 2737 80.91.229.3 (9 Aug 2015 15:10:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 9 Aug 2015 15:10:46 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Aug 09 17:10:40 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZOSFD-0000XC-SA for geh-help-gnu-emacs@m.gmane.org; Sun, 09 Aug 2015 17:10:40 +0200 Original-Received: from localhost ([::1]:55490 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZOSFD-0007DH-9m for geh-help-gnu-emacs@m.gmane.org; Sun, 09 Aug 2015 11:10:39 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45673) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZOSEt-0007A7-1c for help-gnu-emacs@gnu.org; Sun, 09 Aug 2015 11:10:22 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZOSEp-0003Qq-Qe for help-gnu-emacs@gnu.org; Sun, 09 Aug 2015 11:10:18 -0400 Original-Received: from mail.mojserwer.eu ([2a01:5e00:2:52::8]:48521) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZOSEp-0003Qf-Hx for help-gnu-emacs@gnu.org; Sun, 09 Aug 2015 11:10:15 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by mail.mojserwer.eu (Postfix) with ESMTP id D4AD26F2004 for ; Sun, 9 Aug 2015 17:10:14 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mail.mojserwer.eu Original-Received: from mail.mojserwer.eu ([127.0.0.1]) by localhost (mail.mojserwer.eu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ANEJd9mMFtcC for ; Sun, 9 Aug 2015 17:10:11 +0200 (CEST) Original-Received: from localhost (unknown [109.232.24.146]) by mail.mojserwer.eu (Postfix) with ESMTPSA id 024DC6F2003 for ; Sun, 9 Aug 2015 17:10:10 +0200 (CEST) In-reply-to: <871tfctv49.fsf@web.de> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a01:5e00:2:52::8 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:106397 Archived-At: On 2015-08-09, at 16:05, Michael Heerdegen wrote: > Marcin Borkowski writes: > >> And inspecting the code didn't help me a lot - that was the second thing >> I tried (the first being checking the docs), but I didn't understand >> it. It seems there's a case dispatch, but I didn't see the branch >> responsible for symbols. > > I guess you missed the "then" branch of the "if (depth > 10)" clause. ??? The "then" part seems to contain the "case" I mentioned. After that, there is this: tail_recurse: QUIT; if (EQ (o1, o2)) return 1; >From the capitalization I would guess that QUIT is a C macro. From its name I would guess that anything after it is irrelevant;-). Well, joking aside, I found its definition in the source; do I get it right that it quits if something like C-g happens? If yes, I'd be curious why it is here. Apart from that, it seems that I was right: `equal' for symbols just calls `eq' (C EQ, not Lisp eq, to be more precise). So I guess I found the answer. Thanks for your help! > Michael. Best, -- Marcin Borkowski http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski Faculty of Mathematics and Computer Science Adam Mickiewicz University