From unknown Sat Jun 21 10:40:20 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#63881 <63881@debbugs.gnu.org> To: bug#63881 <63881@debbugs.gnu.org> Subject: Status: 29.0.91; apropos-documentation fails when load-history contains element whose CAR is nil Reply-To: bug#63881 <63881@debbugs.gnu.org> Date: Sat, 21 Jun 2025 17:40:20 +0000 retitle 63881 29.0.91; apropos-documentation fails when load-history contai= ns element whose CAR is nil reassign 63881 emacs submitter 63881 Visuwesh severity 63881 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Sat Jun 03 23:07:21 2023 Received: (at submit) by debbugs.gnu.org; 4 Jun 2023 03:07:21 +0000 Received: from localhost ([127.0.0.1]:44586 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q5e5Q-0007KP-Gh for submit@debbugs.gnu.org; Sat, 03 Jun 2023 23:07:21 -0400 Received: from lists.gnu.org ([209.51.188.17]:43434) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q5e5M-0007KG-M9 for submit@debbugs.gnu.org; Sat, 03 Jun 2023 23:07:19 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q5e5M-00033Z-FR for bug-gnu-emacs@gnu.org; Sat, 03 Jun 2023 23:07:16 -0400 Received: from mail-pg1-x544.google.com ([2607:f8b0:4864:20::544]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1q5e5J-0000fr-Cv for bug-gnu-emacs@gnu.org; Sat, 03 Jun 2023 23:07:16 -0400 Received: by mail-pg1-x544.google.com with SMTP id 41be03b00d2f7-53fbb3a013dso3297964a12.1 for ; Sat, 03 Jun 2023 20:07:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1685848030; x=1688440030; h=mime-version:user-agent:message-id:date:subject:to:from:from:to:cc :subject:date:message-id:reply-to; bh=gGx90mKN5paioQA6wDlxweu0K/oNFJlgJ35Njudu5yQ=; b=nQpJrMrJZV/sGktFmy+kTBCu+XKQvl2LxFK6enT2kWSAvBXcGOCi3qrTvqBOwysPWX 61cVofhGP7oJz5fx2kZZVuvEukFH5obhPXWEXSfbfg+P9qyMP4QRRta6+p/fDLw4V1Qw 3zU7ApUdekju5kVat/weML9JFpnPqqP89iOZQpRpA/oj0wFOB0Gx7dxj6nlFGu1UkcNs HSOTLrFezJd2bT3NE66haRP7GnjZk1/QqMQRuXcrOPAH/usZ1l0sqcCubUe/gy4CGXVf b36AiWkA3EGrvZ2botw5l/Msbm6BVlWWY7EhvTGiWl30f01gRSXPfaH1bmlNFGnSqTGe mEmA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685848030; x=1688440030; h=mime-version:user-agent:message-id:date:subject:to:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=gGx90mKN5paioQA6wDlxweu0K/oNFJlgJ35Njudu5yQ=; b=KsLwrT9ICvAcZL/3L5r0n4YM5UvYCi96pXRXv9SOdQXLbimhxUX+0COjBpgKryTDhe Z9LuxpAFF3xSNK3Ss+3X48ChMiJmXXjdMwMDF9jmC0Wp4duciONF0S0Nvtu9Mc/15AcN hXKu89Xbdfs7TVlJT+EgcOvyz2eQfkIszkOtTjVDZI/U90o+TX/vDT7ZbuaqmFcFtid2 mYMYknbwc7F0vv6uOwSR7LlncFmsymM/PhGDSoXIAOPnwz2nvDWWdWDEtMUU1oVGriUZ YyvmW5V4unpvbIRBRF8I5GaxoaZFT9HhI1U7eTLFD++rFivZMkHj8J8vNbFCGmB3Ceu4 dEnA== X-Gm-Message-State: AC+VfDxMtmX1Q/OupbqFlXelxSoZugIaFIWNxxElgy3B5CswN4q/mJrA zr31A20l1OBYBDrOd2FRcGkKHHAl5UmHQw== X-Google-Smtp-Source: ACHHUZ5lBCbzXCEgYA+AuTHJ+l5AR9nDfq+9lWiuVNiimaraXn9zqCzit3QKSffkBpfG94nv2Z1vBw== X-Received: by 2002:a17:902:7047:b0:1b0:1fc7:cbc1 with SMTP id h7-20020a170902704700b001b01fc7cbc1mr4289651plt.27.1685848030009; Sat, 03 Jun 2023 20:07:10 -0700 (PDT) Received: from localhost ([49.204.116.165]) by smtp.gmail.com with ESMTPSA id c15-20020a170902d48f00b001ab12545508sm3911366plg.67.2023.06.03.20.07.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 03 Jun 2023 20:07:09 -0700 (PDT) From: Visuwesh To: bug-gnu-emacs@gnu.org Subject: 29.0.91; apropos-documentation fails when load-history contains element whose CAR is nil Date: Sun, 04 Jun 2023 08:37:08 +0530 Message-ID: <878rd0c4df.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::544; envelope-from=visuweshm@gmail.com; helo=mail-pg1-x544.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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-Spam-Score: -1.3 (-) 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.3 (--) As per (info "(elisp) Where Defined"), load-history may contain an element whose CAR is nil if eval-buffer was used to evaluate a defun in a non-file-visiting buffer. After such an entry is added to load-history, apropos-documentation fails with the backtrace at end. To reproduce the issue, 1. emacs -Q 2. Insert (defun test () t) 3. M-x eval-buffer RET 4. Confirm that a nil entry is present in load-history by evaluating (alist-get nil load-history 'none) 5. C-h d any RET The problem lies in apropos--map-preloaded-atoms in the part (dolist (x load-history) (when (string-match preloaded-regexp (car x)) ^^^^^^^^ (dolist (def (cdr x)) (cond ((symbolp def) (funcall f def)) ((eq 'defun (car-safe def)) (funcall f (cdr def))))))))) ---- Debugger entered--Lisp error: (wrong-type-argument stringp nil) string-match("\\`/home/viz/lib/ports/emacs/lisp/\\(?:abbrev\\|b\\(?:..." nil) (if (string-match preloaded-regexp (car x)) (progn (let ((tail (cdr x))) (while tail (let ((def (car tail))) (cond ((symbolp def) (funcall f def)) ((eq ... ...) (funcall f ...))) (setq tail (cdr tail))))))) (let ((x (car tail))) (if (string-match preloaded-regexp (car x)) (progn (let ((tail (cdr x))) (while tail (let ((def ...)) (cond (... ...) (... ...)) (setq tail (cdr tail))))))) (setq tail (cdr tail))) (while tail (let ((x (car tail))) (if (string-match preloaded-regexp (car x)) (progn (let ((tail (cdr x))) (while tail (let (...) (cond ... ...) (setq tail ...)))))) (setq tail (cdr tail)))) (let ((tail load-history)) (while tail (let ((x (car tail))) (if (string-match preloaded-regexp (car x)) (progn (let ((tail ...)) (while tail (let ... ... ...))))) (setq tail (cdr tail))))) (let ((preloaded-regexp (concat "\\`" (regexp-quote lisp-directory) (regexp-opt preloaded-file-list) "\\.elc?\\'"))) (let ((tail load-history)) (while tail (let ((x (car tail))) (if (string-match preloaded-regexp (car x)) (progn (let (...) (while tail ...)))) (setq tail (cdr tail)))))) apropos--map-preloaded-atoms((closure ((sv) (sf) (v) (f)) (symbol) (progn (setq f (apropos-safe-documentation symbol)) (setq v (get symbol 'variable-documentation))) (if (integerp v) (setq v nil)) (progn (setq f (apropos-documentation-internal f)) (setq v (apropos-documentation-internal v))) (progn (setq sf (apropos-score-doc f)) (setq sv (apropos-score-doc v))) (if (or f v) (if (setq apropos-item (cdr (assq symbol apropos-accumulator))) (progn (if f (progn (setcar ... f) (setcar apropos-item ...))) (if v (progn (setcar ... v) (setcar apropos-item ...)))) (setq apropos-accumulator (cons (list symbol (+ ... sf sv) f v) apropos-accumulator)))))) funcall(apropos--map-preloaded-atoms (closure ((sv) (sf) (v) (f)) (symbol) (progn (setq f (apropos-safe-documentation symbol)) (setq v (get symbol 'variable-documentation))) (if (integerp v) (setq v nil)) (progn (setq f (apropos-documentation-internal f)) (setq v (apropos-documentation-internal v))) (progn (setq sf (apropos-score-doc f)) (setq sv (apropos-score-doc v))) (if (or f v) (if (setq apropos-item (cdr (assq symbol apropos-accumulator))) (progn (if f (progn (setcar ... f) (setcar apropos-item ...))) (if v (progn (setcar ... v) (setcar apropos-item ...)))) (setq apropos-accumulator (cons (list symbol (+ ... sf sv) f v) apropos-accumulator)))))) (let ((standard-input (current-buffer)) (apropos-sort-by-scores apropos-documentation-sort-by-scores) f v sf sv) (apropos-documentation-check-doc-file) (funcall (if do-all #'mapatoms #'apropos--map-preloaded-atoms) #'(lambda (symbol) (progn (setq f (apropos-safe-documentation symbol)) (setq v (get symbol 'variable-documentation))) (if (integerp v) (setq v nil)) (progn (setq f (apropos-documentation-internal f)) (setq v (apropos-documentation-internal v))) (progn (setq sf (apropos-score-doc f)) (setq sv (apropos-score-doc v))) (if (or f v) (if (setq apropos-item (cdr ...)) (progn (if f ...) (if v ...)) (setq apropos-accumulator (cons ... apropos-accumulator)))))) (apropos-print nil "\n----------------\n" nil t)) (progn (let ((standard-input (current-buffer)) (apropos-sort-by-scores apropos-documentation-sort-by-scores) f v sf sv) (apropos-documentation-check-doc-file) (funcall (if do-all #'mapatoms #'apropos--map-preloaded-atoms) #'(lambda (symbol) (progn (setq f (apropos-safe-documentation symbol)) (setq v (get symbol ...))) (if (integerp v) (setq v nil)) (progn (setq f (apropos-documentation-internal f)) (setq v (apropos-documentation-internal v))) (progn (setq sf (apropos-score-doc f)) (setq sv (apropos-score-doc v))) (if (or f v) (if (setq apropos-item ...) (progn ... ...) (setq apropos-accumulator ...))))) (apropos-print nil "\n----------------\n" nil t))) (unwind-protect (progn (let ((standard-input (current-buffer)) (apropos-sort-by-scores apropos-documentation-sort-by-scores) f v sf sv) (apropos-documentation-check-doc-file) (funcall (if do-all #'mapatoms #'apropos--map-preloaded-atoms) #'(lambda (symbol) (progn (setq f ...) (setq v ...)) (if (integerp v) (setq v nil)) (progn (setq f ...) (setq v ...)) (progn (setq sf ...) (setq sv ...)) (if (or f v) (if ... ... ...)))) (apropos-print nil "\n----------------\n" nil t))) (and (buffer-name temp-buffer) (kill-buffer temp-buffer))) (save-current-buffer (set-buffer temp-buffer) (unwind-protect (progn (let ((standard-input (current-buffer)) (apropos-sort-by-scores apropos-documentation-sort-by-scores) f v sf sv) (apropos-documentation-check-doc-file) (funcall (if do-all #'mapatoms #'apropos--map-preloaded-atoms) #'(lambda (symbol) (progn ... ...) (if ... ...) (progn ... ...) (progn ... ...) (if ... ...))) (apropos-print nil "\n----------------\n" nil t))) (and (buffer-name temp-buffer) (kill-buffer temp-buffer)))) (let ((temp-buffer (generate-new-buffer " *temp*" t))) (save-current-buffer (set-buffer temp-buffer) (unwind-protect (progn (let ((standard-input (current-buffer)) (apropos-sort-by-scores apropos-documentation-sort-by-scores) f v sf sv) (apropos-documentation-check-doc-file) (funcall (if do-all #'mapatoms #'apropos--map-preloaded-atoms) #'(lambda ... ... ... ... ... ...)) (apropos-print nil "\n----------------\n" nil t))) (and (buffer-name temp-buffer) (kill-buffer temp-buffer))))) apropos-documentation(("pcomplete") nil) funcall-interactively(apropos-documentation ("pcomplete") nil) call-interactively(apropos-documentation nil nil) command-execute(apropos-documentation) In GNU Emacs 29.0.91 (build 2, x86_64-pc-linux-gnu, X toolkit, Xaw scroll bars) of 2023-06-01 built on astatine Repository revision: 17c7915ab947ebeec6ea5ad3eb4cad1f24d5d4fc Repository branch: emacs-29 Windowing system distributor 'The X.Org Foundation', version 11.0.12101007 System Description: Debian GNU/Linux 12 (bookworm) Configured using: 'configure --with-sound=alsa --with-x-toolkit=lucid --with-json --without-xaw3d --without-gconf --without-libsystemd --without-cairo' Configured features: ACL DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG JSON LIBOTF LIBSELINUX LIBXML2 MODULES NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS WEBP X11 XDBE XFT XIM XINPUT2 XPM LUCID ZLIB Important settings: value of $LC_MONETARY: ta_IN.UTF-8 value of $LC_NUMERIC: ta_IN.UTF-8 value of $LANG: en_GB.UTF-8 locale-coding-system: utf-8-unix Major mode: ELisp/l Minor modes in effect: bug-reference-prog-mode: t csv-field-index-mode: t recentf-mode: t shell-dirtrack-mode: t server-mode: t paredit-mode: t eros-mode: t flymake-mode: t pdf-occur-global-minor-mode: t minibuffer-depth-indicate-mode: t repeat-mode: t display-time-mode: t display-battery-mode: t delete-selection-mode: t xterm-mouse-mode: t straight-use-package-mode: t straight-package-neutering-mode: t tooltip-mode: t global-eldoc-mode: t eldoc-mode: t show-paren-mode: t electric-indent-mode: t mouse-wheel-mode: t use-hard-newlines: t tab-bar-history-mode: t tab-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t undelete-frame-mode: t transient-mark-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t abbrev-mode: t Load-path shadows: /home/viz/lib/emacs/straight/build/transient/transient hides /home/viz/lib/ports/emacs/lisp/transient Features: (shadow emacsbug edebug disass apropos erc-pcomplete erc-goodies erc erc-backend erc-networks erc-common erc-compat erc-loaddefs pcmpl-linux tramp-cmds rfc2104 display-line-numbers cc-langs rng-xsd xsd-regexp rng-cmpct nxml-mode-expansions rng-nxml rng-valid nxml-mode nxml-outln nxml-rap skeleton ecomplete cc-awk ps-mode gnuplot-context gnuplot info-look expand-region text-mode-expansions cc-mode-expansions the-org-mode-expansions python-el-fgallina-expansions js-mode-expansions html-mode-expansions css-mode-expansions er-basic-expansions expand-region-core expand-region-custom mule-diag descr-text msb ffap net-utils add-log rect org-datetree org-capture doct find-dired grep tar-mode sql view ement-tabulated-room-list ement ement-notify notifications ement-room dns pcmpl-gnu rcirc sqlite-mode arc-mode archive-mode lua-mode ind-util thai-util thai-word mule-util bug-reference shortdoc shr-color cl-print debug backtrace mhtml-mode css-mode sgml-mode js c-ts-common gnus-dired dictionary dictionary-connection olivetti tramp-archive tramp-gvfs nov esxml-query ement-room-list ement-lib ement-api ement-structs plz ement-macros ewoc taxy-magit-section magit-section taxy svg-lib persist flow-fill smerge-mode gnus-cite qp mm-archive mail-extr textsec uni-scripts idna-mapping ucs-normalize uni-confusable textsec-check gnus-async gnus-bcklg gnus-ml nndoc nndraft nnmh nnfolder nnmaildir nnagent nnml nnnil gnus-agent gnus-srvr gnus-score score-mode nnvirtual gnus-msg nntp gnus-cache shell-command+ latexenc ox-odt rng-loc rng-uri rng-parse rng-match rng-dt rng-util rng-pttrn nxml-parse nxml-ns nxml-enc xmltok nxml-util ox-latex ox-icalendar org-agenda ox-html table ox-ascii ox-publish ox image-file image-converter cus-start tabify man nroff-mode wdired etags fileloop imenu-xref network-stream url-http url-gw nsm url-cache url-auth avy flyspell ispell org-pdftools pdf-annot facemenu org-noter org-num oc-basic org-element org-persist avl-tree generator ob-gnuplot ob-fortran ob-python python compat ob-julia ob-C ob-shell ob-racket async ob-async cdlatex texmathp org-attach org-id org-refile ol-eww eww xdg url-queue mm-url ol-rmail ol-mhe ol-irc ol-info ol-gnus nnselect gnus-art mm-uu mml2015 mm-view mml-smime smime gnutls dig gnus-sum shr pixel-fill kinsoku url-file svg gnus-group gnus-undo gnus-start gnus-dbus gnus-cloud nnimap nnmail mail-source utf7 nnoo gnus-spec gnus-int gnus-range message sendmail yank-media puny rfc822 mml mml-sec epa epg rfc6068 epg-config mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drums mailabbrev gmm-utils mailheader gnus-win gnus nnheader gnus-util mail-utils range mm-util mail-prsvr ol-docview doc-view ol-bibtex bibtex ol-bbdb ol-w3m ol-doi org-link-doi org-tempo tempo ol-man org ob ob-tangle ob-ref ob-lob ob-table ob-exp org-macro org-src ob-comint org-pcomplete org-list org-footnote org-faces org-entities ob-emacs-lisp ob-core ob-eval org-cycle org-table ol org-fold org-fold-core org-keys oc org-loaddefs org-version org-compat org-macs crm help-fns radix-tree ediff ediff-merg ediff-mult ediff-wind ediff-diff ediff-help ediff-init ediff-util reveal dired-aux cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs noutline outline typo misc pulse color csv-mode sort xref conf-mode recentf tree-widget vc-backup log-view pcvs-util vc diff vc-git diff-mode vc-dispatcher misearch multi-isearch dabbrev pcmpl-unix sh-script smie treesit executable tramp-sh tramp-cache tramp trampver tramp-integration files-x time-stamp tramp-loaddefs tramp-compat shell pcomplete parse-time iso8601 ls-lisp cursor-sensor face-remap server paredit edmacro kmacro eros time-date checkdoc lisp-mnt flymake-proc flymake project warnings thingatpt wordel-autoloads sokoban-autoloads ement-autoloads transient-autoloads svg-lib-autoloads taxy-magit-section-autoloads magit-section-autoloads dash-autoloads taxy-autoloads persist-autoloads plz-autoloads nov-autoloads esxml-autoloads kv-autoloads transmission-autoloads csv-mode-autoloads lua-mode-autoloads nix-mode-autoloads gnuplot-autoloads devdocs-autoloads julia-mode-autoloads racket-mode-autoloads eros-autoloads writegood-mode-autoloads siege-mode-autoloads paredit-autoloads puni-autoloads expand-region-autoloads filladapt-autoloads compose scroll-other-window org-pdftools-autoloads org-noter-autoloads change-env-autoloads math-delimiters-autoloads doct-autoloads ob-async-autoloads async-autoloads emacs-ob-racket-autoloads valign-autoloads cdlatex-autoloads auctex-autoloads tex-site pdf-occur ibuf-ext ibuffer ibuffer-loaddefs tablist advice tablist-filter semantic/wisent/comp semantic/wisent semantic/wisent/wisent semantic/util-modes semantic/util semantic semantic/tag semantic/lex semantic/fw mode-local find-func cedet pdf-isearch let-alist pdf-misc imenu pdf-tools package browse-url url url-proxy url-privacy url-expand url-methods url-history url-cookie generate-lisp-file url-domsuf url-util mailcap url-handlers url-parse auth-source eieio eieio-core json map byte-opt url-vars compile comint ansi-osc ansi-color ring cus-edit wid-edit pdf-view password-cache jka-compr pdf-cache pdf-info tq pdf-util pdf-macs image-mode dired-x dired dired-loaddefs exif pdf-tools-autoloads tablist-autoloads typo-autoloads mb-depth repeat visual-fill-autoloads olivetti-autoloads time format-spec battery dbus filenotify xml dom tamil99 quail disp-table lacarte-autoloads shell-command-plus-autoloads icons delsel easy-mmode xt-mouse cus-load avy-autoloads icalendar diary-lib diary-loaddefs cal-menu calendar cal-loaddefs dired-du-autoloads finder-inf filecache imenu-xref-autoloads derived chemtable-autoloads molar-mass-autoloads vc-backup-autoloads compat-autoloads saveplace-pdf-view saveplace bookmark text-property-search pp saveplace-pdf-view-autoloads rx pcase inspector-autoloads xr-autoloads straight-autoloads cl-seq info cl-extra help-mode straight subr-x cl-macs gv cl-loaddefs cl-lib bytecomp byte-compile vz-nh-theme vz-options-theme rmc iso-transl tooltip cconv 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 theme-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 dynamic-setting system-font-setting font-render-setting x-toolkit xinput2 x multi-tty make-network-process emacs) Memory information: ((conses 16 3698457 420989) (symbols 48 71567 125) (strings 32 485043 37152) (string-bytes 1 42116953) (vectors 16 202430) (vector-slots 8 3912716 375269) (floats 8 1712 1293) (intervals 56 484153 8174) (buffers 976 252)) From debbugs-submit-bounces@debbugs.gnu.org Sun Jun 04 01:31:18 2023 Received: (at 63881) by debbugs.gnu.org; 4 Jun 2023 05:31:18 +0000 Received: from localhost ([127.0.0.1]:44693 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q5gKk-0002uZ-2W for submit@debbugs.gnu.org; Sun, 04 Jun 2023 01:31:18 -0400 Received: from eggs.gnu.org ([209.51.188.92]:40224) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q5gKf-0002uK-Re for 63881@debbugs.gnu.org; Sun, 04 Jun 2023 01:31:16 -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 1q5gKa-0002aD-2m; Sun, 04 Jun 2023 01:31:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=O/V6Z4+vibTTs3ekBSCW42PBaMmSLv78v4GJZLSy3mU=; b=UxwetE2ovRk9 GFSg/FQpepI2qE7cxoU5zUpnEz4OWHBhRwPthZ3cpozORTMwTXbKo8DbhxnfL+Sj4RCDPd3zKQrpU QWIa05cfnwv3RD4jiwU63QBBjjT/REXSmOtBAuAwzixwU/BOa1gIUGHJ5sbwPW94bkQNMT2GKyfiP q49sWQlUsF5kkoCf+xLeDSSFGs0YywpPBIGwLPNOyF8C9Y2lWdDFuSUIyCa3lsQscQcC/b5vCWsV7 +UeApCSymGioMl3UOPEKtnLR52foRhViLPUKvjX9yIl/zX2Ea/yL8HqozyXTXi0p9V5Hzup+cY3fZ LRkaUB9QIHS0Z45xCP2ijw==; Received: from [87.69.77.57] (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 1q5gKY-0002Um-7L; Sun, 04 Jun 2023 01:31:07 -0400 Date: Sun, 04 Jun 2023 08:31:58 +0300 Message-Id: <83cz2b7pyp.fsf@gnu.org> From: Eli Zaretskii To: Visuwesh , Stefan Monnier In-Reply-To: <878rd0c4df.fsf@gmail.com> (message from Visuwesh on Sun, 04 Jun 2023 08:37:08 +0530) Subject: Re: bug#63881: 29.0.91; apropos-documentation fails when load-history contains element whose CAR is nil References: <878rd0c4df.fsf@gmail.com> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 63881 Cc: 63881@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: Visuwesh > Date: Sun, 04 Jun 2023 08:37:08 +0530 > > > As per (info "(elisp) Where Defined"), load-history may contain an > element whose CAR is nil if eval-buffer was used to evaluate a defun > in a non-file-visiting buffer. > > After such an entry is added to load-history, apropos-documentation > fails with the backtrace at end. How did you add such an entry to load-history? IOW, is there a real-life use case where this happens? > To reproduce the issue, > > 1. emacs -Q > 2. Insert (defun test () t) > 3. M-x eval-buffer RET > 4. Confirm that a nil entry is present in load-history by evaluating > (alist-get nil load-history 'none) > 5. C-h d any RET > > The problem lies in apropos--map-preloaded-atoms in the part > > (dolist (x load-history) > (when (string-match preloaded-regexp (car x)) > ^^^^^^^^ > (dolist (def (cdr x)) > (cond > ((symbolp def) (funcall f def)) > ((eq 'defun (car-safe def)) (funcall f (cdr def))))))))) > > > ---- > > > Debugger entered--Lisp error: (wrong-type-argument stringp nil) > string-match("\\`/home/viz/lib/ports/emacs/lisp/\\(?:abbrev\\|b\\(?:..." nil) > (if (string-match preloaded-regexp (car x)) (progn (let ((tail (cdr x))) (while tail (let ((def (car tail))) (cond ((symbolp def) (funcall f def)) ((eq ... ...) (funcall f ...))) (setq tail (cdr tail))))))) From debbugs-submit-bounces@debbugs.gnu.org Sun Jun 04 04:34:21 2023 Received: (at 63881) by debbugs.gnu.org; 4 Jun 2023 08:34:21 +0000 Received: from localhost ([127.0.0.1]:44922 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q5jBt-0002Hb-Gc for submit@debbugs.gnu.org; Sun, 04 Jun 2023 04:34:21 -0400 Received: from mail-pf1-f196.google.com ([209.85.210.196]:42312) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q5jBr-0002HM-0c for 63881@debbugs.gnu.org; Sun, 04 Jun 2023 04:34:20 -0400 Received: by mail-pf1-f196.google.com with SMTP id d2e1a72fcca58-64d24136685so2671820b3a.1 for <63881@debbugs.gnu.org>; Sun, 04 Jun 2023 01:34:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1685867653; x=1688459653; h=content-transfer-encoding:mime-version:message-id:references :in-reply-to:user-agent:subject:cc:to:from:date:from:to:cc:subject :date:message-id:reply-to; bh=+m29O0KPtO9PsADr50fb+Uh0txCM43SFOxum1hh6Dl0=; b=e2c5uhZMc0DFJsIS6Yv7fORMza+10vmi2e0IV6gfE9B+1kcullYdUOIlQQ8X2v/dlq BbYhUEi4vrX9DaKOQLoKpA3QVqHKHkPYrOZ/18+aWLULKLULPKvv/7ZaZA63fu7Wd8ym bRlqrqbeJj243+FYrK2fuoBDhLn/QLNSvXrPzhorV2bc2d3IHAWm331YnxdbNX8jKrPw kXfefxqEK3SUD1ukWFDCqXtvGgHfTGgLlZ0m28lmxBXoffCJHAM7YFaLCqjWshFjvEcp mpzAbiCGix/oiFipoer14caYCEVsof9UF+cVewqWitMwMUQ/+4bEIKx3WGsAcXUAtsdl Cc/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685867653; x=1688459653; h=content-transfer-encoding:mime-version:message-id:references :in-reply-to:user-agent:subject:cc:to:from:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=+m29O0KPtO9PsADr50fb+Uh0txCM43SFOxum1hh6Dl0=; b=UaTCKhqmFnrBHZVFhru7ctj/aio0HvoprrNN7nGeiUBklFGsKdXX1f/eIObTAZdVIe C6zV9mZAqrLWmmVrad5c3gq5Ny+eafXmIiPJrYIlt+m9sthfqR0eBTdbSbiGwyF/Jhz3 uuIk+zixLPExXzwmUtHoDUSj0FyJ7lrS0/h5TBxBHN2BA8LyiiC4bA91+x18YoOJXuQx W5IlTDt5QYYRb/0VuezZ/hWo/yYfD2F+vk0ieZC+Ls56zZyMsy7Xw4HCOEvvLQg96Oko L+D2jMBKAXuMPmMq1Y3YM5EkI7lUapyHDFVxAwGRI3BihCX9PjneRfZlxYWtgn6ZrziR dqNw== X-Gm-Message-State: AC+VfDz/cAZ0oFLlA+7+1XWrwsZx/1N08YHkFYONswPU8G1zCLDMExkT 7JhC8yuyc/Oxnx2R2YfSH0Y= X-Google-Smtp-Source: ACHHUZ4VPmqCv8RkcbnyBx+H7E5a6Xr3S3GLRXU54uKZH+qd8O3qNDa6mwoXflhpuQaUt9HuKe6/Ag== X-Received: by 2002:a05:6a00:3912:b0:650:1a64:d8d3 with SMTP id fh18-20020a056a00391200b006501a64d8d3mr10718349pfb.14.1685867653012; Sun, 04 Jun 2023 01:34:13 -0700 (PDT) Received: from ?IPv6:::1? ([2402:3a80:4253:faab:ac1a:5bff:fe49:8c5d]) by smtp.gmail.com with ESMTPSA id j2-20020a62e902000000b00658cbd22719sm506666pfh.27.2023.06.04.01.34.11 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 04 Jun 2023 01:34:12 -0700 (PDT) Date: Sun, 04 Jun 2023 14:04:06 +0530 From: Visuwesh To: Eli Zaretskii , Stefan Monnier Subject: =?US-ASCII?Q?Re=3A_bug=2363881=3A_29=2E0=2E91=3B_a?= =?US-ASCII?Q?propos-documentation_fails?= =?US-ASCII?Q?_when_load-history_contains_element_whose_CAR_is_nil?= User-Agent: K-9 Mail for Android In-Reply-To: <83cz2b7pyp.fsf@gnu.org> References: <878rd0c4df.fsf@gmail.com> <83cz2b7pyp.fsf@gnu.org> Message-ID: <655658B8-D58D-4D1B-80F4-33A1A200B417@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 63881 Cc: 63881@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: -1.0 (-) On 4 June 2023 11:01:58 GMT+05:30, Eli Zaretskii wrote: >> From: Visuwesh >> Date: Sun, 04 Jun 2023 08:37:08 +0530 >>=20 >>=20 >> As per (info "(elisp) Where Defined"), load-history may contain an >> element whose CAR is nil if eval-buffer was used to evaluate a defun >> in a non-file-visiting buffer=2E >>=20 >> After such an entry is added to load-history, apropos-documentation >> fails with the backtrace at end=2E > >How did you add such an entry to load-history? IOW, is there a >real-life use case where this happens? eval-buffer is the answer apparently=2E I don't remember using the comman= d explicitly myself though so some other eval command is calling it=2E Also see the reproducer below=2E >> To reproduce the issue, >>=20 >> 1=2E emacs -Q >> 2=2E Insert (defun test () t) >> 3=2E M-x eval-buffer RET >> 4=2E Confirm that a nil entry is present in load-history by evaluat= ing >> (alist-get nil load-history 'none) >> 5=2E C-h d any RET From debbugs-submit-bounces@debbugs.gnu.org Mon Jun 05 03:52:57 2023 Received: (at 63881) by debbugs.gnu.org; 5 Jun 2023 07:52:57 +0000 Received: from localhost ([127.0.0.1]:47990 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q651N-0001YC-7K for submit@debbugs.gnu.org; Mon, 05 Jun 2023 03:52:57 -0400 Received: from wout4-smtp.messagingengine.com ([64.147.123.20]:51811) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q651K-0001Xx-GI for 63881@debbugs.gnu.org; Mon, 05 Jun 2023 03:52:55 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 01DD8320090B for <63881@debbugs.gnu.org>; Mon, 5 Jun 2023 03:52:47 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Mon, 05 Jun 2023 03:52:48 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mfa.pw; h=cc:cc :content-transfer-encoding:content-type:content-type:date:date :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to; s=fm2; t= 1685951567; x=1686037967; bh=wiypN/dXXDMuKH21N/i/w+FFCwAfGFZRbWO DxTuhgHs=; b=sCa2g9lGv0JjJQWfEGtxWphMbEiQrH1/AbDcpgV2anHG0ellz0J 7vfnEG4706HBua3LkoPyPMK7miIc/FXf02u95ADB9nkUF2r4hpILFTbVTNZLkoFT HoYS6Prne/pPYbZewlPmf1upVGtdIrDRhnMHGYh6gDFqG+WMWy3aCxjVJ/UrIiku VpkCVanE3ZULKxJttQkDM9V0JgeKALCNU5kRvR8wprWeHJ9G50VaM3k1Xr7gffMz MN9Mi02ezDvWv9p4OTJBZQ8c8+NuBucmSo1d3XGinhFic671RPBzzCVHpdl/6dWW Grl9gcUJhfUQ1Dwg1HIwc8Es7hsoorPONlA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t= 1685951567; x=1686037967; bh=wiypN/dXXDMuKH21N/i/w+FFCwAfGFZRbWO DxTuhgHs=; b=KmvfW4dBLfk6yWqpXwlGu90yItruQtn97AXGchCwzKud093mfYH mZzH4GmlLAFBij6UZEDB9JjDqXD0pVAhmdEVpxjKidaYXj3iUbu80PKhkgL0yOPq n3jKRPGuqaZCjUxQFt+DGa8KtJ2V2g8giDsstkHbQQ29GYRNQeaADlQZSlOPbcm+ pdRhpbwbSGYjDaUIrqnUlG1xRIFWs/7kEJSU4hm6SIjtIOfHZeDz5Jc5IvYUxYMa vzLXaDoWRzQ7DWG6ojBEdm0poDXwh+vSqEwRHDw7D76gbofFPVGPq4fDY/sfAGe9 0HGz8XMPbPILnRgqEIL4PaEVu6NFZy5ZQjA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrfeelkedguddvgecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecumhhishhsihhnghcuvffquchfihgvlhguucdlfe dtmdenfghrlhcuvffnffculdduhedmnecujfgurhepfhgfhffuffgjvfevkfggtgfgseht qhertddtreejnecuhfhrohhmpeforghtthcuuegvshhhrghrrgcuoehmsehmfhgrrdhpfi eqnecuggftrfgrthhtvghrnheptddtgffgfeetheduhedtgeefteelfeeuvdfhhfekgedt jeeuleelvefhvddvleehnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrg hilhhfrhhomhepmhesmhhfrgdrphif X-ME-Proxy: Feedback-ID: i9f394738:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA for <63881@debbugs.gnu.org>; Mon, 5 Jun 2023 03:52:46 -0400 (EDT) References: <878rd0c4df.fsf@gmail.com> <83cz2b7pyp.fsf@gnu.org> User-agent: mu4e 1.10.0; emacs 30.0.50 From: Matt Beshara Subject: Re: bug#63881: 29.0.91; apropos-documentation fails when load-history contains element whose CAR is nil Date: Mon, 05 Jun 2023 17:50:27 +1000 In-reply-to: <83cz2b7pyp.fsf@gnu.org> X-Clacks-Overhead: GNU Terry Pratchett to: Message-ID: <87o7lue46t.fsf@mfa.pw> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 63881 Cc: 63881@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: -1.7 (-) I=E2=80=99ve encountered this same bug too. The real-life use case where=20 I=E2=80=99ve run into it has been when attempting to use=20 =E2=80=98apropos-documentation=E2=80=99 after doing =E2=80=98eval-buffer=E2= =80=99 in an EWW buffer=20 containing only Elisp code, usually from e.g. GitHub. Eli Zaretskii writes: > How did you add such an entry to load-history? IOW, is there a > real-life use case where this happens? From debbugs-submit-bounces@debbugs.gnu.org Sat Jun 10 05:25:48 2023 Received: (at 63881) by debbugs.gnu.org; 10 Jun 2023 09:25:48 +0000 Received: from localhost ([127.0.0.1]:33294 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q7uqx-0003Ch-SU for submit@debbugs.gnu.org; Sat, 10 Jun 2023 05:25:48 -0400 Received: from eggs.gnu.org ([209.51.188.92]:55670) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q7uqv-0003CT-Nn for 63881@debbugs.gnu.org; Sat, 10 Jun 2023 05:25:46 -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 1q7uqq-0003ej-2m; Sat, 10 Jun 2023 05:25:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=x94WTCshZHiFt5bcTIJelPx3q7AmuS/YSTzbdq+kfsc=; b=VQpD6XRATWIP tzLyneYv9fPEujV1CKGou4v+N2tOLKfe2ffxJ1B4d3alSnSFPF+4KHaTWTYxiphKHLC6dNrhHpXrk 2YCFcD/47AuJQmNAIbdE+/FugnC0GmCI4hdoZpQqPLD7vS0jPAJsqFpPaJEf4VDDiXSlK+6ZaEw3I +WfGEJos5XD74iXS0XjkVApt7baYud0m98soVbO7LPPLSjAxUvXyicysrcEwbdTZ5EaD1H5oB9nLU KCJO+rrqF8PXjFQXktfFCudrzxQ9iRNZnI5Nh04XNHKm6KnNA1K78x1wTW6qkO5gG+PaDuTlwYl+T hvgibnzSRi4zrrSedPeXXA==; Received: from [87.69.77.57] (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 1q7uqp-0000EN-1a; Sat, 10 Jun 2023 05:25:39 -0400 Date: Sat, 10 Jun 2023 12:25:49 +0300 Message-Id: <83ttvfzn1e.fsf@gnu.org> From: Eli Zaretskii To: Stefan Monnier In-Reply-To: <83cz2b7pyp.fsf@gnu.org> (message from Eli Zaretskii on Sun, 04 Jun 2023 08:31:58 +0300) Subject: Re: bug#63881: 29.0.91; apropos-documentation fails when load-history contains element whose CAR is nil References: <878rd0c4df.fsf@gmail.com> <83cz2b7pyp.fsf@gnu.org> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 63881 Cc: 63881@debbugs.gnu.org, visuweshm@gmail.com 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 (---) > Cc: 63881@debbugs.gnu.org > Date: Sun, 04 Jun 2023 08:31:58 +0300 > From: Eli Zaretskii > > > From: Visuwesh > > Date: Sun, 04 Jun 2023 08:37:08 +0530 > > > > > > As per (info "(elisp) Where Defined"), load-history may contain an > > element whose CAR is nil if eval-buffer was used to evaluate a defun > > in a non-file-visiting buffer. > > > > After such an entry is added to load-history, apropos-documentation > > fails with the backtrace at end. > > How did you add such an entry to load-history? IOW, is there a > real-life use case where this happens? > > > To reproduce the issue, > > > > 1. emacs -Q > > 2. Insert (defun test () t) > > 3. M-x eval-buffer RET > > 4. Confirm that a nil entry is present in load-history by evaluating > > (alist-get nil load-history 'none) > > 5. C-h d any RET > > > > The problem lies in apropos--map-preloaded-atoms in the part > > > > (dolist (x load-history) > > (when (string-match preloaded-regexp (car x)) > > ^^^^^^^^ > > (dolist (def (cdr x)) > > (cond > > ((symbolp def) (funcall f def)) > > ((eq 'defun (car-safe def)) (funcall f (cdr def))))))))) > > > > > > ---- > > > > > > Debugger entered--Lisp error: (wrong-type-argument stringp nil) > > string-match("\\`/home/viz/lib/ports/emacs/lisp/\\(?:abbrev\\|b\\(?:..." nil) > > (if (string-match preloaded-regexp (car x)) (progn (let ((tail (cdr x))) (while tail (let ((def (car tail))) (cond ((symbolp def) (funcall f def)) ((eq ... ...) (funcall f ...))) (setq tail (cdr tail))))))) Stefan, does the below look good for emacs-29? diff --git a/lisp/apropos.el b/lisp/apropos.el index 5d7fe69..c9551b0 100644 --- a/lisp/apropos.el +++ b/lisp/apropos.el @@ -900,7 +900,8 @@ apropos--map-preloaded-atoms ;; state of the `obarray' when we dumped, which we may also be able to ;; use in `bytecomp' to provide a clean initial environment?) (dolist (x load-history) - (when (string-match preloaded-regexp (car x)) + (when (let ((elt (car x))) + (and (stringp elt) (string-match preloaded-regexp elt))) (dolist (def (cdr x)) (cond ((symbolp def) (funcall f def)) From debbugs-submit-bounces@debbugs.gnu.org Sat Jun 10 12:18:22 2023 Received: (at 63881) by debbugs.gnu.org; 10 Jun 2023 16:18:22 +0000 Received: from localhost ([127.0.0.1]:36157 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q81IE-0000b4-17 for submit@debbugs.gnu.org; Sat, 10 Jun 2023 12:18:22 -0400 Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:11871) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q81IB-0000ar-Fu for 63881@debbugs.gnu.org; Sat, 10 Jun 2023 12:18:20 -0400 Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 3BEB91000BA; Sat, 10 Jun 2023 12:18:14 -0400 (EDT) Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 511F210000A; Sat, 10 Jun 2023 12:18:13 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1686413893; bh=ZgAJlNibuJ+y/ksRPi+26zVFTzNg9gL4T1DR2l00Nzg=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=iIyUus3Uc7Pz3lYDuGzuQ4kNsdDEypxCXUIXFwnklSOwO39f2sC2Upp9sw7/npiWB 4MpFvLva9mhv0g/R9s/f6uebTgRmqdq8Bs1P8y1HTchRa8RdVij1K/+spOBlME76DB niNlz7z3fUHfJUt6liBHQgDnUQc/7XFAbDfMvUATnSeDIhRHwx0iam16CeCbuy7KtI 4kce/oCEplNMaYxi+vdzJwY4ARj7bhqIojvh4rTr2+ppNt0TsQrXgRTtNbA1iPne2m SsAJgQ/HEDLkXPI/jPrs+THSi2FDQAoVj9FtQPGy1kkKPBu7F/o0vRR/9HkVSy7Hg+ rXPeNov1gvvFw== Received: from pastel (76-10-180-239.dsl.teksavvy.com [76.10.180.239]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 1FACB1207BB; Sat, 10 Jun 2023 12:18:13 -0400 (EDT) From: Stefan Monnier To: Eli Zaretskii Subject: Re: bug#63881: 29.0.91; apropos-documentation fails when load-history contains element whose CAR is nil In-Reply-To: <83ttvfzn1e.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 10 Jun 2023 12:25:49 +0300") Message-ID: References: <878rd0c4df.fsf@gmail.com> <83cz2b7pyp.fsf@gnu.org> <83ttvfzn1e.fsf@gnu.org> Date: Sat, 10 Jun 2023 12:18:11 -0400 User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-SPAM-INFO: Spam detection results: 0 ALL_TRUSTED -1 Passed through trusted hosts only via SMTP AWL 0.095 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DKIM_SIGNED 0.1 Message has a DKIM or DK signature, not necessarily valid DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's domain DKIM_VALID_EF -0.1 Message has a valid DKIM or DK signature from envelope-from domain T_SCC_BODY_TEXT_LINE -0.01 - X-SPAM-LEVEL: X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 63881 Cc: 63881@debbugs.gnu.org, visuweshm@gmail.com 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 (---) > Stefan, does the below look good for emacs-29? Yup, definitely. Sorry 'bout that. Stefan From debbugs-submit-bounces@debbugs.gnu.org Sat Jun 10 13:49:35 2023 Received: (at 63881-done) by debbugs.gnu.org; 10 Jun 2023 17:49:35 +0000 Received: from localhost ([127.0.0.1]:36218 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q82iU-00033S-VQ for submit@debbugs.gnu.org; Sat, 10 Jun 2023 13:49:35 -0400 Received: from eggs.gnu.org ([209.51.188.92]:60648) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q82iT-00033F-94 for 63881-done@debbugs.gnu.org; Sat, 10 Jun 2023 13:49:33 -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 1q82iK-0004AM-8y; Sat, 10 Jun 2023 13:49:28 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=t5EWY2MgagS9hqcZlnGEoRYtDiarmqv6NqXjscnVLfY=; b=PxhWg8wun/cQ svew5UUBqef7pDu0AJn38DapY7X874omhW5pqpVl9EVzc9Aa5tXMgDflGZOt9CEgAWLqwzAxVUQe8 GyV8R5hrXuRGV+devfDII7xHSzFFK9EDaZqdK1YipNS4hs0vkA7Mg5TwpTfGyGGZzMYbzhUQaQEoI Zdw9k9gI/956YAzhQ7wNLj1tC99pKUgG2lyASEKMC2LzbytifR2oquFiRkx6eSRawyrR9T8F85hVh nSXgN1Cm+8j58GK8mxAp/DIHIUSVv9Ylzo3dIJ6ssIigIJ/WoEUwI84Ifv9J5VEJBDwWU0WF9ydeR H00l9sxMPqURvjrXY/dj9g==; Received: from [87.69.77.57] (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 1q82iJ-0004VK-PB; Sat, 10 Jun 2023 13:49:24 -0400 Date: Sat, 10 Jun 2023 20:49:35 +0300 Message-Id: <83fs6zyzps.fsf@gnu.org> From: Eli Zaretskii To: Stefan Monnier In-Reply-To: (message from Stefan Monnier on Sat, 10 Jun 2023 12:18:11 -0400) Subject: Re: bug#63881: 29.0.91; apropos-documentation fails when load-history contains element whose CAR is nil References: <878rd0c4df.fsf@gmail.com> <83cz2b7pyp.fsf@gnu.org> <83ttvfzn1e.fsf@gnu.org> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 63881-done Cc: 63881-done@debbugs.gnu.org, visuweshm@gmail.com 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: Stefan Monnier > Cc: visuweshm@gmail.com, 63881@debbugs.gnu.org > Date: Sat, 10 Jun 2023 12:18:11 -0400 > > > Stefan, does the below look good for emacs-29? > > Yup, definitely. Sorry 'bout that. Thanks, installed on emacs-29 and closing the bug. From unknown Sat Jun 21 10:40:20 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 09 Jul 2023 11:24:09 +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