aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorMichael Albinus2019-09-03 13:55:42 +0200
committerMichael Albinus2019-09-03 13:55:42 +0200
commitea5d591f29ba2e9e5d31da7ad450b958a4c9ca03 (patch)
treeb93ed8c3561205e249153eb24213cb71dea74267 /lisp
parentfda015e7b82a1ec3d1cb075799a67772744ce6c1 (diff)
downloademacs-ea5d591f29ba2e9e5d31da7ad450b958a4c9ca03.tar.gz
emacs-ea5d591f29ba2e9e5d31da7ad450b958a4c9ca03.zip
Fix Bug#37202
* lisp/shadowfile.el (shadow-debug): New defvar. (shadow-read-files): Suppress error if there's no TODO file. * test/lisp/shadowfile-tests.el (shadow-debug): Set to nil. (shadow--tests-cleanup): New defun. Apply to all tests. (Bug#37202) (shadow-test06-literal-groups): Cleanup temp buffer. (shadow-test08-shadow-todo): Add debug messages. (top): Cleanup initially.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/shadowfile.el5
1 files changed, 4 insertions, 1 deletions
diff --git a/lisp/shadowfile.el b/lisp/shadowfile.el
index 07e78506654..4566ea19f8d 100644
--- a/lisp/shadowfile.el
+++ b/lisp/shadowfile.el
@@ -165,6 +165,9 @@ created by `shadow-define-regexp-group'.")
165(defvar shadow-info-buffer nil) ; buf visiting shadow-info-file 165(defvar shadow-info-buffer nil) ; buf visiting shadow-info-file
166(defvar shadow-todo-buffer nil) ; buf visiting shadow-todo-file 166(defvar shadow-todo-buffer nil) ; buf visiting shadow-todo-file
167 167
168(defvar shadow-debug nil
169 "Use for debug messages.")
170
168;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 171;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
169;;; Syntactic sugar; General list and string manipulation 172;;; Syntactic sugar; General list and string manipulation
170;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 173;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
@@ -673,7 +676,7 @@ Return t unless files were locked; then return nil."
673 (eval-buffer)) 676 (eval-buffer))
674 (when shadow-todo-file 677 (when shadow-todo-file
675 (set-buffer (setq shadow-todo-buffer 678 (set-buffer (setq shadow-todo-buffer
676 (find-file-noselect shadow-todo-file))) 679 (find-file-noselect shadow-todo-file 'nowarn)))
677 (when (and (not (buffer-modified-p)) 680 (when (and (not (buffer-modified-p))
678 (file-newer-than-file-p (make-auto-save-file-name) 681 (file-newer-than-file-p (make-auto-save-file-name)
679 shadow-todo-file)) 682 shadow-todo-file))