all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Emanuel Berg <incal@dataswamp.org>
To: help-gnu-emacs@gnu.org
Subject: Re: bug with `apropos-value' in Emacs 29.0?
Date: Sun, 22 May 2022 02:38:27 +0200	[thread overview]
Message-ID: <875ylycsfw.fsf@dataswamp.org> (raw)
In-Reply-To: 87fsl24db4.fsf@web.de

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




  reply	other threads:[~2022-05-22  0:38 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-21 18:34 bug with `apropos-value' in Emacs 29.0? Emanuel Berg
2022-05-21 18:41 ` Marcin Borkowski
2022-05-21 19:10   ` Emanuel Berg
2022-05-21 19:13     ` Emanuel Berg
2022-05-21 22:45       ` Emanuel Berg
2022-05-21 22:52         ` Emanuel Berg
2022-05-21 23:29           ` Michael Heerdegen
2022-05-21 23:33             ` Emanuel Berg
2022-05-21 23:51               ` Michael Heerdegen
2022-05-21 23:36             ` Emanuel Berg
2022-05-22  0:00               ` Michael Heerdegen
2022-05-22  0:05                 ` Emanuel Berg
2022-05-22  0:32                   ` Michael Heerdegen
2022-05-22  0:38                     ` Emanuel Berg [this message]
2022-05-22  1:07                       ` Michael Heerdegen
2022-05-22  4:51                         ` Emanuel Berg
2022-05-22  5:27                           ` Michael Heerdegen
2022-05-22 13:54                           ` Stefan Monnier via Users list for the GNU Emacs text editor
2022-05-22 17:43                             ` Emanuel Berg
2022-05-23  5:19                               ` Marcin Borkowski
2022-05-23 21:07                                 ` get Emacs soruce (was: Re: bug with `apropos-value' in Emacs 29.0?) Emanuel Berg
2022-05-22  7:09     ` bug with `apropos-value' in Emacs 29.0? Marcin Borkowski
2022-05-23 21:22       ` output Emacs version (was: Re: bug with `apropos-value' in Emacs 29.0?) Emanuel Berg
2022-05-22  7:37     ` bug with `apropos-value' in Emacs 29.0? Kévin Le Gouguec
2022-05-21 18:49 ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=875ylycsfw.fsf@dataswamp.org \
    --to=incal@dataswamp.org \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

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

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