[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Distinguish between regional undo and undo to the beginning in undo-
From: |
Yuan Fu |
Subject: |
Re: Distinguish between regional undo and undo to the beginning in undo-equiv-table |
Date: |
Wed, 3 Mar 2021 15:33:13 -0500 |
>
> Thanks a lot (especially for improving the docstring ;-). In my
> experience, this part of the code is quite delicate and I wouldn't be
> surprised to find yet more bugs for other corner cases. So I think it's
> very important to document those corner cases with tests. Any chance
> you could add matching tests to test/lisp/simple-tests.el in your patch?
>
This patch applies on top of the first one. I added more docstrings since you
seem to appreciate it. I came up with some simple test cases for ordinary
mapping, t and ‘undo-in-region in the table. Do you have other corner cases in
mind? I also added some simple test cases for undo in region. I couldn’t wrap
my head around the original tests so I started a new one below.
Yuan
undo-in-region-2.patch
Description: Binary data
- Distinguish between regional undo and undo to the beginning in undo-equiv-table, Yuan Fu, 2021/03/02
- Re: Distinguish between regional undo and undo to the beginning in undo-equiv-table, Stefan Monnier, 2021/03/02
- Re: Distinguish between regional undo and undo to the beginning in undo-equiv-table, Yuan Fu, 2021/03/03
- Re: Distinguish between regional undo and undo to the beginning in undo-equiv-table, Stefan Monnier, 2021/03/03
- Re: Distinguish between regional undo and undo to the beginning in undo-equiv-table,
Yuan Fu <=
- Re: Distinguish between regional undo and undo to the beginning in undo-equiv-table, Stefan Monnier, 2021/03/03
- Re: Distinguish between regional undo and undo to the beginning in undo-equiv-table, Yuan Fu, 2021/03/03
- Re: Distinguish between regional undo and undo to the beginning in undo-equiv-table, Yuan Fu, 2021/03/03
- Re: Distinguish between regional undo and undo to the beginning in undo-equiv-table, Stefan Monnier, 2021/03/03
- Re: Distinguish between regional undo and undo to the beginning in undo-equiv-table, Yuan Fu, 2021/03/04
- Re: Distinguish between regional undo and undo to the beginning in undo-equiv-table, Stefan Monnier, 2021/03/05
- Re: Distinguish between regional undo and undo to the beginning in undo-equiv-table, Yuan Fu, 2021/03/06
- Re: Distinguish between regional undo and undo to the beginning in undo-equiv-table, Stefan Monnier, 2021/03/06
- Re: Distinguish between regional undo and undo to the beginning in undo-equiv-table, Yuan Fu, 2021/03/11
- Re: Distinguish between regional undo and undo to the beginning in undo-equiv-table, Stefan Monnier, 2021/03/11