GNU bug report logs - #17797
24.3; Include ert-buffer.el in Emacs

Previous Next

Package: emacs;

Reported by: Thorsten Jolitz <tjolitz <at> gmail.com>

Date: Tue, 17 Jun 2014 15:02:01 UTC

Severity: wishlist

Tags: wontfix

Found in version 24.3

Done: Stefan Kangas <stefan <at> marxist.se>

Bug is archived. No further changes may be made.

Full log


Message #11 received at 17797 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Kangas <stefan <at> marxist.se>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: 17797 <at> debbugs.gnu.org, Thorsten Jolitz <tjolitz <at> gmail.com>
Subject: Re: bug#17797: 24.3; Include ert-buffer.el in Emacs
Date: Thu, 22 Oct 2020 20:00:26 -0700
Stefan Monnier <monnier <at> 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.




This bug report was last modified 4 years and 169 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.