From unknown Fri Jun 20 07:13:01 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#58314 <58314@debbugs.gnu.org> To: bug#58314 <58314@debbugs.gnu.org> Subject: Status: 29.0.50; C-h k with native compilation not conclusive Reply-To: bug#58314 <58314@debbugs.gnu.org> Date: Fri, 20 Jun 2025 14:13:01 +0000 retitle 58314 29.0.50; C-h k with native compilation not conclusive reassign 58314 emacs submitter 58314 Jean Louis severity 58314 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 05 15:29:54 2022 Received: (at submit) by debbugs.gnu.org; 5 Oct 2022 19:29:54 +0000 Received: from localhost ([127.0.0.1]:58125 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ogA5Z-0001I5-C0 for submit@debbugs.gnu.org; Wed, 05 Oct 2022 15:29:54 -0400 Received: from lists.gnu.org ([209.51.188.17]:50920) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ogA5W-0001Hw-HY for submit@debbugs.gnu.org; Wed, 05 Oct 2022 15:29:51 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53556) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ogA5V-0002r6-72 for bug-gnu-emacs@gnu.org; Wed, 05 Oct 2022 15:29:49 -0400 Received: from stw1.rcdrun.com ([217.170.207.13]:50675) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ogA5R-0006q3-7Q for bug-gnu-emacs@gnu.org; Wed, 05 Oct 2022 15:29:48 -0400 Received: from localhost ([::ffff:154.227.156.251]) (AUTH: PLAIN admin, TLS: TLS1.3,256bits,ECDHE_RSA_AES_256_GCM_SHA384) by stw1.rcdrun.com with ESMTPSA id 00000000000BA494.00000000633DDB27.00007BEF; Wed, 05 Oct 2022 12:29:43 -0700 From: Jean Louis To: bug-gnu-emacs@gnu.org Subject: 29.0.50; C-h k with native compilation not conclusive Date: Wed, 05 Oct 2022 22:26:20 +0300 Message-ID: <86czb65axv.fsf@protected.rcdrun.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=217.170.207.13; envelope-from=admin@protected.rcdrun.com; helo=stw1.rcdrun.com X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.249, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.1 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.1 (--) I remember with byte compiling I was never lead to go into byte compiled file when I was inspecting commands with C-h k With native compilation, I do: C-h k and I get this: v n runs the command cf-people-view-notes (found in rcd-db-people-mode-map), which is an interactive native-compiled Lisp function in =E2=80=98../eln-cache/29.0.50-44cd31c8/rcd-cf-a9476332-a313d4ff.eln=E2=80= =99. It is bound to v n. (cf-people-view-notes &optional ID) View notes for people ID. However, what I really expect is that instead of byte compiled file, that I am shown the source file, and that I become able to click on the link to come to the function. Instead if I click on the link: =E2=80=98../eln-cache/29.0.50-44cd31c8/rcd-cf-a9476332-a313d4ff.eln=E2=80= =99. I can just see error: Debugger entered--Lisp error: (wrong-type-argument stringp nil) locate-file(nil ("/home/data1/protected/.emacs.d/elpa/hyperbole-8.0...." = "/home/data1/protected/.emacs.d/elpa/hyperbole-8.0...." "~/Programming/git/= emacs-libpq/" "~/Programming/git/emacs-libvterm" "/usr/locals/share/emacs/s= ite-lisp" "/home/data1/protected/Programming/git/ledger-mode" "/home/data1/= protected/Programming/emacs-lisp/my-sy..." "/home/data1/protected/Programmi= ng/emacs-lisp" "/home/data1/protected/.emacs.d/packages" "/home/data1/prote= cted/Programming/git/racket-mode" "/home/data1/protected/.emacs.d/Drew Adam= s" "/usr/share/festival" "/home/data1/protected/.emacs.d/elpa/2048-game-202= 0..." "/home/data1/protected/.emacs.d/elpa/a-20210929.151..." "/home/data1/= protected/.emacs.d/elpa/adoc-mode-2016..." "/home/data1/protected/.emacs.d/= elpa/afternoon-them..." "/home/data1/protected/.emacs.d/elpa/aggressive-com= ..." "/home/data1/protected/.emacs.d/elpa/aggressive-ind..." "/home/data1/p= rotected/.emacs.d/elpa/ahungry-theme-..." "/home/data1/protected/.emacs.d/e= lpa/aircon-theme-0..." "/home/data1/protected/.emacs.d/elpa/alect-themes-0.= .." "/home/data1/protected/.emacs.d/elpa/ample-theme-0...." "/home/data1/pr= otected/.emacs.d/elpa/anaphora-20180..." "/home/data1/protected/.emacs.d/el= pa/annotate-20210..." "/home/data1/protected/.emacs.d/elpa/annotation-202..= ." "/home/data1/protected/.emacs.d/elpa/apropospriate-..." "/home/data1/pro= tected/.emacs.d/elpa/ascii-art-to-u..." "/home/data1/protected/.emacs.d/elp= a/auctex-13.1.3/" "/home/data1/protected/.emacs.d/elpa/auctex-13.1.3" "/hom= e/data1/protected/.emacs.d/elpa/bbdb-20200928...." "/home/data1/protected/.= emacs.d/elpa/blimp-20180903..." "/home/data1/protected/.emacs.d/elpa/boxquo= te-2.2" "/home/data1/protected/.emacs.d/elpa/boxy-1.1.1" "/home/data1/prote= cted/.emacs.d/elpa/buc-2.0.0" "/home/data1/protected/.emacs.d/elpa/captain-= 1.0.3" "/home/data1/protected/.emacs.d/elpa/company-0.9.13" "/home/data1/pr= otected/.emacs.d/elpa/context-colori..." "/home/data1/protected/.emacs.d/el= pa/corfu-0.26" "/home/data1/protected/.emacs.d/elpa/cpupower-1.0.5" "/home/= data1/protected/.emacs.d/elpa/crdt-0.3.0" "/home/data1/protected/.emacs.d/e= lpa/csv-mode-1.21" "/home/data1/protected/.emacs.d/elpa/cyberpunk-them..." = "/home/data1/protected/.emacs.d/elpa/dash-functiona..." "/home/data1/protec= ted/.emacs.d/elpa/dictionary-202..." "/home/data1/protected/.emacs.d/elpa/c= onnection-201..." "/home/data1/protected/.emacs.d/elpa/dired-du-0.5.2" "/ho= me/data1/protected/.emacs.d/elpa/dired-launch-2..." "/home/data1/protected/= .emacs.d/elpa/dired-rsync-20..." "/home/data1/protected/.emacs.d/elpa/dmenu= -20190908..." "/home/data1/protected/.emacs.d/elpa/double-opt-in-..." ...) = (".so" ".so.gz" ".el" ".el.gz")) find-library-name("/home/data1/protected/.emacs.d/eln-cache/29.0.50-4...") find-function-search-for-symbol(cf-people-view-notes nil "/home/data1/pro= tected/.emacs.d/eln-cache/29.0.50-4...") help-function-def--button-function(cf-people-view-notes "/home/data1/prot= ected/.emacs.d/eln-cache/29.0.50-4..." nil) help-do-xref(nil help-function-def--button-function (cf-people-view-notes= "/home/data1/protected/.emacs.d/eln-cache/29.0.50-4...")) help-button-action(#) button-activate(# nil) push-button(137) funcall-interactively(push-button 137) command-execute(push-button) recursive-edit() (unwind-protect (recursive-edit) (if (get-buffer-window read-buffer) (pro= gn (setq new-value (buffer-substring (point-min) (point-max))) (kill-buffer= read-buffer)))) (save-excursion (switch-to-buffer read-buffer) (erase-buffer) (set-buffer= read-buffer) (if mode (if (fboundp mode) (funcall mode) (rcd-message "You = need `%s' mode" (symbol-name mode))) (text-mode)) (while minor-modes (let (= (minor-mode (car-safe (prog1 minor-modes (setq minor-modes ...))))) (if min= or-mode (if (fboundp (intern minor-mode)) (funcall (intern minor-mode)) (rc= d-message "You need `%s' minor mode" (symbol-name minor-mode)))))) (setq rc= d-current-table table) (setq rcd-current-column column) (setq rcd-current-t= able-id table-id) (local-set-key (kbd "") 'exit-recursive-edit) (if key= map (progn (use-local-map keymap))) (if input-method (progn (set-input-meth= od input-method))) (if rcd-word-processing (progn (rcd-word-processing))) (= setq header-line-format (format "%s =E2=9E=9C Finish editing with or C-M-c = or F8" title)) (if (stringp value) (insert value)) (rcd-highlight-list high= light-list) (goto-char (or point (point-min))) (rcd-speak "You may quit the= buffer with Meta Control C") (message "When you're done editing press C-M-= c or F8 to cont...") (setq eval-expression-debug-on-error nil) (unwind-prot= ect (recursive-edit) (if (get-buffer-window read-buffer) (progn (setq new-v= alue (buffer-substring (point-min) (point-max))) (kill-buffer read-buffer))= )) (setq eval-expression-debug-on-error t) (switch-to-buffer this-buffer) n= ew-value) (let ((this-buffer (buffer-name)) (title (or title "")) (value (or value = "")) (new-value value) (point (cond ((numberp place) place) ((listp place) = (cdr (assoc "place" place))))) (table (if (listp place) (progn (cdr (assoc = "table" place))))) (column (if (listp place) (progn (cdr (assoc "column" pl= ace))))) (table-id (if (listp place) (progn (cdr (assoc "table-id" place)))= )) (_ (message "EDIT %s" place)) (_ (message "%s" place)) (read-buffer (if = buffer-name (generate-new-buffer buffer-name) (generate-new-buffer "*edit-s= tring*")))) (save-excursion (switch-to-buffer read-buffer) (erase-buffer) (= set-buffer read-buffer) (if mode (if (fboundp mode) (funcall mode) (rcd-mes= sage "You need `%s' mode" (symbol-name mode))) (text-mode)) (while minor-mo= des (let ((minor-mode (car-safe (prog1 minor-modes ...)))) (if minor-mode (= if (fboundp (intern minor-mode)) (funcall (intern minor-mode)) (rcd-message= "You need `%s' minor mode" (symbol-name minor-mode)))))) (setq rcd-current= -table table) (setq rcd-current-column column) (setq rcd-current-table-id t= able-id) (local-set-key (kbd "") 'exit-recursive-edit) (if keymap (prog= n (use-local-map keymap))) (if input-method (progn (set-input-method input-= method))) (if rcd-word-processing (progn (rcd-word-processing))) (setq head= er-line-format (format "%s =E2=9E=9C Finish editing with or C-M-c or F8" ti= tle)) (if (stringp value) (insert value)) (rcd-highlight-list highlight-lis= t) (goto-char (or point (point-min))) (rcd-speak "You may quit the buffer w= ith Meta Control C") (message "When you're done editing press C-M-c or F8 t= o cont...") (setq eval-expression-debug-on-error nil) (unwind-protect (recu= rsive-edit) (if (get-buffer-window read-buffer) (progn (setq new-value (buf= fer-substring (point-min) (point-max))) (kill-buffer read-buffer)))) (setq = eval-expression-debug-on-error t) (switch-to-buffer this-buffer) new-value)) read-from-buffer(";;; rcd-cf.el --- CF or Central Files functions fo..." = "vc_value ID 37799" text-mode nil nil (("table" . "vc") ("column" . "vc_val= ue") ("table-id" . 37799) ("place" . 0))) rcd-db-edit-entry("vc" "vc_value" 37799) rcd-db-tabulated-edit-value() funcall-interactively(rcd-db-tabulated-edit-value) command-execute(rcd-db-tabulated-edit-value) recursive-edit() (unwind-protect (recursive-edit) (if (get-buffer-window read-buffer) (pro= gn (setq new-value (buffer-substring (point-min) (point-max))) (kill-buffer= read-buffer)))) (save-excursion (switch-to-buffer read-buffer) (erase-buffer) (set-buffer= read-buffer) (if mode (if (fboundp mode) (funcall mode) (rcd-message "You = need `%s' mode" (symbol-name mode))) (text-mode)) (while minor-modes (let (= (minor-mode (car-safe (prog1 minor-modes (setq minor-modes ...))))) (if min= or-mode (if (fboundp (intern minor-mode)) (funcall (intern minor-mode)) (rc= d-message "You need `%s' minor mode" (symbol-name minor-mode)))))) (setq rc= d-current-table table) (setq rcd-current-column column) (setq rcd-current-t= able-id table-id) (local-set-key (kbd "") 'exit-recursive-edit) (if key= map (progn (use-local-map keymap))) (if input-method (progn (set-input-meth= od input-method))) (if rcd-word-processing (progn (rcd-word-processing))) (= setq header-line-format (format "%s =E2=9E=9C Finish editing with or C-M-c = or F8" title)) (if (stringp value) (insert value)) (rcd-highlight-list high= light-list) (goto-char (or point (point-min))) (rcd-speak "You may quit the= buffer with Meta Control C") (message "When you're done editing press C-M-= c or F8 to cont...") (setq eval-expression-debug-on-error nil) (unwind-prot= ect (recursive-edit) (if (get-buffer-window read-buffer) (progn (setq new-v= alue (buffer-substring (point-min) (point-max))) (kill-buffer read-buffer))= )) (setq eval-expression-debug-on-error t) (switch-to-buffer this-buffer) n= ew-value) (let ((this-buffer (buffer-name)) (title (or title "")) (value (or value = "")) (new-value value) (point (cond ((numberp place) place) ((listp place) = (cdr (assoc "place" place))))) (table (if (listp place) (progn (cdr (assoc = "table" place))))) (column (if (listp place) (progn (cdr (assoc "column" pl= ace))))) (table-id (if (listp place) (progn (cdr (assoc "table-id" place)))= )) (_ (message "EDIT %s" place)) (_ (message "%s" place)) (read-buffer (if = buffer-name (generate-new-buffer buffer-name) (generate-new-buffer "*edit-s= tring*")))) (save-excursion (switch-to-buffer read-buffer) (erase-buffer) (= set-buffer read-buffer) (if mode (if (fboundp mode) (funcall mode) (rcd-mes= sage "You need `%s' mode" (symbol-name mode))) (text-mode)) (while minor-mo= des (let ((minor-mode (car-safe (prog1 minor-modes ...)))) (if minor-mode (= if (fboundp (intern minor-mode)) (funcall (intern minor-mode)) (rcd-message= "You need `%s' minor mode" (symbol-name minor-mode)))))) (setq rcd-current= -table table) (setq rcd-current-column column) (setq rcd-current-table-id t= able-id) (local-set-key (kbd "") 'exit-recursive-edit) (if keymap (prog= n (use-local-map keymap))) (if input-method (progn (set-input-method input-= method))) (if rcd-word-processing (progn (rcd-word-processing))) (setq head= er-line-format (format "%s =E2=9E=9C Finish editing with or C-M-c or F8" ti= tle)) (if (stringp value) (insert value)) (rcd-highlight-list highlight-lis= t) (goto-char (or point (point-min))) (rcd-speak "You may quit the buffer w= ith Meta Control C") (message "When you're done editing press C-M-c or F8 t= o cont...") (setq eval-expression-debug-on-error nil) (unwind-protect (recu= rsive-edit) (if (get-buffer-window read-buffer) (progn (setq new-value (buf= fer-substring (point-min) (point-max))) (kill-buffer read-buffer)))) (setq = eval-expression-debug-on-error t) (switch-to-buffer this-buffer) new-value)) read-from-buffer(";;; rcd-cf.el --- CF or Central Files functions fo..." = "vc_value ID 81784" text-mode nil nil (("table" . "vc") ("column" . "vc_val= ue") ("table-id" . 81784) ("place" . 0))) rcd-db-edit-entry("vc" "vc_value" 81784) rcd-db-tabulated-edit-value() funcall-interactively(rcd-db-tabulated-edit-value) command-execute(rcd-db-tabulated-edit-value) In GNU Emacs 29.0.50 (build 3, x86_64-pc-linux-gnu, X toolkit, cairo version 1.17.6, Xaw3d scroll bars) of 2022-10-05 built on protected.rcdrun.com Repository revision: 9449e0740cd97bbcdbaeb4713dc2dd51e65994fd Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.12101004 System Description: Parabola GNU/Linux-libre Configured using: 'configure --with-x-toolkit=3Dlucid --with-native-compilation' Configured features: ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG JSON LCMS2 LIBOTF LIBSYSTEMD LIBXML2 M17N_FLT MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS WEBP X11 XAW3D XDBE XIM XINPUT2 XPM LUCID ZLIB Important settings: value of $LC_ALL: en_US.UTF-8 value of $LANG: de_DE.UTF-8 value of $XMODIFIERS: @im=3Dexwm-xim locale-coding-system: utf-8-unix Major mode: Lisp Interaction 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 text-property-search time-date mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader cl-loaddefs comp comp-cstr warnings icons subr-x rx cl-seq cl-macs gv cl-extra help-mode bytecomp byte-compile cconv cl-lib sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils rmc iso-transl tooltip eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/x-win x-win term/common-win x-dnd 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 dbusbind inotify lcms2 dynamic-setting system-font-setting font-render-setting cairo x-toolkit xinput2 x multi-tty make-network-process native-compile emacs) Memory information: ((conses 16 79577 9313) (symbols 48 7181 0) (strings 32 20692 1256) (string-bytes 1 616498) (vectors 16 16108) (vector-slots 8 280250 10874) (floats 8 29 30) (intervals 56 257 0) (buffers 1000 12)) --=20 Jean Take action in Free Software Foundation campaigns: https://www.fsf.org/campaigns In support of Richard M. Stallman https://stallmansupport.org/ From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 05 15:46:40 2022 Received: (at 58314) by debbugs.gnu.org; 5 Oct 2022 19:46:40 +0000 Received: from localhost ([127.0.0.1]:58136 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ogALn-0001jn-ME for submit@debbugs.gnu.org; Wed, 05 Oct 2022 15:46:39 -0400 Received: from eggs.gnu.org ([209.51.188.92]:57042) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ogALl-0001jY-Cb for 58314@debbugs.gnu.org; Wed, 05 Oct 2022 15:46:38 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:49442) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ogALg-0001SS-0D; Wed, 05 Oct 2022 15:46:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=5GIOs1bbSeL8z2Ca2wZL50g1gWPOF3H4hxN9Ol0NbPs=; b=dIqxX702K3LhL0t4r60Z azcHCBeXuznzrVavmUehk236x3t4u5LA5+NOWRJM9DSYYfhoEDx0Wv+/D++jHKf6JPyJqIN4QVlNO za3yACeJkHDMM6IR+V6UoJBhMuJ1xk0/QUDwEBNxcsmhPrqnDGCIN4ZUm4z1lq87WmS09kkq4Bq2Q ughLC49OE8Y76Jj/OTGh2AYBjRBnYRJdmH/XeUg/1YZKnGzj/IQph9TDz3PYNztJ7+vC/fF/eU/W0 AjwE21V4avsUhDtwss8FyNMgdwgBF8NXZnjqr3VkgVgQ+kdhTQi99M+k9Mnfvbo7WazJzay6opcbc +3im+PSNYG/2dw==; Received: from [87.69.77.57] (port=2759 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ogAKy-0006OC-GD; Wed, 05 Oct 2022 15:45:57 -0400 Date: Wed, 05 Oct 2022 22:45:41 +0300 Message-Id: <83bkqqrr4q.fsf@gnu.org> From: Eli Zaretskii To: Jean Louis , Stefan Monnier In-Reply-To: <86czb65axv.fsf@protected.rcdrun.com> (message from Jean Louis on Wed, 05 Oct 2022 22:26:20 +0300) Subject: Re: bug#58314: 29.0.50; C-h k with native compilation not conclusive References: <86czb65axv.fsf@protected.rcdrun.com> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 58314 Cc: 58314@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Jean Louis > Date: Wed, 05 Oct 2022 22:26:20 +0300 > > > I remember with byte compiling I was never lead to go into byte compiled > file when I was inspecting commands with C-h k > > With native compilation, I do: C-h k and I get this: > > v n runs the command cf-people-view-notes (found in > rcd-db-people-mode-map), which is an interactive native-compiled Lisp > function in > ‘../eln-cache/29.0.50-44cd31c8/rcd-cf-a9476332-a313d4ff.eln’. > > It is bound to v n. I cannot reproduce this. I don't have rcd-cf.el here, of course, but I tested with "C-h k n" in Help mode, and I see the expected: n runs the command help-goto-next-page (found in help-mode-map), which is an interactive native-compiled Lisp function in ‘help-mode.el’. So this is somehow related to your own files. Maybe it's because how we store the doc strings or something? Stefan, any ideas? From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 05 15:51:21 2022 Received: (at 58314) by debbugs.gnu.org; 5 Oct 2022 19:51:21 +0000 Received: from localhost ([127.0.0.1]:58147 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ogAQL-0001v2-1J for submit@debbugs.gnu.org; Wed, 05 Oct 2022 15:51:21 -0400 Received: from stw1.rcdrun.com ([217.170.207.13]:54595) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ogAQI-0001tG-RX for 58314@debbugs.gnu.org; Wed, 05 Oct 2022 15:51:19 -0400 Received: from localhost ([::ffff:154.227.156.251]) (AUTH: PLAIN admin, TLS: TLS1.3,256bits,ECDHE_RSA_AES_256_GCM_SHA384) by stw1.rcdrun.com with ESMTPSA id 00000000000BA40A.00000000633DE036.00007EB5; Wed, 05 Oct 2022 12:51:18 -0700 Date: Wed, 5 Oct 2022 22:50:32 +0300 From: Jean Louis To: Eli Zaretskii Subject: Re: bug#58314: 29.0.50; C-h k with native compilation not conclusive Message-ID: References: <86czb65axv.fsf@protected.rcdrun.com> <83bkqqrr4q.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: <83bkqqrr4q.fsf@gnu.org> User-Agent: Mutt/2.2.7+37 (a90f69b) (2022-09-02) X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 58314 Cc: 58314@debbugs.gnu.org, Stefan Monnier X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) * Eli Zaretskii [2022-10-05 22:47]: > > From: Jean Louis > > Date: Wed, 05 Oct 2022 22:26:20 +0300 > >=20 > >=20 > > I remember with byte compiling I was never lead to go into byte compiled > > file when I was inspecting commands with C-h k > >=20 > > With native compilation, I do: C-h k and I get this: > >=20 > > v n runs the command cf-people-view-notes (found in > > rcd-db-people-mode-map), which is an interactive native-compiled Lisp > > function in > > =E2=80=98../eln-cache/29.0.50-44cd31c8/rcd-cf-a9476332-a313d4ff.eln=E2= =80=99. > >=20 > > It is bound to v n. >=20 > I cannot reproduce this. I don't have rcd-cf.el here, of course, but > I tested with "C-h k n" in Help mode, and I see the expected: >=20 > n runs the command help-goto-next-page (found in help-mode-map), which > is an interactive native-compiled Lisp function in =E2=80=98help-mode.e= l=E2=80=99. >=20 > So this is somehow related to your own files. Maybe it's because how > we store the doc strings or something? Stefan, any ideas? 1. emacs -Q 2. {C-x C-f my-file.el RET} 3. write in my-file.el: (defun my-function () (message "Hello")) 4. {M-x emacs-lisp-native-compile-and-load RET} 5. {C-h f my-function RET} 6. Then I see: my-function is a native-compiled Lisp function in =E2=80=98~/.emacs.d/eln-cache/29.0.50-44cd31c8/my-file-fb862712-14785989.el= n=E2=80=99. (my-function) Not documented. But I am expecting to see link to my-file.el and not to compiled file. And if I click on the link: =E2=80=98~/.emacs.d/eln-cache/29.0.50-44cd31c8/my-file-fb862712-14785989.el= n=E2=80=99. then I get: Debugger entered--Lisp error: (wrong-type-argument stringp nil) locate-file(nil ("/home/data1/protected/Programming/Software/emacs/l..." = "/home/data1/protected/Programming/Software/emacs/l..." "/home/data1/protec= ted/Programming/Software/emacs/l..." "/home/data1/protected/Programming/Sof= tware/emacs/l..." "/home/data1/protected/Programming/Software/emacs/l..." "= /home/data1/protected/Programming/Software/emacs/l..." "/home/data1/protect= ed/Programming/Software/emacs/l..." "/home/data1/protected/Programming/Soft= ware/emacs/l..." "/home/data1/protected/Programming/Software/emacs/l..." "/= home/data1/protected/Programming/Software/emacs/l..." "/home/data1/protecte= d/Programming/Software/emacs/l..." "/home/data1/protected/Programming/Softw= are/emacs/l..." "/home/data1/protected/Programming/Software/emacs/l..." "/h= ome/data1/protected/Programming/Software/emacs/l..." "/home/data1/protected= /Programming/Software/emacs/l..." "/home/data1/protected/Programming/Softwa= re/emacs/l..." "/home/data1/protected/Programming/Software/emacs/l..." "/ho= me/data1/protected/Programming/Software/emacs/l..." "/home/data1/protected/= Programming/Software/emacs/l..." "/home/data1/protected/Programming/Softwar= e/emacs/l..." "/home/data1/protected/Programming/Software/emacs/l..." "/hom= e/data1/protected/Programming/Software/emacs/l..." "/home/data1/protected/P= rogramming/Software/emacs/l..." "/home/data1/protected/Programming/Software= /emacs/l...") (".so" ".so.gz" ".el" ".el.gz")) find-library-name("/home/data1/protected/.emacs.d/eln-cache/29.0.50-4...") find-function-search-for-symbol(my-function nil "/home/data1/protected/.e= macs.d/eln-cache/29.0.50-4...") help-function-def--button-function(my-function "/home/data1/protected/.em= acs.d/eln-cache/29.0.50-4..." nil) help-do-xref(nil help-function-def--button-function (my-function "/home/d= ata1/protected/.emacs.d/eln-cache/29.0.50-4...")) help-button-action(#) button-activate(# nil) push-button(54) funcall-interactively(push-button 54) command-execute(push-button) -- Jean Take action in Free Software Foundation campaigns: https://www.fsf.org/campaigns In support of Richard M. Stallman https://stallmansupport.org/ From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 05 15:55:55 2022 Received: (at 58314) by debbugs.gnu.org; 5 Oct 2022 19:55:55 +0000 Received: from localhost ([127.0.0.1]:58152 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ogAUl-00024h-0R for submit@debbugs.gnu.org; Wed, 05 Oct 2022 15:55:55 -0400 Received: from stw1.rcdrun.com ([217.170.207.13]:32849) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ogAUh-00024N-70 for 58314@debbugs.gnu.org; Wed, 05 Oct 2022 15:55:54 -0400 Received: from localhost ([::ffff:154.227.156.251]) (AUTH: PLAIN admin, TLS: TLS1.3,256bits,ECDHE_RSA_AES_256_GCM_SHA384) by stw1.rcdrun.com with ESMTPSA id 00000000000BA40A.00000000633DE142.00007F27; Wed, 05 Oct 2022 12:55:45 -0700 Date: Wed, 5 Oct 2022 22:55:35 +0300 From: Jean Louis To: 58314@debbugs.gnu.org Subject: Re: bug#58314: 29.0.50; C-h k with native compilation not conclusive Message-ID: References: <86czb65axv.fsf@protected.rcdrun.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: <86czb65axv.fsf@protected.rcdrun.com> User-Agent: Mutt/2.2.7+37 (a90f69b) (2022-09-02) X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 58314 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) I think that xref get broken related to this. How to reproduce: 1. emacs -Q 2. open my-file.el 3. Write: (defun my-function () (my-other-function) (message "Hello")) (defun my-other-function () (message "I am other function")) 4. M-x emacs-lisp-native-compile-and-load 5. Put cursor or (my-other-function) 6. M-. for xref-find-definition 6. Error: Debugger entered--Lisp error: (wrong-type-argument stringp nil) locate-file(nil ("/home/data1/protected/Programming/Software/emacs/l..." = "/home/data1/protected/Programming/Software/emacs/l..." "/home/data1/protec= ted/Programming/Software/emacs/l..." "/home/data1/protected/Programming/Sof= tware/emacs/l..." "/home/data1/protected/Programming/Software/emacs/l..." "= /home/data1/protected/Programming/Software/emacs/l..." "/home/data1/protect= ed/Programming/Software/emacs/l..." "/home/data1/protected/Programming/Soft= ware/emacs/l..." "/home/data1/protected/Programming/Software/emacs/l..." "/= home/data1/protected/Programming/Software/emacs/l..." "/home/data1/protecte= d/Programming/Software/emacs/l..." "/home/data1/protected/Programming/Softw= are/emacs/l..." "/home/data1/protected/Programming/Software/emacs/l..." "/h= ome/data1/protected/Programming/Software/emacs/l..." "/home/data1/protected= /Programming/Software/emacs/l..." "/home/data1/protected/Programming/Softwa= re/emacs/l..." "/home/data1/protected/Programming/Software/emacs/l..." "/ho= me/data1/protected/Programming/Software/emacs/l..." "/home/data1/protected/= Programming/Software/emacs/l..." "/home/data1/protected/Programming/Softwar= e/emacs/l..." "/home/data1/protected/Programming/Software/emacs/l..." "/hom= e/data1/protected/Programming/Software/emacs/l..." "/home/data1/protected/P= rogramming/Software/emacs/l..." "/home/data1/protected/Programming/Software= /emacs/l...") (".so" ".so.gz" ".el" ".el.gz")) find-library-name("/home/data1/protected/.emacs.d/eln-cache/29.0.50-4...") find-function-search-for-symbol(my-other-function nil "/home/data1/protec= ted/.emacs.d/eln-cache/29.0.50-4...") #f(compiled-function (l) #)(#s(xref-elisp-lo= cation :symbol my-other-function :type nil :file "/home/data1/protected/.em= acs.d/eln-cache/29.0.50-4...")) apply(#f(compiled-function (l) #) #s(xref-el= isp-location :symbol my-other-function :type nil :file "/home/data1/protect= ed/.emacs.d/eln-cache/29.0.50-4...") nil) xref-location-marker(#s(xref-elisp-location :symbol my-other-function :ty= pe nil :file "/home/data1/protected/.emacs.d/eln-cache/29.0.50-4...")) xref-pop-to-location(#s(xref-item :summary #("(defun my-other-function)" = 1 6 (face font-lock-keyword-face) 7 24 (face font-lock-function-name-face))= :location #s(xref-elisp-location :symbol my-other-function :type nil :file= "/home/data1/protected/.emacs.d/eln-cache/29.0.50-4...")) nil) xref-show-definitions-buffer(#f(compiled-function () #) ((window . #) (display-action) (auto-ju= mp))) xref--show-defs(#f(compiled-function () #) n= il) xref--find-definitions(#("my-other-function" 0 17 (pos 26)) nil) xref-find-definitions(#("my-other-function" 0 17 (pos 26))) funcall-interactively(xref-find-definitions #("my-other-function" 0 17 (p= os 26))) command-execute(xref-find-definitions) read-from-minibuffer("M-x " nil (keymap (10 . minibuffer-complete-and-exi= t) (13 . minibuffer-complete-and-exit) keymap (menu-bar keymap (minibuf "Mi= nibuf" keymap (tab menu-item "Complete" minibuffer-complete :help "Complete= as far as possible") (space menu-item "Complete Word" minibuffer-complete-= word :help "Complete at most one word") (63 menu-item "List Completions" mi= nibuffer-completion-help :help "Display all possible completions") "Minibuf= ")) (M-down . minibuffer-next-completion) (M-up . minibuffer-previous-compl= etion) (27 keymap (13 . minibuffer-choose-completion) (103 keymap (27 keyma= p (99 . switch-to-completions))) (118 . switch-to-completions)) (prior . sw= itch-to-completions) (63 . minibuffer-completion-help) (32 . minibuffer-com= plete-word) (backtab . minibuffer-complete) (9 . minibuffer-complete) keyma= p (menu-bar keymap (minibuf "Minibuf" keymap (previous menu-item "Previous = History Item" previous-history-element :help "Put previous minibuffer histo= ry element in the min...") (next menu-item "Next History Item" next-history= -element :help "Put next minibuffer history element in the minibuf...") (is= earch-backward menu-item "Isearch History Backward" isearch-backward :help = "Incrementally search minibuffer history backward") (isearch-forward menu-i= tem "Isearch History Forward" isearch-forward :help "Incrementally search m= inibuffer history forward") (return menu-item "Enter" exit-minibuffer :key-= sequence "\15" :help "Terminate input and exit minibuffer") (quit menu-item= "Quit" abort-recursive-edit :help "Abort input and exit minibuffer") "Mini= buf")) (24 keymap (down . minibuffer-complete-defaults) (up . minibuffer-co= mplete-history)) (13 . exit-minibuffer) (10 . exit-minibuffer) (7 . abort-m= inibuffers) (C-tab . file-cache-minibuffer-complete) (9 . self-insert-comma= nd) (XF86Back . previous-history-element) (up . previous-line-or-history-el= ement) (prior . previous-history-element) (XF86Forward . next-history-eleme= nt) (down . next-line-or-history-element) (next . next-history-element) (27= keymap (60 . minibuffer-beginning-of-buffer) (114 . previous-matching-hist= ory-element) (115 . next-matching-history-element) (112 . previous-history-= element) (110 . next-history-element))) nil extended-command-history nil ni= l) completing-read-default("M-x " # #f(compiled-function (sym) #) t nil extended-command-history nil nil) read-extended-command-1("M-x " nil) read-extended-command() byte-code("\302\30\11\303 \10)E\207" [execute-extended-command--last-type= d current-prefix-arg nil read-extended-command] 3) command-execute(execute-extended-command) -- Jean Take action in Free Software Foundation campaigns: https://www.fsf.org/campaigns In support of Richard M. Stallman https://stallmansupport.org/ From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 06 08:30:13 2022 Received: (at 58314) by debbugs.gnu.org; 6 Oct 2022 12:30:13 +0000 Received: from localhost ([127.0.0.1]:59286 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ogQ0z-00084l-IP for submit@debbugs.gnu.org; Thu, 06 Oct 2022 08:30:13 -0400 Received: from quimby.gnus.org ([95.216.78.240]:41036) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ogQ0v-0007P7-ET for 58314@debbugs.gnu.org; Thu, 06 Oct 2022 08:30:11 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :Date:References:In-Reply-To:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=9wXHy7kKYN8UXV9Yz3SILtkajn4aC/RwOpp3m2WEZWU=; b=bvFY5scKfzU3DeENSXsvAVGh19 8mbs4kAZtLs8C+ib+sVFyrP731ZmgxkjNgNFixMFw12+qrAmMp2LTh+y35MxT2TT8B4A6AJ2/QfO9 C317BKhOhioz2qImZQBG122Vf1fD76NMgGgEPDqwkutBbeMa/Z3WOJkWBXJL8X9Qzvqk=; Received: from [84.212.220.105] (helo=downe) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ogQ0j-0002lR-50; Thu, 06 Oct 2022 14:29:59 +0200 From: Lars Ingebrigtsen To: Jean Louis Subject: Re: bug#58314: 29.0.50; C-h k with native compilation not conclusive In-Reply-To: (Jean Louis's message of "Wed, 5 Oct 2022 22:50:32 +0300") References: <86czb65axv.fsf@protected.rcdrun.com> <83bkqqrr4q.fsf@gnu.org> X-Now-Playing: Alan Vega's _Collision Drive_: "I believe" Date: Thu, 06 Oct 2022 14:29:56 +0200 Message-ID: <874jwhyw1n.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Jean Louis writes: > 1. emacs -Q > > 2. {C-x C-f my-file.el RET} > > 3. write in my-file.el: > > (defun my-function () > (message "Hello")) > > 4. {M-x emacs-lisp-native-compile-and-load RET} > > 5. {C-h f my-function R [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 58314 Cc: Eli Zaretskii , Andrea Corallo , 58314@debbugs.gnu.org, Stefan Monnier X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Jean Louis writes: > 1. emacs -Q > > 2. {C-x C-f my-file.el RET} > > 3. write in my-file.el: > > (defun my-function () > (message "Hello")) > > 4. {M-x emacs-lisp-native-compile-and-load RET} > > 5. {C-h f my-function RET} > > 6. Then I see: > > my-function is a native-compiled Lisp function in > =E2=80=98~/.emacs.d/eln-cache/29.0.50-44cd31c8/my-file-fb862712-14785989.= eln=E2=80=99. Thanks for the recipe -- I can reproduce this issue, too. We could fix this in help-fns, but I wonder whether there's something that should be fixed on the nativecomp side -- in this case, it appears to not set up... something... that allows you to find my-file.el. I.e., `symbol-file' isn't able to find my-file.el, and it probably should be? I've added Andrea to the CCs; perhaps he has a comment. From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 06 10:28:13 2022 Received: (at 58314) by debbugs.gnu.org; 6 Oct 2022 14:28:13 +0000 Received: from localhost ([127.0.0.1]:33097 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ogRrA-0007TM-Lk for submit@debbugs.gnu.org; Thu, 06 Oct 2022 10:28:12 -0400 Received: from eggs.gnu.org ([209.51.188.92]:46692) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ogRr9-0007T9-A2 for 58314@debbugs.gnu.org; Thu, 06 Oct 2022 10:28:12 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:60734) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ogRr1-0006JO-UD; Thu, 06 Oct 2022 10:28:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=aRWSEuDQ/p+HUU8gbonwPIGzaz2UOQLxCM5XCy7x0tE=; b=MFScmZvj03NJ5P9xfiIj lyWE3OyUe41oWSF51LGuz7va/+xscgID+x8oKy9ZLpKcGXZnlqatiHMxftFBTWxVx3zLMdbFh/dJk T98h5K73Pvr8JO3hoZOr8jskLbdlnvJXhxescSzhpB/uplgv/1TPLaat+Xy/Fnsn4DiZCxhQv8Rw7 Ej8vrCycYlQ/CJIF+uA4nssH64hNrvPY3RZPyqV8GMIGaUYyoGw0o/FXTcm6E+IJYFA8xV9bavYl9 aXtZZYXpydJVQBEt52F343uxdpusHFbXWvsaNFd2wH4v5xv76TATB00WEtamQ2SimFILDpwlFAvZT q8+rqsuidsPqew==; Received: from [87.69.77.57] (port=3888 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ogRr1-0008O0-D6; Thu, 06 Oct 2022 10:28:03 -0400 Date: Thu, 06 Oct 2022 17:28:00 +0300 Message-Id: <83o7upowlr.fsf@gnu.org> From: Eli Zaretskii To: Lars Ingebrigtsen In-Reply-To: <874jwhyw1n.fsf@gnus.org> (message from Lars Ingebrigtsen on Thu, 06 Oct 2022 14:29:56 +0200) Subject: Re: bug#58314: 29.0.50; C-h k with native compilation not conclusive References: <86czb65axv.fsf@protected.rcdrun.com> <83bkqqrr4q.fsf@gnu.org> <874jwhyw1n.fsf@gnus.org> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 58314 Cc: 58314@debbugs.gnu.org, monnier@iro.umontreal.ca, bugs@gnu.support, akrl@sdf.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Lars Ingebrigtsen > Cc: Eli Zaretskii , 58314@debbugs.gnu.org, Stefan Monnier > , Andrea Corallo > Date: Thu, 06 Oct 2022 14:29:56 +0200 > > Jean Louis writes: > > > 1. emacs -Q > > > > 2. {C-x C-f my-file.el RET} > > > > 3. write in my-file.el: > > > > (defun my-function () > > (message "Hello")) > > > > 4. {M-x emacs-lisp-native-compile-and-load RET} > > > > 5. {C-h f my-function RET} > > > > 6. Then I see: > > > > my-function is a native-compiled Lisp function in > > ‘~/.emacs.d/eln-cache/29.0.50-44cd31c8/my-file-fb862712-14785989.eln’. > > Thanks for the recipe -- I can reproduce this issue, too. > > We could fix this in help-fns, but I wonder whether there's something > that should be fixed on the nativecomp side -- in this case, it appears > to not set up... something... that allows you to find my-file.el. > I.e., `symbol-file' isn't able to find my-file.el, and it probably > should be? It is also interesting that help-fns does find the .el file for the files that are part of Emacs. So something works differently when the compiled file is not part of the Emacs build. From debbugs-submit-bounces@debbugs.gnu.org Mon Jun 05 18:49:45 2023 Received: (at 58314) by debbugs.gnu.org; 5 Jun 2023 22:49:45 +0000 Received: from localhost ([127.0.0.1]:50485 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q6J1F-000668-7W for submit@debbugs.gnu.org; Mon, 05 Jun 2023 18:49:45 -0400 Received: from eggs.gnu.org ([209.51.188.92]:32978) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q6J1C-00065u-KY for 58314@debbugs.gnu.org; Mon, 05 Jun 2023 18:49:43 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q6J15-0003F2-H4; Mon, 05 Jun 2023 18:49:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=xBmuLojtPd7+n6ob9GaCs5BIvrgWQdxpRyXyHvd6U0g=; b=mdmXAPOdOXe9RHxGtJBY SS1Jm5xOP+gyQzncHEd8mU0onMW/hj+IdWP59kCywHzRM6lpcVwiF5SWsSIs/1rxJtWuz0eVk1lL+ wwb5DjYw/ztF/6TaGW3/1Qd+kErYpCkz5k4qjVk2SbmStfB1hfQRCW2W3WxCnCCW7CX6xrkhGbE/F B1V8Ulg28vEhkYwNi9Uq7231PTEsA8bUo97EjYzgnCIFXFOk2IyYK92+663PEUaU13uyJhxxyi5ym K19rlmW8Hd6nbMn788M/yyuuoU1FaNWKdafjceSaZaQFxspwyAPkk41JSq74yoIJ9cIb+fu3hxd4s 7aBgYEDa/bL0hw==; Received: from acorallo by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1q6J14-0005mD-Jt; Mon, 05 Jun 2023 18:49:35 -0400 From: Andrea Corallo To: Eli Zaretskii Subject: Re: bug#58314: 29.0.50; C-h k with native compilation not conclusive In-Reply-To: <83o7upowlr.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 06 Oct 2022 17:28:00 +0300") References: <86czb65axv.fsf@protected.rcdrun.com> <83bkqqrr4q.fsf@gnu.org> <874jwhyw1n.fsf@gnus.org> <83o7upowlr.fsf@gnu.org> Date: Mon, 05 Jun 2023 18:49:34 -0400 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 58314 Cc: Lars Ingebrigtsen , akrl@sdf.org, 58314@debbugs.gnu.org, bugs@gnu.support, monnier@iro.umontreal.ca X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Eli Zaretskii writes: >> From: Lars Ingebrigtsen >> Cc: Eli Zaretskii , 58314@debbugs.gnu.org, Stefan Monnier >> , Andrea Corallo >> Date: Thu, 06 Oct 2022 14:29:56 +0200 >>=20 >> Jean Louis writes: >>=20 >> > 1. emacs -Q >> > >> > 2. {C-x C-f my-file.el RET} >> > >> > 3. write in my-file.el: >> > >> > (defun my-function () >> > (message "Hello")) >> > >> > 4. {M-x emacs-lisp-native-compile-and-load RET} >> > >> > 5. {C-h f my-function RET} >> > >> > 6. Then I see: >> > >> > my-function is a native-compiled Lisp function in >> > =E2=80=98~/.emacs.d/eln-cache/29.0.50-44cd31c8/my-file-fb862712-147859= 89.eln=E2=80=99. >>=20 >> Thanks for the recipe -- I can reproduce this issue, too. >>=20 >> We could fix this in help-fns, but I wonder whether there's something >> that should be fixed on the nativecomp side -- in this case, it appears >> to not set up... something... that allows you to find my-file.el. >> I.e., `symbol-file' isn't able to find my-file.el, and it probably >> should be? > > It is also interesting that help-fns does find the .el file for the > files that are part of Emacs. So something works differently when the > compiled file is not part of the Emacs build. I think this a bug in `emacs-lisp-native-compile-and-load'. I'll come up with a fix. Andrea From debbugs-submit-bounces@debbugs.gnu.org Tue Jun 06 06:24:27 2023 Received: (at 58314-done) by debbugs.gnu.org; 6 Jun 2023 10:24:27 +0000 Received: from localhost ([127.0.0.1]:51024 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q6TrW-0002jb-Ph for submit@debbugs.gnu.org; Tue, 06 Jun 2023 06:24:27 -0400 Received: from eggs.gnu.org ([209.51.188.92]:51362) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q6TrU-0002jN-KY for 58314-done@debbugs.gnu.org; Tue, 06 Jun 2023 06:24:25 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q6TrO-0000fz-Sl; Tue, 06 Jun 2023 06:24:18 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=9FXYCG9otq9CWOv4WK9hJa48x1R4bqHqiNU9jz9hW1I=; b=Wts35Oiz6a4mxijH959D 2qxoq0xhnbnxt+9jA818XyQjhxDyMDuUyIHQDEHrg6wcxQh2Wx4udBNfMu9mJZCEWeqD2PKu7Zz7q 7Bn/RGeXjsQX3Yj2/JvNbXixpIuZSWc9879drQMFg0Q7ws9lBxtdK+NeoHOqHZcN2HOhX8mCwrIB9 Pip6Bsv+Bw4r9UPCOotIQf5i3UUdVsNUmBPFDxy6SASDntUvHEWvfvFjmDHm9EgBGSMboR5cV+/JY ztzJLPnEccKnLEyfZORhyvtuRJ4oZ2KE0YRUnA/ehWyz2l0Mhd5VyUa/rk7ERvvaNJpiV/V0dbcMq brgUmJ02tBH4jg==; Received: from acorallo by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1q6TrO-0001pB-LB; Tue, 06 Jun 2023 06:24:18 -0400 From: Andrea Corallo To: Eli Zaretskii Subject: Re: bug#58314: 29.0.50; C-h k with native compilation not conclusive In-Reply-To: (Andrea Corallo's message of "Mon, 05 Jun 2023 18:49:34 -0400") References: <86czb65axv.fsf@protected.rcdrun.com> <83bkqqrr4q.fsf@gnu.org> <874jwhyw1n.fsf@gnus.org> <83o7upowlr.fsf@gnu.org> Date: Tue, 06 Jun 2023 06:24:18 -0400 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 58314-done Cc: Lars Ingebrigtsen , monnier@iro.umontreal.ca, 58314-done@debbugs.gnu.org, bugs@gnu.support, akrl@sdf.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Andrea Corallo writes: > Eli Zaretskii writes: > >>> From: Lars Ingebrigtsen >>> Cc: Eli Zaretskii , 58314@debbugs.gnu.org, Stefan Monni= er >>> , Andrea Corallo >>> Date: Thu, 06 Oct 2022 14:29:56 +0200 >>>=20 >>> Jean Louis writes: >>>=20 >>> > 1. emacs -Q >>> > >>> > 2. {C-x C-f my-file.el RET} >>> > >>> > 3. write in my-file.el: >>> > >>> > (defun my-function () >>> > (message "Hello")) >>> > >>> > 4. {M-x emacs-lisp-native-compile-and-load RET} >>> > >>> > 5. {C-h f my-function RET} >>> > >>> > 6. Then I see: >>> > >>> > my-function is a native-compiled Lisp function in >>> > =E2=80=98~/.emacs.d/eln-cache/29.0.50-44cd31c8/my-file-fb862712-14785= 989.eln=E2=80=99. >>>=20 >>> Thanks for the recipe -- I can reproduce this issue, too. >>>=20 >>> We could fix this in help-fns, but I wonder whether there's something >>> that should be fixed on the nativecomp side -- in this case, it appears >>> to not set up... something... that allows you to find my-file.el. >>> I.e., `symbol-file' isn't able to find my-file.el, and it probably >>> should be? >> >> It is also interesting that help-fns does find the .el file for the >> files that are part of Emacs. So something works differently when the >> compiled file is not part of the Emacs build. > > I think this a bug in `emacs-lisp-native-compile-and-load'. I'll come > up with a fix. Hi all, bcc222251e1 now into emacs-29 fixes this bug. I'm closing this report, happy to repoen if necessary. Thanks Andrea From unknown Fri Jun 20 07:13:01 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 04 Jul 2023 11:24:06 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator