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: How the backquote and the comma really work? Date: Tue, 11 Aug 2015 12:15:03 +0200 Message-ID: <87io8mgmhk.fsf@mbork.pl> References: <87vbebg1fs.fsf@mbork.pl> <87r3ozy9pf.fsf@web.de> <87si9ffys0.fsf@mbork.pl> <87d20jbqbj.fsf@web.de> <87pp4jfx9y.fsf@mbork.pl> <87615sxn1a.fsf@mbork.pl> <87zj318j7z.fsf@web.de> <87mvz1b16h.fsf@mbork.pl> <87k2u5azfi.fsf@mbork.pl> <87bnf5npml.fsf@web.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1439288166 18703 80.91.229.3 (11 Aug 2015 10:16:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 11 Aug 2015 10:16:06 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Aug 11 12:15:59 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 1ZP6b6-0003QR-CS for geh-help-gnu-emacs@m.gmane.org; Tue, 11 Aug 2015 12:15:56 +0200 Original-Received: from localhost ([::1]:33665 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZP6b5-0006pd-73 for geh-help-gnu-emacs@m.gmane.org; Tue, 11 Aug 2015 06:15:55 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42299) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZP6aj-0006ni-7Y for help-gnu-emacs@gnu.org; Tue, 11 Aug 2015 06:15:37 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZP6af-000369-39 for help-gnu-emacs@gnu.org; Tue, 11 Aug 2015 06:15:33 -0400 Original-Received: from mail.mojserwer.eu ([2a01:5e00:2:52::8]:60151) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZP6ae-000348-LB for help-gnu-emacs@gnu.org; Tue, 11 Aug 2015 06:15:28 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by mail.mojserwer.eu (Postfix) with ESMTP id 5F87A8F2009 for ; Tue, 11 Aug 2015 12:15:12 +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 Od05WNPZ5NPV for ; Tue, 11 Aug 2015 12:15:09 +0200 (CEST) Original-Received: from localhost (103-115.echostar.pl [213.156.103.115]) by mail.mojserwer.eu (Postfix) with ESMTPSA id 34A6A8F2004 for ; Tue, 11 Aug 2015 12:15:09 +0200 (CEST) In-reply-to: <87bnf5npml.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:106459 Archived-At: On 2015-07-21, at 23:54, Michael Heerdegen wrote: > Marcin Borkowski writes: > >> So, what about this? It seems to work. OTOH, I think it's not the most >> elegant thing possible, since there is some code duplication: mci/read >> has this: (:open-paren (mci/read-list-contents)) in a (a)case statement, >> and mci/read-list-contents has this: (:open-paren (setq next >> (mci/read-list-contents))). Something tells my mathematical mind that >> there probably exists a cleaner approach. > > Yes, that code duplication is no coincidence. > > There's a bug with your new version btw. "`" is handled differently at > top level and at higher levels. If you fix that, you will probably have > even more duplicated code. Thanks, that's my obvious mistake, though it seems that the fix is trivial. > Michael. Best, -- Marcin Borkowski http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski Faculty of Mathematics and Computer Science Adam Mickiewicz University