From: zappo Date: Sat, 23 Aug 2008 00:18:04 +0000 (+0000) Subject: Add whitespace at the end of a filled buffer X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=2316f190de3c1bbe72cefa5615ac2e7420c9230f;p=emacs.git 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. --- 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))