From 2316f190de3c1bbe72cefa5615ac2e7420c9230f Mon Sep 17 00:00:00 2001 From: zappo Date: Sat, 23 Aug 2008 00:18:04 +0000 Subject: [PATCH] Add whitespace at the end of a filled buffer * test/manual/cedet/cedet-integ-test.el (cit-srecode-fill-with-stuff): Protect erase-buffer call. Add extra whitespace at end of empty filled buffers. --- test/manual/cedet/cedet-integ-test.el | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/test/manual/cedet/cedet-integ-test.el b/test/manual/cedet/cedet-integ-test.el index efad8640aad..98c538ab002 100644 --- a/test/manual/cedet/cedet-integ-test.el +++ b/test/manual/cedet/cedet-integ-test.el @@ -128,9 +128,16 @@ EMPTY-DICT-ENTRIES are dictionary entries for the EMPTY fill macro." ;; (find-file (cit-file filename)) (srecode-load-tables-for-mode major-mode) - (erase-buffer) + (condition-case nil + ;; Protect against a font-lock bug. + (erase-buffer) + (error nil)) (apply 'srecode-insert "file:empty" empty-dict-entries) + (save-excursion + (goto-char (point-max)) + (insert "\n\n")) + ;; 3 a) Parse the sources (setq post-empty-tags (semantic-fetch-tags)) -- 2.39.2