emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] scratch/merge-cedet-tests 2316f19 173/316: Add whitespace


From: Edward John Steere
Subject: [Emacs-diffs] scratch/merge-cedet-tests 2316f19 173/316: Add whitespace at the end of a filled buffer
Date: Fri, 27 Jan 2017 20:03:38 +0000 (UTC)

branch: scratch/merge-cedet-tests
commit 2316f190de3c1bbe72cefa5615ac2e7420c9230f
Author: zappo <address@hidden>
Commit: Edward John Steere <address@hidden>

    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 efad864..98c538a 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))
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]