GNU bug report logs - #24309
25.1; Problem in variable reference in docstrings.

Previous Next

Package: emacs;

Reported by: Nathanael Schweers <NSchweers <at> mailbox.org>

Date: Thu, 25 Aug 2016 23:20:01 UTC

Severity: minor

Tags: fixed, patch

Merged with 6601

Found in version 25.1

Fixed in version 28.1

Done: "Basil L. Contovounesios" <contovob <at> tcd.ie>

Bug is archived. No further changes may be made.

Full log


Message #37 received at 24309 <at> debbugs.gnu.org (full text, mbox):

From: "Basil L. Contovounesios" <contovob <at> tcd.ie>
To: Stefan Kangas <stefan <at> marxist.se>
Cc: Nathanael Schweers <NSchweers <at> mailbox.org>, Eli Zaretskii <eliz <at> gnu.org>,
 24309 <at> debbugs.gnu.org
Subject: Re: bug#24309: 25.1; Problem in variable reference in docstrings.
Date: Sun, 27 Dec 2020 20:01:24 +0000
"Basil L. Contovounesios" <contovob <at> 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




This bug report was last modified 4 years and 190 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.