From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Emanuel Berg Newsgroups: gmane.emacs.help Subject: Re: bug with `apropos-value' in Emacs 29.0? Date: Sun, 22 May 2022 02:38:27 +0200 Message-ID: <875ylycsfw.fsf@dataswamp.org> References: <87mtfa68h1.fsf@dataswamp.org> <878rquafth.fsf@mbork.pl> <87mtfaog5n.fsf@dataswamp.org> <87h75iog0b.fsf@dataswamp.org> <87tu9ild2c.fsf@dataswamp.org> <87o7zqlcrv.fsf@dataswamp.org> <87fsl2tqg6.fsf@web.de> <87a6balaqj.fsf@dataswamp.org> <874k1itozr.fsf@web.de> <875ylyl9du.fsf@dataswamp.org> <87fsl24db4.fsf@web.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26816"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) To: help-gnu-emacs@gnu.org Cancel-Lock: sha1:cwCPI4wSndpbZ0XLvSPG4HjDRD0= Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sun May 22 02:39:22 2022 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nsZcv-0006nH-5m for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 22 May 2022 02:39:21 +0200 Original-Received: from localhost ([::1]:59582 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nsZct-0007dW-QT for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 21 May 2022 20:39:19 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52110) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nsZcF-0007dA-J2 for help-gnu-emacs@gnu.org; Sat, 21 May 2022 20:38:39 -0400 Original-Received: from ciao.gmane.io ([116.202.254.214]:54856) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nsZcC-0006o7-PI for help-gnu-emacs@gnu.org; Sat, 21 May 2022 20:38:39 -0400 Original-Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1nsZcA-0005vf-HM for help-gnu-emacs@gnu.org; Sun, 22 May 2022 02:38:34 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: help-gnu-emacs@gnu.org Mail-Copies-To: never Received-SPF: pass client-ip=116.202.254.214; envelope-from=geh-help-gnu-emacs@m.gmane-mx.org; helo=ciao.gmane.io 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_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:137344 Archived-At: Michael Heerdegen wrote: >> `debug-on-signal' is nil. > > Hmm. Does loading the .el source of apropos.el make > a difference? Could be related to using native compilation. Yes, then it immediatly doesn't work, without the help from tramp-sh: Debugger entered--Lisp error: (error "Invalid key sequence in substitution: ‘--pcase-mac...") error("Invalid key sequence in substitution: `%s'" "--pcase-macroexpander) (define-symbol-props (pcase...") substitute-command-keys(#("((\"/home/incal/src/emacs/lisp/apropos.el\" apropos-..." 1126786 1126788 (face match))) (setq doc (substitute-command-keys doc)) (cond ((equal doc "") (setq doc "(not documented)")) (do-keys (setq doc (substitute-command-keys doc)))) (let ((opoint (point)) (ocol (current-column))) (cond ((equal doc "") (setq doc "(not documented)")) (do-keys (setq doc (substitute-command-keys doc)))) (insert doc) (if (equal doc "(not documented)") (put-text-property opoint (point) 'font-lock-face 'shadow)) (let ((fill-column (+ 5 (if (integerp emacs-lisp-docstring-fill-column) emacs-lisp-docstring-fill-column fill-column))) (fill-prefix (make-string ocol 32))) (fill-region opoint (point) nil t))) (progn (if apropos-compact-layout (insert (propertize "\11" 'display '(space :align-to 32)) " ") (insert " ")) (if apropos-multi-type (let ((button-face (button-type-get type 'face))) (if (consp button-face) nil (setq button-face (list button-face))) (insert-text-button (if apropos-compact-layout (format "<%s>" (button-type-get type 'apropos-short-label)) (button-type-get type 'apropos-label)) 'type type 'apropos-symbol (car apropos-item)) (insert (if apropos-compact-layout " " ": "))) (insert-text-button " " 'type type 'skip t 'face 'default 'apropos-symbol (car apropos-item))) (let ((opoint (point)) (ocol (current-column))) (cond ((equal doc "") (setq doc "(not documented)")) (do-keys (setq doc (substitute-command-keys doc)))) (insert doc) (if (equal doc "(not documented)") (put-text- property opoint (point) 'font-lock-face 'shadow)) (let ((fill-column (+ 5 (if (integerp emacs-lisp-docstring-fill-column) emacs-lisp-docstring-fill-column fill-column))) (fill-prefix (make-string ocol 32))) (fill-region opoint (point) nil t))) (or (bolp) (terpri))) (if (stringp doc) (progn (if apropos-compact-layout (insert (propertize "\11" 'display '(space :align-to 32)) " ") (insert " ")) (if apropos-multi-type (let ((button-face (button-type-get type 'face))) (if (consp button-face) nil (setq button-face (list button-face))) (insert-text-button (if apropos-compact-layout (format "<%s>" (button-type-get type ...)) (button-type-get type 'apropos-label)) 'type type 'apropos-symbol (car apropos-item)) (insert (if apropos-compact-layout " " ": "))) (insert-text-button " " 'type type 'skip t 'face 'default 'apropos-symbol (car apropos-item))) (let ((opoint (point)) (ocol (current-column))) (cond ((equal doc "") (setq doc "(not documented)")) (do-keys (setq doc (substitute-command-keys doc)))) (insert doc) (if (equal doc "(not documented)") (put-text -property opoint (point) 'font-lock-face 'shadow)) (let ((fill-column (+ 5 (if ... emacs-lisp-docstring-fill-column fill-column))) (fill-prefix (make-string ocol 32))) (fill-region opoint (point) nil t))) (or (bolp) (terpri)))) (let ((doc (nth i apropos-item))) (if (stringp doc) (progn (if apropos-compact-layout (insert (propertize "\11" 'display '(space :align-to 32)) " ") (insert " ")) (if apropos-multi-type (let ((button-face (button-type-get type ...))) (if (consp button-face) nil (setq button-face (list button-face))) (insert-text-button (if apropos-compact-layout (format "<%s>" ...) (button-type-get type ...)) 'type type 'apropos-symbol (car apropos-item)) (insert (if apropos-compact-layout " " ": "))) (insert-text-button " " 'type type 'skip t 'face 'default 'apropos-symbol (car apropos-item))) (let ((opoint (point)) (ocol (current-column))) (cond ((equal doc "") (setq doc "(not documented)")) (do-keys (setq doc (substitute-command-keys doc)))) (insert doc) (if (equal doc "(not documented)") (put-text-p roperty opoint (point) 'font-lock-face 'shadow)) (let ((fill-column (+ 5 ...)) (fill-prefix (make-string ocol 32))) (fill-region opoint (point) nil t))) (or (bolp) (terpri))))) apropos-print-doc(3 apropos-variable t) (let ((apropos-item (car --dolist-tail--))) (if (and spacing (not (bobp))) (progn (princ spacing))) (setq symbol (car apropos-item)) (if (not (numberp (car (cdr apropos-item)))) (setq apropos-item (cons (car apropos-item) (cons nil (cdr apropos-item))))) (if (= (point) button-end) (progn (terpri))) (insert-text-button (symbol-name symbol) 'type 'apropos-symbol 'skip apropos-multi-type 'face 'apropos-symbol) (setq button-end (point)) (if (and (eq apropos-sort-by-scores 'verbose) (car (cdr apropos-item))) (insert " (" (number-to-string (car (cdr apropos-item))) ") ")) (if apropos-compact-layout nil (and do-keys (commandp symbol) (not (eq symbol 'self-insert-command)) (indent-to 30 1) (if (let ((keys (save-current-buffer ... ...)) filtered) (let ((--dolist-tail-- keys)) (while --dolist-tail -- (let ... ... ...))) (setq item filtered)) (insert (mapconcat #'(lambda ... ... ... key) item ", ")) (insert "M-x ... RET") (put-text-property (- (point) 11) (- (point) 8) 'face 'apropos-keybinding) (put-text-property (- (point) 3) (point) 'face 'apropos-keybinding))) (terpri)) (apropos-print-doc 2 (if (commandp symbol) 'apropos-command (if (macrop symbol) 'apropos-macro 'apropos-function)) (not nosubst)) (apropos-print-doc 3 (if (custom-variable-p symbol) 'apropos-user-option 'apropos-variable) (not nosubst)) (apropos-print-doc 7 'apropos-group t) (apropos-print-doc 6 'apropos-face t) (apropos-print-doc 5 'apropos-widget t) (apropos-print-doc 4 'apropos-plist nil) (setq --dolist-tail-- (cdr --dolist-tail--))) (while --dolist-tail-- (let ((apropos-item (car --dolist-tail--))) (if (and spacing (not (bobp))) (progn (princ spacing))) (setq symbol (car apropos-item)) (if (not (numberp (car (cdr apropos-item)))) (setq apropos-item (cons (car apropos-item) (cons nil (cdr apropos-item))))) (if (= (point) button-end) (progn (terpri))) (insert-text-button (symbol-name symbol) 'type 'apropos-symbol 'skip apropos-multi-type 'face 'apropos-symbol) (setq button-end (point)) (if (and (eq apropos-sort-by-scores 'verbose) (car (cdr apropos-item))) (insert " (" (number-to-string (car (cdr apropos-item))) ") ")) (if apropos-compact-layout nil (and do-keys (commandp symbol) (not (eq symbol 'self-insert-command)) (indent-to 30 1) (if (let ((keys ...) filtered) (let (...) (while --dolist-tail-- ...)) (setq item fi ltered)) (insert (mapconcat #'... item ", ")) (insert "M-x ... RET") (put-text-property (- (point) 11) (- (point) 8) 'face 'apropos-keybinding) (put-text-property (- (point) 3) (point) 'face 'apropos-keybinding))) (terpri)) (apropos-print-doc 2 (if (commandp symbol) 'apropos-command (if (macrop symbol) 'apropos-macro 'apropos-function)) (not nosubst)) (apropos-print-doc 3 (if (custom-variable-p symbol) 'apropos-user-option 'apropos-variable) (not nosubst)) (apropos-print-doc 7 'apropos-group t) (apropos-print-doc 6 'apropos-face t) (apropos-print-doc 5 'apropos-widget t) (apropos-print-doc 4 'apropos-plist nil) (setq --dolist-tail-- (cdr --dolist-tail--)))) (let ((--dolist-tail-- p)) (while --dolist-tail-- (let ((apropos-item (car --dolist-tail--))) (if (and spacing (not (bobp))) (progn (princ spacing))) (setq symbol (car apropos-item)) (if (not (numberp (car (cdr apropos-item)))) (setq apropos-item (cons (car apropos-item) (cons nil (cdr apropos-item))))) (if (= (point) button-end) (progn (terpri))) (insert-text-button (symbol-name symbol) 'type 'apropos-symbol 'skip apropos-multi-type 'face 'apropos-symbol) (setq button-end (point)) (if (and (eq apropos-sort-by-scores 'verbose) (car (cdr apropos-item))) (insert " (" (number-to-string (car (cdr apropos-item))) ") ")) (if apropos-compact-layout nil (and do-keys (commandp symbol) (not (eq symbol 'self-insert-command)) (indent-to 30 1) (if (let (... filtered) (let ... ...) (setq item filtered )) (insert (mapconcat ... item ", ")) (insert "M-x ... RET") (put-text-property (- ... 11) (- ... 8) 'face 'apropos-keybinding) (put-text-property (- ... 3) (point) 'face 'apropos-keybinding))) (terpri)) (apropos-print-doc 2 (if (commandp symbol) 'apropos-command (if (macrop symbol) 'apropos-macro 'apropos-function)) (not nosubst)) (apropos-print-doc 3 (if (custom-variable-p symbol) 'apropos-user-option 'apropos-variable) (not nosubst)) (apropos-print-doc 7 'apropos-group t) (apropos-print-doc 6 'apropos-face t) (apropos-print-doc 5 'apropos-widget t) (apropos-print-doc 4 'apropos-plist nil) (setq --dolist-tail-- (cdr --dolist-tail--))))) (let ((p apropos-accumulator) (old-buffer (current-buffer)) (inhibit-read-only t) (button-end 0) symbol item) (set-buffer standard-output) (apropos-mode) (apropos--preamble text) (let ((--dolist-tail-- p)) (while --dolist-tail-- (let ((apropos-item (car --dolist-tail--))) (if (and spacing (not (bobp))) (progn (princ spacing))) (setq symbol (car apropos-item)) (if (not (numberp (car ...))) (setq apropos-item (cons (car apropos-item) (cons nil ...)))) (if (= (point) button-end) (progn (terpri))) (insert-text-button (symbol-name symbol) 'type 'apropos-symbol 'skip apropos-multi-type 'face 'apropos-symbol) (setq button-end (point)) (if (and (eq apropos-sort-by-scores 'verbose) (car (cdr apropos-item))) (insert " (" (number-to-string (car ...)) ") ")) (if apropos-compact-layout nil (and do-ke ys (commandp symbol) (not (eq symbol ...)) (indent-to 30 1) (if (let ... ... ...) (insert ...) (insert "M-x ... RET") (put-text-property ... ... ... ...) (put-text-property ... ... ... ...))) (terpri)) (apropos-print-doc 2 (if (commandp symbol) 'apropos-command (if (macrop symbol) 'apropos-macro 'apropos-function)) (not nosubst)) (apropos-print-doc 3 (if (custom-variable-p symbol) 'apropos-user-option 'apropos-variable) (not nosubst)) (apropos-print-doc 7 'apropos-group t) (apropos-print-doc 6 'apropos-face t) (apropos-print-doc 5 'apropos-widget t) (apropos-print-doc 4 'apropos-plist nil) (setq --dolist-tail-- (cdr --dolist-tail--))))) (set (make-local-variable 'truncate-partial-width-windows) t) (set (make-local-variable 'truncate-lines) t)) (progn (let ((p apropos-accumulator) (old-buffer (current-buffer)) (inhibit-read-only t) (button-end 0) symbol item) (set-buffer standard-output) (apropos-mode) (apropos--preamble text) (let ((--dolist-tail-- p)) (while --dolist-tail-- (let ((apropos-item (car --dolist-tail--))) (if (and spacing (not ...)) (progn (princ spacing))) (setq symbol (car apropos-item)) (if (not (numberp ...)) (setq apropos-item (cons ... ...))) (if (= (point) button-end) (progn (terpri))) (insert-text-button (symbol-name symbol) 'type 'apropos-symbol 'skip apropos-multi-type 'face 'apropos-symbol) (setq button-end (point)) (if (and (eq apropos-sort-by-scores ...) (car ...)) (insert " (" (number-to-string ...) ") ")) (if apropos-compact-layout nil (and do-keys (commandp symbol) (not ...) (indent-to 30 1) (if .. . ... ... ... ...)) (terpri)) (apropos-print-doc 2 (if (commandp symbol) 'apropos-command (if ... ... ...)) (not nosubst)) (apropos-print-doc 3 (if (custom-variable-p symbol) 'apropos-user-option 'apropos-variable) (not nosubst)) (apropos-print-doc 7 'apropos-group t) (apropos-print-doc 6 'apropos-face t) (apropos-print-doc 5 'apropos-widget t) (apropos-print-doc 4 'apropos-plist nil) (setq --dolist-tail-- (cdr --dolist-tail--))))) (set (make-local-variable 'truncate-partial-width-windows) t) (set (make-local-variable 'truncate-lines) t))) (prog1 (progn (let ((p apropos-accumulator) (old-buffer (current-buffer)) (inhibit-read-only t) (button-end 0) symbol item) (set-buffer standard-output) (apropos-mode) (apropos--preamble text) (let ((--dolist-tail-- p)) (while --dolist-tail-- (let ((apropos-item ...)) (if (and spacing ...) (progn ...)) (setq symbol (car apropos-item)) (if (not ...) (setq apropos-item ...)) (if (= ... button-end) (progn ...)) (insert-text-button (symbol-name symbol) 'type 'apropos-symbol 'skip apropos-multi-type 'face 'apropos-symbol) (setq button-end (point)) (if (and ... ...) (insert " (" ... ") ")) (if apropos-compact-layout nil (and do-keys ... ... ... ...) (terpri)) (apropos-print-doc 2 (if ... ... ...) (not nosubst)) (apropos-print-doc 3 (if ... ... ...) (not nosubst)) (apropos-print-doc 7 'apropos- group t) (apropos-print-doc 6 'apropos-face t) (apropos-print-doc 5 'apropos-widget t) (apropos-print-doc 4 'apropos-plist nil) (setq --dolist-tail-- (cdr --dolist-tail--))))) (set (make-local-variable 'truncate-partial-width-windows) t) (set (make-local-variable 'truncate-lines) t))) (internal-temp-output-buffer-show buf)) (let* ((old-dir default-directory) (buf (save-current-buffer (set-buffer (get-buffer-create "*Apropos*")) (prog1 (current-buffer) (kill-all-local-variables) (setq default-directory old-dir) (setq buffer-read-only nil) (setq buffer-file-name nil) (setq buffer-undo-list t) (let ((inhibit-read-only t) (inhibit-modification-hooks t)) (erase-buffer) (run-hooks 'temp-buffer-setup-hook))))) (standard-output buf)) (prog1 (progn (let ((p apropos-accumulator) (old-buffer (current-buffer)) (inhibit-read-only t) (button-end 0) symbol item) (set-buffer standard-output) (apropos-mode) (apropos--preamble text) (let ((--dolist-tail-- p)) (while --dolist-tail-- (let (...) (if ... ...) (setq symbol ...) (if ... ...) (if ... ...) (insert-text-button ... ... ... ... apropos-multi-type ... ...) (setq button- end ...) (if ... ...) (if apropos-compact-layout nil ... ...) (apropos-print-doc 2 ... ...) (apropos-print-doc 3 ... ...) (apropos-print-doc 7 ... t) (apropos-print-doc 6 ... t) (apropos-print-doc 5 ... t) (apropos-print-doc 4 ... nil) (setq --dolist-tail-- ...)))) (set (make-local-variable 'truncate-partial-width-windows) t) (set (make-local-variable 'truncate-lines) t))) (internal-temp-output-buffer-show buf))) (if (null apropos-accumulator) (message "No apropos matches for `%s'" apropos-pattern) (setq apropos-accumulator (sort apropos-accumulator #'(lambda (a b) (if apropos-sort-by-scores (or (> ... ...) (and ... ...)) (string-lessp (car a) (car b)))))) (let* ((old-dir default-directory) (buf (save-current-buffer (set-buffer (get-buffer-create "*Apropos*")) (prog1 (current-buffer) (kill-all-local-variables) (setq default-directory old-dir) (setq buffer-read-only nil) (setq buffer-file-name nil) (setq buffer-undo-list t) (let (... ...) (erase-buffer) (run-hooks ...))))) (standard-output buf)) (prog1 (progn (let ((p apropos-accumulator) (old-buffer (current-buffer)) (inhibit-read-only t) (button-end 0) symbol item) (set-buffer standard-output) (apropos-mode) (apropos--preamble text) (let ((--dol ist-tail-- p)) (while --dolist-tail-- (let ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ...))) (set (make-local-variable 'truncate-partial-width-windows) t) (set (make-local-variable 'truncate-lines) t))) (internal-temp-output-buffer-show buf)))) apropos-print(nil "\n----------------\n") (let ((apropos-multi-type do-all)) (apropos-print nil "\n----------------\n")) apropos-value("70") (progn (apropos-value "70")) elisp--eval-last-sexp(nil) eval-last-sexp(nil) funcall-interactively(eval-last-sexp nil) command-execute(eval-last-sexp) -- underground experts united https://dataswamp.org/~incal