From 67a3f00f2a029a74134d3d45079f97296db4e862 Mon Sep 17 00:00:00 2001 From: Taylor R Campbell Date: Mon, 11 Apr 2011 18:49:08 +0000 Subject: Support setting the mark in test cases, indicated by an underscore. Ignore-this: 83a9ba4b44db09fbc9b734399fcbb177 darcs-hash:20110411184908-00fcc-d4bdfeac48a61f997fdb29269784edc2b0b0b9ac --- test.el | 3 +++ 1 file changed, 3 insertions(+) (limited to 'test.el') diff --git a/test.el b/test.el index 1c4d957..1136c55 100644 --- a/test.el +++ b/test.el @@ -42,6 +42,9 @@ Four arguments: the paredit command, the text of the buffer (set (make-local-variable 'comment-column) 40) (insert before) (goto-char (point-min)) + (if (search-forward "_" nil t) + (progn (backward-delete-char +1) (set-mark (point)))) + (goto-char (point-min)) (search-forward "|") (backward-delete-char +1) (if (cond ((eq expected 'error) -- cgit v1.2.1