]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix diff-mode tests after renaming diff-font-lock-refine
authorCharles A. Roelli <charles@aurox.ch>
Mon, 4 Mar 2019 18:43:25 +0000 (19:43 +0100)
committerCharles A. Roelli <charles@aurox.ch>
Mon, 4 Mar 2019 18:43:25 +0000 (19:43 +0100)
This fixes tests broken in my last change, "Merge
diff-font-lock-refine and diff-auto-refine-mode into diff-refine" from
2019-02-24.

* test/lisp/vc/diff-mode-tests.el (diff-mode-test-font-lock):
Bind diff-refine to symbol 'font-lock' instead of binding
diff-font-lock-refine to t.
(diff-mode-test-font-lock-syntax-one-line): Bind diff-refine
to nil instead of binding diff-font-lock-refine to nil.

test/lisp/vc/diff-mode-tests.el

index 8695d958bac967ccc79c9e3e34e937e6eccb5ae9..676d461076b1b9c450c3245f74ea38203e38ee08 100644 (file)
@@ -210,7 +210,7 @@ youthfulness
         (old "hello_world.c")
         (new "hello_emacs.c")
         (diff-buffer (get-buffer-create "*Diff*"))
-        (diff-font-lock-refine t)
+        (diff-refine 'font-lock)
         (diff-font-lock-syntax t)
         diff-beg)
     (diff-no-select old new '("-u") 'no-async diff-buffer)
@@ -271,7 +271,7 @@ youthfulness
         (old "hello_world_1.c")
         (new "hello_emacs_1.c")
         (diff-buffer (get-buffer-create "*Diff*"))
-        (diff-font-lock-refine nil)
+        (diff-refine nil)
         (diff-font-lock-syntax t)
         diff-beg)
     (diff-no-select old new '("-u") 'no-async diff-buffer)