all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#64646: Master: Native compiler doesn't always compile lambda forms.
@ 2023-07-15 12:10 Alan Mackenzie
  2023-07-15 13:06 ` Eli Zaretskii
                   ` (2 more replies)
  0 siblings, 3 replies; 13+ messages in thread
From: Alan Mackenzie @ 2023-07-15 12:10 UTC (permalink / raw)
  To: 64646

In the master branch:

(i) emacs -Q
(ii) C-x b foo.el <RET>
(iii) Insert into foo.el:
    ;; -*- lexical-binding:t -*-
(iv) M-x emacs-lisp-mode
(v) Insert into foo.el:
    (defun foo () "foo doc string"
      (lambda (bar) "lambda doc string" (car bar)))
(vi) With point after the function, C-x C-e to evaluate it.

(vii) M-: (native-compile 'foo)
This returns #<subr foo>
(viii) M-: (foo)
This returns the lambda form as a byte-compiled function.  This is a bug:
it should return the lambda form as a native-compiled function.

Note: this bug is also in the emacs-29 branch.

-- 
Alan Mackenzie (Nuremberg, Germany).





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

end of thread, other threads:[~2023-11-09 10:08 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-15 12:10 bug#64646: Master: Native compiler doesn't always compile lambda forms Alan Mackenzie
2023-07-15 13:06 ` Eli Zaretskii
2023-07-15 13:20   ` Alan Mackenzie
2023-07-16  4:16 ` Michael Heerdegen
2023-07-16  9:01   ` Alan Mackenzie
2023-07-17  2:01     ` Michael Heerdegen
2023-07-17 13:17 ` Andrea Corallo
2023-07-20 12:14   ` Alan Mackenzie
2023-07-26 14:57     ` Andrea Corallo
2023-10-29 13:21       ` Alan Mackenzie
2023-11-02 17:32         ` Andrea Corallo
2023-11-08 20:59           ` Alan Mackenzie
2023-11-09 10:08             ` Andrea Corallo

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.