From: Stefan Kangas <stefan@marxist.se>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: 17797@debbugs.gnu.org, Thorsten Jolitz <tjolitz@gmail.com>
Subject: bug#17797: 24.3; Include ert-buffer.el in Emacs
Date: Thu, 22 Oct 2020 20:00:26 -0700 [thread overview]
Message-ID: <CADwFkmmV0VPfsCyCBWFtzvrO3vX50B5zZXq5y_=uP-Yd-YKHTg@mail.gmail.com> (raw)
In-Reply-To: <jwvfvj0vdan.fsf-monnier+emacsbugs@gnu.org> (Stefan Monnier's message of "Thu, 19 Jun 2014 16:46:41 -0400")
Stefan Monnier <monnier@iro.umontreal.ca> writes:
>> The library 'ert-buffer.el', which does not seem to have a repository
>> nor to be included in any package repo, but can easily be found via a
>> web-search, offers some fundamental extensions to ERT functionality in
>> Emacs core and should thus be included in core.
>
> I don't have a strong opinion either way because I don't know this area
> well enough to judge how useful this can be. So whoever thinks this is
> a good or a bad idea, please chime in,
This seems to be:
https://docutils.sourceforge.io/tools/editors/emacs/tests/ert-buffer.el
I'm not sure that this is useful for general use. It has some
interesting ideas, but I'm not a big fan of the forms you seem to end up
with:
;; (should (ert-equal-buffer '(insert "foo")
;; ; Insertion of "foo"...
;; (concat ert-Buf-point-char ert-Buf-mark-char)
;; ; ...into an empty buffer with point and mark...
;; (concat ert-Buf-mark-char "foo"
;; ert-Buf-point-char)))
;; ; ...should result in a buffer containing "foo"
;; ; with point and mark moved appropriately.
next prev parent reply other threads:[~2020-10-23 3:00 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-17 13:32 bug#17797: 24.3; Include ert-buffer.el in Emacs Thorsten Jolitz
2014-06-19 20:46 ` Stefan Monnier
2020-10-23 3:00 ` Stefan Kangas [this message]
2020-12-06 9:19 ` Stefan Kangas
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CADwFkmmV0VPfsCyCBWFtzvrO3vX50B5zZXq5y_=uP-Yd-YKHTg@mail.gmail.com' \
--to=stefan@marxist.se \
--cc=17797@debbugs.gnu.org \
--cc=monnier@iro.umontreal.ca \
--cc=tjolitz@gmail.com \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.