GNU bug report logs - #22961
The read function does not support a lambda argument

Previous Next

Package: emacs;

Reported by: Mihai Călin Bazon <mihai.bazon <at> gmail.com>

Date: Wed, 9 Mar 2016 16:28:01 UTC

Severity: normal

Done: Andreas Schwab <schwab <at> linux-m68k.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Andreas Schwab <schwab <at> linux-m68k.org>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#22961: closed (The read function does not support a lambda
 argument)
Date: Wed, 09 Mar 2016 18:47:01 +0000
[Message part 1 (text/plain, inline)]
Your message dated Wed, 09 Mar 2016 19:46:41 +0100
with message-id <87y49ro5f2.fsf <at> linux-m68k.org>
and subject line Re: bug#22961: The read function does not support a lambda argument
has caused the debbugs.gnu.org bug report #22961,
regarding The read function does not support a lambda argument
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
22961: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=22961
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Mihai Călin Bazon <mihai.bazon <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: The read function does not support a lambda argument
Date: Wed, 9 Mar 2016 10:37:28 +0200
[Message part 3 (text/plain, inline)]
Example, I eval this in the scratch buffer (with lexical-binding set true):

    (read (let ((str "TEST")
                (pos 0)
                (prev nil))
            (lambda (ch)
              (cond
                (ch (push ch prev))
                (prev (pop prev))
                ((< pos (length str))
                 (prog1 (aref str pos)
                   (setq pos (1+ pos))))))))

According to the docs [1] an input stream can be a function.  I would
expect the above to return the symbol TEST, but instead I get an error
("end of file during parsing").

[1]
http://www.gnu.org/software/emacs/manual/html_node/elisp/Input-Streams.html#Input-Streams

-- 
Mihai Bazon,
http://lisperator.net/
[Message part 4 (text/html, inline)]
[Message part 5 (message/rfc822, inline)]
From: Andreas Schwab <schwab <at> linux-m68k.org>
To: Mihai Călin Bazon <mihai.bazon <at> gmail.com>
Cc: 22961-done <at> debbugs.gnu.org
Subject: Re: bug#22961: The read function does not support a lambda argument
Date: Wed, 09 Mar 2016 19:46:41 +0100
Should be fixed in commit 711ca36.

Andreas.

-- 
Andreas Schwab, schwab <at> linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."


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

Previous Next


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