unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#19699: 25.0.50; lexical-let + mapcar cause infloop
@ 2015-01-27  8:06 Katsumi Yamaoka
  2015-01-27 23:55 ` Katsumi Yamaoka
  0 siblings, 1 reply; 2+ messages in thread
From: Katsumi Yamaoka @ 2015-01-27  8:06 UTC (permalink / raw)
  To: 19699

A Lisp form that uses `lexical-let' and `mapcar' (or `mapc'),
like this, cannot be evaluated nor byte-compiled because it
looks like causing an infinite loop[1].

(defun testing ()
  (lexical-let (var)
    (mapcar #'identity '("Hello" "World"))))

[1] There is no means to stop infloop on Cygwin Emacs, so I'm
  hard to debug it.

In GNU Emacs 25.0.50.1 (i686-pc-cygwin, GTK+ Version 3.10.9)
 of 2015-01-27 on localhost
Windowing system distributor `The Cygwin/X Project', version 11.0.11501000
Configured using:
 `configure --verbose --with-x-toolkit=gtk3'





^ permalink raw reply	[flat|nested] 2+ messages in thread

* bug#19699: 25.0.50; lexical-let + mapcar cause infloop
  2015-01-27  8:06 bug#19699: 25.0.50; lexical-let + mapcar cause infloop Katsumi Yamaoka
@ 2015-01-27 23:55 ` Katsumi Yamaoka
  0 siblings, 0 replies; 2+ messages in thread
From: Katsumi Yamaoka @ 2015-01-27 23:55 UTC (permalink / raw)
  To: 19699-done

On Tue, 27 Jan 2015 17:06:44 +0900, Katsumi Yamaoka wrote:
> A Lisp form that uses `lexical-let' and `mapcar' (or `mapc'),
> like this, cannot be evaluated nor byte-compiled because it
> looks like causing an infinite loop[1].

Oops, this is my fault that was made as the revno
<1fe087a1ab4182b2e6c1d05444461acc4e78e2d8> in cl.el.

> (defun testing ()
>   (lexical-let (var)
>     (mapcar #'identity '("Hello" "World"))))

The cause of the infinite loop is that the macro expander tries
to expand #'foo again and again.  Fixed.





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-01-27 23:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-27  8:06 bug#19699: 25.0.50; lexical-let + mapcar cause infloop Katsumi Yamaoka
2015-01-27 23:55 ` Katsumi Yamaoka

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).