]> git.eshelyaron.com Git - emacs.git/commitdiff
Add whitespace at the end of a filled buffer
authorzappo <zappo@users.sourceforge.net>
Sat, 23 Aug 2008 00:18:04 +0000 (00:18 +0000)
committerEdward John Steere <edward.steere@gmail.com>
Wed, 25 Jan 2017 16:30:35 +0000 (18:30 +0200)
* 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

index efad8640aada31bc61f650d0783730ab7fc216b7..98c538ab002549e88a6e74201609a8b841812356 100644 (file)
@@ -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))