emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debbugs-tracker] bug#22961: closed (The read function does not support


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#22961: closed (The read function does not support a lambda argument)
Date: Wed, 09 Mar 2016 18:47:01 +0000

Your message dated Wed, 09 Mar 2016 19:46:41 +0100
with message-id <address@hidden>
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
address@hidden)


-- 
22961: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=22961
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: The read function does not support a lambda argument Date: Wed, 9 Mar 2016 10:37:28 +0200
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

--

--- End Message ---
--- Begin Message --- Subject: Re: bug#22961: The read function does not support a lambda argument Date: Wed, 09 Mar 2016 19:46:41 +0100 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.92 (gnu/linux)
Should be fixed in commit 711ca36.

Andreas.

-- 
Andreas Schwab, address@hidden
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]