unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Lele Gaifax <lele@metapensiero.it>
To: help-gnu-emacs@gnu.org
Subject: Re: Problem with align-regexp with GNU/Emacs 29+
Date: Fri, 10 Mar 2023 17:38:25 +0100	[thread overview]
Message-ID: <875yb8sgse.fsf@metapensiero.it> (raw)
In-Reply-To: 87lek5uknj.fsf@metapensiero.it

Lele Gaifax <lele@metapensiero.it> 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
             (with-temp-buffer
               (text-mode)
               (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)))
             "a,\tb,\tc\none,\ttwo,\tthree\n")))

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.

TIL!

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"
lele@etour.tn.it      |                           -- Rens Troost




      parent reply	other threads:[~2023-03-10 16:38 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-08 19:54 Problem with align-regexp with GNU/Emacs 29+ Lele Gaifax
2023-03-10  0:41 ` Michael Heerdegen
2023-03-10  7:32   ` Lele Gaifax
2023-03-10 15:57     ` Michael Heerdegen
2023-03-10 16:38     ` Lele Gaifax [this message]

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=875yb8sgse.fsf@metapensiero.it \
    --to=lele@metapensiero.it \
    --cc=help-gnu-emacs@gnu.org \
    /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.
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).