From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Leo Prikler Newsgroups: gmane.lisp.guile.bugs Subject: bug#47875: Elisp reader doesn't handle keywords Date: Sat, 05 Jun 2021 23:14:25 +0200 Message-ID: <479aeb7313571f434ef146f5aa3e5b120a1593ad.camel@student.tugraz.at> References: <87lf7onwcp.fsf@ya.ru> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4177"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Evolution 3.34.2 Cc: 47875@debbugs.gnu.org To: Ivan Sokolov Original-X-From: bug-guile-bounces+guile-bugs=m.gmane-mx.org@gnu.org Sat Jun 05 23:15:08 2021 Return-path: Envelope-to: guile-bugs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lpddM-0000oV-6g for guile-bugs@m.gmane-mx.org; Sat, 05 Jun 2021 23:15:08 +0200 Original-Received: from localhost ([::1]:37042 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lpddL-0001h0-6M for guile-bugs@m.gmane-mx.org; Sat, 05 Jun 2021 17:15:07 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60882) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lpddF-0001e1-Tm for bug-guile@gnu.org; Sat, 05 Jun 2021 17:15:01 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:38644) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lpddF-0000yS-M3 for bug-guile@gnu.org; Sat, 05 Jun 2021 17:15:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lpddF-0004pi-IW for bug-guile@gnu.org; Sat, 05 Jun 2021 17:15:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Leo Prikler Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Sat, 05 Jun 2021 21:15:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47875 X-GNU-PR-Package: guile Original-Received: via spool by 47875-submit@debbugs.gnu.org id=B47875.162292767218528 (code B ref 47875); Sat, 05 Jun 2021 21:15:01 +0000 Original-Received: (at 47875) by debbugs.gnu.org; 5 Jun 2021 21:14:32 +0000 Original-Received: from localhost ([127.0.0.1]:50190 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lpdcm-0004ok-54 for submit@debbugs.gnu.org; Sat, 05 Jun 2021 17:14:32 -0400 Original-Received: from mailrelay.tugraz.at ([129.27.2.202]:10138) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lpdck-0004oa-68 for 47875@debbugs.gnu.org; Sat, 05 Jun 2021 17:14:31 -0400 Original-Received: from nijino.local (62-116-34-49.adsl.highway.telekom.at [62.116.34.49]) by mailrelay.tugraz.at (Postfix) with ESMTPSA id 4FyC7Q6CGlz3wGW; Sat, 5 Jun 2021 23:14:26 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tugraz.at; s=mailrelay; t=1622927667; bh=kPdbXqaDq9TadI6Qgtu0OhDMnPq4I91olTPMtvopoqk=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=fMYEbf4dsZhXZZj4uLVH1cTlne4SyT/mMs39PylBwzFGsPt7q427WrX3Gc+zHZXGW tZRJCEmVMzLdFLuqXmezonWACAp0ZHLy0N4uRbgWQrgvWYweDHTJfatNEIWkXXkLnQ 2CjweTLe/1t60rVx+wjrjSgKuzyf82KGEZrgBcmY= In-Reply-To: <87lf7onwcp.fsf@ya.ru> X-TUG-Backscatter-control: bt4lQm5Tva3SBgCuw0EnZw X-Scanned-By: MIMEDefang 2.74 on 129.27.10.117 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guile@gnu.org List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guile-bounces+guile-bugs=m.gmane-mx.org@gnu.org Original-Sender: "bug-guile" Xref: news.gmane.io gmane.lisp.guile.bugs:10123 Archived-At: Am Samstag, den 05.06.2021, 18:51 +0300 schrieb Ivan Sokolov: > In Scheme keywords and symbols are separate entities, but in Elisp > keywords are just self-quoted symbols. I think your solution will > cause problems with Elisp algorithms that expect keywords to be > symbolp. You could define Elisp symbolp as (lambda (thing) (or (funcall (@ (guile) symbol?) thing) (funcall (@ (guile) keyword?) thing))) but perhaps there's an even faster way to check this property. The other way round – using Emacs keywords as Scheme symbols – will not perform well if you think about Emacs code calling a Scheme function that expects keywords. Regards, Leo