bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#24309: 25.1; Problem in variable reference in docstrings.


From: Basil L. Contovounesios
Subject: bug#24309: 25.1; Problem in variable reference in docstrings.
Date: Sun, 27 Dec 2020 20:01:24 +0000
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

"Basil L. Contovounesios" <contovob@tcd.ie> writes:

>  (ert-deftest help-mode-tests-xref-button ()
> -  (with-temp-buffer
> -    (insert "See also the function ‘interactive’.")
> -    (string-match help-xref-symbol-regexp (buffer-string))
> -    (help-xref-button 8 'help-function)
> -    (should-not (button-at 22))
> -    (should-not (button-at 35))
> -    (let ((button (button-at 30)))
> -      (should (eq (button-type button) 'help-function)))))
> +  (let* ((fmt "See also the function ‘%s’.")
> +         ;; 1+ translates string index to buffer position.
> +         (beg (1+ (string-search "%" fmt))))
> +    (with-temp-buffer
> +      ;; (display-buffer (current-buffer))

Oops, will remove this debugging leftover.

-- 
Basil





reply via email to

[Prev in Thread] Current Thread [Next in Thread]