Hi

On 20/09/2026 07:56, Ihor Radchenko wrote:
"Pedro A. Aranda" <[email protected]> writes:

upon further thought, I don't know if here or emacs-devel is the place
to discuss whether there should be a flag à la :failure-expected to
signal that you know that there are "repeated" searches that should not
be treated as non-duplicates.

The duplicate detection is not a part of ERT library. It is our own
testing in testing/lisp/test-duplicates-detector.el


So here would be the place :-)

In a longer test it might end-up being 1) tedious to roght, and 2)
difficult to follow.

An alternative would be a `should-ignore-dup' macro...

WDTY?

I am confused.
What should that macro do? How is it different from
`org-test-ignore-duplicate' macro?

Something like

(defmacro should-ignore-dup(&rest body)
  (org-test-ignore-duplicate (should ,@body)))

So that we could write:

(should-ignore-dup (search-forward-regexp "^Hello!"))
...
(should-ignore-dup (search-forward-regexp "^Hello!"))

IMHO it be more compact than

(org-test-ignore-duplicate
  (should (search-forward-regexp "^Hello!")))
...
(org-test-ignore-duplicate
  (should (search-forward-regexp "^Hello!")))

My .2cents, /PA

--
Pedro A. Aranda
ox-latex & ox-beamer maintainer

Sagen's Paradeiser! (ORF: Als Radiohören gefährlich war) => write BE!
IA: onomatopeya del rebuzno
2nd year of the New Koprocracy


Reply via email to