diff options
| author | Michael Albinus | 2019-09-03 13:55:42 +0200 |
|---|---|---|
| committer | Michael Albinus | 2019-09-03 13:55:42 +0200 |
| commit | ea5d591f29ba2e9e5d31da7ad450b958a4c9ca03 (patch) | |
| tree | b93ed8c3561205e249153eb24213cb71dea74267 /lisp | |
| parent | fda015e7b82a1ec3d1cb075799a67772744ce6c1 (diff) | |
| download | emacs-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.el | 5 |
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)) |