From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Andrew John De Angelis Newsgroups: gmane.emacs.bugs Subject: bug#57819: 29.0.50; Emacs thinks native-compiled function in ielm is in `C source code' Date: Thu, 15 Sep 2022 01:10:18 -0400 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000009cfcd505e8b043f1" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40815"; mail-complaints-to="usenet@ciao.gmane.io" To: 57819@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Sep 15 09:01:39 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oYisU-000ASS-Dd for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 15 Sep 2022 09:01:38 +0200 Original-Received: from localhost ([::1]:43148 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oYisS-0007aD-Md for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 15 Sep 2022 03:01:36 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45786) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oYikA-0002VR-VE for bug-gnu-emacs@gnu.org; Thu, 15 Sep 2022 02:53:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:39903) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oYikA-0001sj-Ds for bug-gnu-emacs@gnu.org; Thu, 15 Sep 2022 02:53:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oYikA-0000y8-4R for bug-gnu-emacs@gnu.org; Thu, 15 Sep 2022 02:53:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Andrew John De Angelis Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 15 Sep 2022 06:53:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 57819 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.16632247303648 (code B ref -1); Thu, 15 Sep 2022 06:53:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 15 Sep 2022 06:52:10 +0000 Original-Received: from localhost ([127.0.0.1]:56833 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oYijG-0000wj-Mn for submit@debbugs.gnu.org; Thu, 15 Sep 2022 02:52:10 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:54576) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oYh98-0006bk-Aa for submit@debbugs.gnu.org; Thu, 15 Sep 2022 01:10:44 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41834) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oYh98-0000Vp-46 for bug-gnu-emacs@gnu.org; Thu, 15 Sep 2022 01:10:42 -0400 Original-Received: from mx0b-00364e01.pphosted.com ([148.163.139.74]:58390) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oYh95-0004KJ-8l for bug-gnu-emacs@gnu.org; Thu, 15 Sep 2022 01:10:41 -0400 Original-Received: from pps.filterd (m0167074.ppops.net [127.0.0.1]) by mx0b-00364e01.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 28F59R2K001604 for ; Thu, 15 Sep 2022 01:10:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=columbia.edu; h=mime-version : from : date : message-id : subject : to : content-type; s=pps01; bh=kXhg/po8QweWnbhrzyP6UT6+LtUEL0198lTCRNUdsec=; b=c3/mByXr4+mIqGQK3WOAWg7noN8pNX1PO6OcUop7OkGLMPKTRLDGX8C9ZmbB/wGW42mU F+o26oXrc80ZzQGY1pVQA1bj2F+qfSSvNO4i0QRr9O++VLhDb3Jc5sa0t+mVHPL0aXOl Wrj5z3Uv0UzQbCWcCH2+pkvvLtYywwxHk9c+os1FwO7DqqLrK6FBUlMlvPNvdMUXintH Z1iPXPo68o0bHJ5WUB/yaYJF+ogsF6M4tP+XbHic0V897ShERIwHNBER2b/JffL2S/sJ FS6T/rwszp+o11A06V/BPXRTChnckMuxrwH4hFiTICPPlvHAqcqnPcUAw2qz5fq8kwYr ZA== Original-Received: from sendprdmail21.cc.columbia.edu (sendprdmail21.cc.columbia.edu [128.59.72.23]) by mx0b-00364e01.pphosted.com (PPS) with ESMTPS id 3jjy825djw-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 15 Sep 2022 01:10:31 -0400 Original-Received: from mail-oo1-f69.google.com (mail-oo1-f69.google.com [209.85.161.69]) by sendprdmail21.cc.columbia.edu (8.14.7/8.14.4) with ESMTP id 28F5AV5O038343 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT) for ; Thu, 15 Sep 2022 01:10:31 -0400 Original-Received: by mail-oo1-f69.google.com with SMTP id k3-20020a4a8503000000b0047463a13402so8781234ooh.2 for ; Wed, 14 Sep 2022 22:10:31 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date; bh=kXhg/po8QweWnbhrzyP6UT6+LtUEL0198lTCRNUdsec=; b=6I+AIrbP83aMVKNq0v4Pu60huMi60f7srsN2Ijr3ry5eAMDv8dDho2LS5IGPrN4Wc9 VzhlD255t/YgFBCzL/7qZpX8yxzbfNd0Hr1y/MNslLzMaevFSYaW0x0y+ej6s2RaHjOK z6POYqlUZXSSImUEH65+oUpzCvi/bkuFQ7KsMz7jnVhyCh14h19hceZG7J/0+jw/8kdR 0Mlz99VPK+HZ+9EAn+d2Of822ST77ajRswxhZkzuNDDPGT8UK3V68oHynI+ENPe+dO4p Nu/cjHPQqZ7w6OFBmUgX5tu8THAdc0/HJp5/0I0e8GNJA747EnLrkH7JwSrqpTdN0FuD IFYg== X-Gm-Message-State: ACgBeo0ZTkAOgeslaVWL8qLVnI25RSs5jo7zWVZT2feIdo0k3P7WBuzG JuTNuwEll063UGAg992czSPP2YRuI+Ax6O1tU+qoKmTGN16fPlARGhovztvCb6v6lxGbk9344t4 mMMq4wi/L2Nj5vLdD8iJYWAjmL+etFiRl+uz0EB0= X-Received: by 2002:a05:6808:190e:b0:343:335:c0d1 with SMTP id bf14-20020a056808190e00b003430335c0d1mr3499773oib.246.1663218630422; Wed, 14 Sep 2022 22:10:30 -0700 (PDT) X-Google-Smtp-Source: AA6agR6RKAkdgjgNFyy0vJ3u8gBkCMwzuMGjgr11S1059+OWO6PjhIY5Bk+YpKfhVIPmHwySaX6SBk1hrGQ0RC7RYIE= X-Received: by 2002:a05:6808:190e:b0:343:335:c0d1 with SMTP id bf14-20020a056808190e00b003430335c0d1mr3499752oib.246.1663218629788; Wed, 14 Sep 2022 22:10:29 -0700 (PDT) X-Proofpoint-ORIG-GUID: LA1WVYTEcUts4atle2fHyQUNPjFhd1Td X-Proofpoint-GUID: LA1WVYTEcUts4atle2fHyQUNPjFhd1Td X-CU-OB: Yes X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.895,Hydra:6.0.528,FMLib:17.11.122.1 definitions=2022-09-15_02,2022-09-14_04,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1011 priorityscore=1501 mlxscore=0 impostorscore=10 lowpriorityscore=10 phishscore=0 bulkscore=10 spamscore=0 mlxlogscore=999 adultscore=0 suspectscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2208220000 definitions=main-2209150024 Received-SPF: pass client-ip=148.163.139.74; envelope-from=ajd2195@columbia.edu; helo=mx0b-00364e01.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Thu, 15 Sep 2022 02:52:03 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:242558 Archived-At: --0000000000009cfcd505e8b043f1 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable - 'emacs -Q' - 'M-x ielm' - define a function (I tried a couple different variations), like: ' (defun my-func () "simple function to test something" (message "hello"))' - 'C-h f my-func' shows "my-func is a Lisp closure." correctly - in *ielm*, run: '(native compile #'my-func)' - now, 'C-h f my-func' shows "my-func is a native-compiled Lisp function in =E2=80=98C source code=E2=80=99." This is the simplest path to showing the bug, but I've basically seen it everytime I native-compile a function I just defined. I guess Emacs (appropriately) can't find the file the function is defined in, so it assumes it is in the C source code. Thanks for all your work!! In GNU Emacs 29.0.50 (build 1, x86_64-apple-darwin20.6.0, NS appkit-2022.70 Version 11.6.7 (Build 20G630)) of 2022-09-06 built on andrews-air.lan System Description: macOS 11.6.7 Configured using: 'configure --disable-dependency-tracking --disable-silent-rules --enable-locallisppath=3D/usr/local/share/emacs/site-lisp --infodir=3D/usr/local/Cellar/emacs-plus@29/29.0.50/share/info/emacs --prefix=3D/usr/local/Cellar/emacs-plus@29/29.0.50 --with-xml2 --with-gnutls --with-native-compilation --without-compress-install --without-dbus --with-imagemagick --with-modules --with-rsvg --with-xwidgets --with-ns --disable-ns-self-contained 'CFLAGS=3D-Os -w -pipe -march=3Dnehalem -mmacosx-version-min=3D11 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk' 'CPPFLAGS=3D-I/usr/local/opt/zlib/include -I/usr/local/opt/jpeg/include -I/usr/local/opt/icu4c/include -I/usr/local/opt/openssl@1.1/include -I/usr/local/opt/readline/include -F/usr/local/Frameworks -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk' 'LDFLAGS=3D-L/usr/local/opt/zlib/lib -L/usr/local/opt/jpeg/lib -L/usr/local/opt/icu4c/lib -L/usr/local/opt/openssl@1.1/lib -L/usr/local/opt/readline/lib -L/usr/local/lib -F/usr/local/Frameworks -Wl,-headerpad_max_install_names -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk'' Configured features: ACL GIF GLIB GMP GNUTLS IMAGEMAGICK JPEG JSON LCMS2 LIBXML2 MODULES NATIVE_COMP NOTIFY KQUEUE NS PDUMPER PNG RSVG SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS WEBP XIM XWIDGETS ZLIB Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: IELM Minor modes in effect: tooltip-mode: t global-eldoc-mode: t eldoc-mode: t show-paren-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t line-number-mode: t indent-tabs-mode: t transient-mark-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message mailcap yank-media puny dired dired-loaddefs rfc822 mml mml-sec password-cache epa derived epg rfc6068 epg-config gnus-util mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils time-date shortdoc text-property-search thingatpt help-fns radix-tree cl-print ielm pp cl-loaddefs comp comp-cstr warnings icons subr-x rx cl-seq cl-macs cl-extra help-mode cl-lib comint ansi-color ring term/xterm xterm byte-opt gv bytecomp byte-compile cconv rmc iso-transl tooltip eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/ns-win ns-win ucs-normalize mule-util term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer nadvice seq simple cl-generic indonesian philippine cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget keymap hashtable-print-readable backquote threads xwidget-internal kqueue cocoa ns lcms2 multi-tty make-network-process native-compile emacs) Memory information: ((conses 16 101667 9152) (symbols 48 7849 0) (strings 32 24558 2350) (string-bytes 1 735766) (vectors 16 15364) (vector-slots 8 300818 8705) (floats 8 79 567) (intervals 56 339 0) (buffers 1000 15)) --0000000000009cfcd505e8b043f1 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


- = 'emacs -Q'
- 'M-x ielm'
- define a function (I tried a couple different= variations),
like:
' (defun my-func ()
= =C2=A0"simple fu= nction to test something"
= =C2=A0(message "hel= lo"))'
- 'C-h f my-func' shows "my-func is a Lisp closure.&= quot; correctly
- in *ielm*, run:
'(native compile #'my-func)'
- now, 'C-h = f my-func' shows "my-func is a native-compiled Lisp function in = =E2=80=98C source code=E2=80=99."

This is the simplest path to showing the bug, but= I've basically seen it
everytime I native-compile a function I just defined.= I guess Emacs
(appropriately) can't find the file the function is defined in= , so it
assumes it is in the C source code.
Thanks for all your work!!

In GNU Emacs 29.0.50 (build = 1, x86_64-apple-darwin20.6.0, NS
appkit-2022.70 Version 11.6.7 (Build 20G630)) of= 2022-09-06 built on
andrews-air.lan
System Description:=C2=A0=C2=A0m= acOS 11.6.7

C= onfigured using:
'configure --disable-dependency-tracking --disable-silent-ru= les
--= enable-locallisppath=3D/usr/local/share/emacs/site-lisp
--infodir=3D/usr/local/Ce= llar/emacs-plus@29/29.0.50/share/info/emacs
--prefix=3D/usr/local/Cellar/emacs-pl= us@29/29.0.50 --with-xml2
--with-gnutls --with-native-compilation --without-compr= ess-install
--without-dbus --with-imagemagick --with-modules --with-rsvg--with-xwidget= s --with-ns --disable-ns-self-contained 'CFLAGS=3D-Os -w
-pipe -march=3Dnehal= em -mmacosx-version-min=3D11
-isysroot/Library/Developer/CommandLineTools/SDKs/Ma= cOSX11.sdk'
'CPPFLAGS=3D-I/usr/local/opt/zlib/include -I/usr/local/opt/jp= eg/include
-I/usr/local/opt/icu4c/include -I/usr/local/opt/openssl@1.1/include
-I/usr/l= ocal/opt/readline/include -F/usr/local/Frameworks

-isysroot/Library/Developer/Com= mandLineTools/SDKs/MacOSX11.sdk'
'LDFLAGS=3D-L/usr/local/opt/zlib/lib -L/= usr/local/opt/jpeg/lib
-L/usr/local/opt/icu4c/lib -L/usr/local/opt/openssl@1.1/li= b
-L/u= sr/local/opt/readline/lib -L/usr/local/lib -F/usr/local/Frameworks-Wl,-headerpad= _max_install_names
-isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk= ''

Co= nfigured features:
ACL GIF GLIB GMP GNUTLS IMAGEMAGICK JPEG JSON LCMS2 LIBXML2 MO= DULES
= NATIVE_COMP NOTIFY KQUEUE NS PDUMPER PNG RSVG SQLITE3 THREADS TIFFTOOLKIT_SCROLL= _BARS WEBP XIM XWIDGETS ZLIB

Important settings:
=C2=A0<= /span>=C2=A0value of $LANG: e= n_US.UTF-8
=C2=A0=C2=A0locale-coding-system: utf-8-unix
Major mode: IELM

Minor modes in e= ffect:
=C2=A0=C2=A0tooltip-mode: t
=C2=A0=C2=A0global-e= ldoc-mode: t
=C2=A0=C2=A0eldoc-mode: t
=C2=A0=C2=A0show= -paren-mode: t
=C2=A0=C2=A0electric-indent-mode: t
=C2=A0=C2= =A0mouse-wheel-mode: t
=C2=A0= =C2=A0tool-bar-mode: t
=
=C2=A0=C2=A0menu-bar-mode: t
=C2=A0=C2=A0file-name-shadow-mod= e: t
=C2=A0=C2=A0global-font-lock-mode: t
=C2=A0=C2=A0f= ont-lock-mode: t
=C2=A0=C2=A0blink-cursor-mode: t
=C2=A0=C2= =A0line-number-mode: t
=C2=A0= =C2=A0indent-tabs-mode: t
=C2=A0
=C2=A0transient-mark-mode: t
= =C2=A0=C2=A0auto-compo= sition-mode: t
=C2=A0=C2=A0auto-encryption-mode: t
=C2=A0=C2= =A0auto-compression-mode: t

Load-path shadows:
None found.

Features:
(shadow sort mail-extr emacsbug messa= ge mailcap yank-media puny dired
dired-loaddefs rfc822 mml mml-sec password-cache= epa derived epg rfc6068
epg-config gnus-util mm-decode mm-bodies mm-encode mail-= parse rfc2231
mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums=
= mm-ut= il mail-prsvr mail-utils time-date shortdoc text-property-search
thingatpt help-f= ns radix-tree cl-print ielm pp cl-loaddefs comp
comp-cstr warnings icons subr-x r= x cl-seq cl-macs cl-extra help-mode
cl-lib comint ansi-color ring term/xterm xter= m byte-opt gv bytecomp
byte-compile cconv rmc iso-transl tooltip eldoc paren elec= tric uniquify
ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/ns-win n= s-win
= ucs-normalize mule-util term/common-win tool-bar dnd fontset imageregexp-opt fri= nge tabulated-list replace newcomment text-mode lisp-mode
prog-mode register pa= ge tab-bar menu-bar rfn-eshadow isearch easymenu
timer select scroll-bar mouse ji= t-lock font-lock syntax font-core
term/tty-colors frame minibuffer nadvice seq si= mple cl-generic
indonesian philippine cham georgian utf-8-lang misc-lang vietname= se
tib= etan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek=
romanian slo= vak czech european ethiopic indian cyrillic chinese
composite emoji-zwj charscrip= t charprop case-table epa-hook
jka-cmpr-hook help abbrev obarray oclosure cl-prel= oaded button loaddefs
faces cus-face macroexp files window text-properties overla= y sha1 md5
base64 format env code-pages mule custom widget keymap
hashtable-print-reada= ble backquote threads xwidget-internal kqueue cocoa
ns lcms2 multi-tty make-netwo= rk-process native-compile emacs)

Memory information:
((conses 16 101667 9152)
(symbols 48 7849 0)
(string= s 32 24558 2350)

(string-bytes 1 735766)
(vectors 16 15364)
(vector-slots 8 300818 8705)
(floats 8 = 79 567)

(intervals 56 339 0)
(buffers 1000 15))
--0000000000009cfcd505e8b043f1--