GNU bug report logs - #47875
Elisp reader doesn't handle keywords

Previous Next

Package: guile;

Reported by: Leo Prikler <leo.prikler <at> student.tugraz.at>

Date: Sun, 18 Apr 2021 16:06:01 UTC

Severity: normal

Full log


View this message in rfc822 format

From: Leo Prikler <leo.prikler <at> student.tugraz.at>
To: Ivan Sokolov <ivan-p-sokolov <at> ya.ru>
Cc: 47875 <at> debbugs.gnu.org
Subject: bug#47875: Elisp reader doesn't handle keywords
Date: Sat, 05 Jun 2021 23:14:25 +0200
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





This bug report was last modified 4 years and 9 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.