[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: bug with `apropos-value' in Emacs 29.0?
From: |
Emanuel Berg |
Subject: |
Re: bug with `apropos-value' in Emacs 29.0? |
Date: |
Sun, 22 May 2022 02:38:27 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
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-property 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 filtered)) (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-keys (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 ((--dolist-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
- Re: bug with `apropos-value' in Emacs 29.0?, (continued)
- Re: bug with `apropos-value' in Emacs 29.0?, Emanuel Berg, 2022/05/21
- Re: bug with `apropos-value' in Emacs 29.0?, Emanuel Berg, 2022/05/21
- Re: bug with `apropos-value' in Emacs 29.0?, Emanuel Berg, 2022/05/21
- Re: bug with `apropos-value' in Emacs 29.0?, Michael Heerdegen, 2022/05/21
- Re: bug with `apropos-value' in Emacs 29.0?, Emanuel Berg, 2022/05/21
- Re: bug with `apropos-value' in Emacs 29.0?, Michael Heerdegen, 2022/05/21
- Re: bug with `apropos-value' in Emacs 29.0?, Emanuel Berg, 2022/05/21
- Re: bug with `apropos-value' in Emacs 29.0?, Michael Heerdegen, 2022/05/21
- Re: bug with `apropos-value' in Emacs 29.0?, Emanuel Berg, 2022/05/21
- Re: bug with `apropos-value' in Emacs 29.0?, Michael Heerdegen, 2022/05/21
- Re: bug with `apropos-value' in Emacs 29.0?,
Emanuel Berg <=
- Re: bug with `apropos-value' in Emacs 29.0?, Michael Heerdegen, 2022/05/21
- Re: bug with `apropos-value' in Emacs 29.0?, Emanuel Berg, 2022/05/22
- Re: bug with `apropos-value' in Emacs 29.0?, Michael Heerdegen, 2022/05/22
- Re: bug with `apropos-value' in Emacs 29.0?, Stefan Monnier, 2022/05/22
- Re: bug with `apropos-value' in Emacs 29.0?, Emanuel Berg, 2022/05/22
- Re: bug with `apropos-value' in Emacs 29.0?, Marcin Borkowski, 2022/05/23
- get Emacs soruce (was: Re: bug with `apropos-value' in Emacs 29.0?), Emanuel Berg, 2022/05/23
- Re: bug with `apropos-value' in Emacs 29.0?, Marcin Borkowski, 2022/05/22
- output Emacs version (was: Re: bug with `apropos-value' in Emacs 29.0?), Emanuel Berg, 2022/05/23
- Re: bug with `apropos-value' in Emacs 29.0?, Kévin Le Gouguec, 2022/05/22