[Top][All Lists]

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

Re: Problem with align-regexp with GNU/Emacs 29+

From: Lele Gaifax
Subject: Re: Problem with align-regexp with GNU/Emacs 29+
Date: Fri, 10 Mar 2023 17:38:25 +0100
User-agent: Gnus/5.13 (Gnus v5.13)

Lele Gaifax <> writes:

> But your positive check suggest that the problem is on my side, in some
> way: I will try to update my Emacses and report back.

Ok, I found *my* problem after all!

I took the long route to realize that it was actually mine, convinced as
I was that what I did in the various Emacses was exactly the same: I
extracted a fresh copy of Emacs master and compiled it, then added the
following simple test in test/lisp/align-tests.el

  (ert-deftest align-regexp ()
    (should (equal
               (insert "a, b, c\none, two, three\n")
               (align-regexp (point-min) (point-max) ",\\(\\s-*\\)" 1 1 t)
               (buffer-substring-no-properties (point-min) (point-max)))

that, with my surprise, a "make lisp/align-tests" passed! 8-}

The good news is that, back to my interactive Emacs session, I did my
original task again and this time it worked flawlessly, both with Emacs
29 *and* with Emacs 30.

The bad news is that I could not replicate what I did wrong: I can only
assume I blindly entered the wrong regexp.


Thank you and sorry for the noise,
bye, lele.
nickname: Lele Gaifax | Dire che Emacs è "conveniente" è come
real: Emanuele Gaifas | etichettare l'ossigeno come "utile"      |                           -- Rens Troost

reply via email to

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