unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: "Basil L. Contovounesios" <contovob@tcd.ie>
To: Stefan Kangas <stefan@marxist.se>
Cc: Nathanael Schweers <NSchweers@mailbox.org>, 24309@debbugs.gnu.org
Subject: bug#24309: 25.1; Problem in variable reference in docstrings.
Date: Sun, 27 Dec 2020 20:01:24 +0000	[thread overview]
Message-ID: <87eejbqaqz.fsf@tcd.ie> (raw)
In-Reply-To: <877dp3rpsj.fsf@tcd.ie> (Basil L. Contovounesios's message of "Sun, 27 Dec 2020 19:51:08 +0000")

"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	other threads:[~2020-12-27 20:01 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-25 23:07 bug#24309: 25.1; Problem in variable reference in docstrings Nathanael Schweers
2016-08-26  8:55 ` Eli Zaretskii
2019-11-08  3:48   ` Stefan Kangas
2020-12-27 19:51     ` Basil L. Contovounesios
2020-12-27 20:01       ` Basil L. Contovounesios [this message]
2020-12-27 22:15       ` Lars Ingebrigtsen
2021-01-10 13:50         ` Basil L. Contovounesios

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=87eejbqaqz.fsf@tcd.ie \
    --to=contovob@tcd.ie \
    --cc=24309@debbugs.gnu.org \
    --cc=NSchweers@mailbox.org \
    --cc=stefan@marxist.se \
    /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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).