[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/assess eb56d9627d 07/95: String diff file save is now s
From: |
ELPA Syncer |
Subject: |
[elpa] externals/assess eb56d9627d 07/95: String diff file save is now silent. |
Date: |
Tue, 19 Jul 2022 15:57:28 -0400 (EDT) |
branch: externals/assess
commit eb56d9627d830b8d0a19cd90932c12078a0ee738
Author: Phillip Lord <phillip.lord@newcastle.ac.uk>
Commit: Phillip Lord <phillip.lord@newcastle.ac.uk>
String diff file save is now silent.
Previously, the string= explainer was noisy while saving the contents of
the string to file. We now bypass the messages.
---
sisyphus.el | 13 +++++++++++--
1 file changed, 11 insertions(+), 2 deletions(-)
diff --git a/sisyphus.el b/sisyphus.el
index 198d02670d..5daf94f548 100644
--- a/sisyphus.el
+++ b/sisyphus.el
@@ -84,6 +84,15 @@
;; *** String Comparision
;; #+begin_src emacs-lisp
+(defun sisyphus--write-file-silently (filename)
+ "Write current buffer into FILENAME.
+Unlike most other ways of saving a file, this should not
+print any messages!."
+ (write-region
+ (point-min) (point-max)
+ filename nil
+ 'dont-display-wrote-file-message))
+
(defun sisyphus--explainer-diff-string= (a b)
"Compare strings using diff output."
(let* ((diff
@@ -101,11 +110,11 @@
(with-current-buffer
a-buffer
(insert a)
- (write-file a-file))
+ (sisyphus--write-file-silently a-file))
(with-current-buffer
b-buffer
(insert b)
- (write-file b-file))
+ (sisyphus--write-file-silently b-file))
(prog1
(format "Strings:\n%s\nand\n%s\nDiffer at:%s\n"
a b
- [elpa] externals/assess 3e74c4b70d 30/95: Add test for string font-lock comparison., (continued)
- [elpa] externals/assess 3e74c4b70d 30/95: Add test for string font-lock comparison., ELPA Syncer, 2022/07/19
- [elpa] externals/assess 6a4aa34ec3 33/95: Fixed multiple string matching for face match., ELPA Syncer, 2022/07/19
- [elpa] externals/assess 5dde98a124 31/95: Merge branch 'master' of github.com:phillord/sisyphus, ELPA Syncer, 2022/07/19
- [elpa] externals/assess 0eb198f05e 40/95: Documentation Fix., ELPA Syncer, 2022/07/19
- [elpa] externals/assess c0bdc94e49 41/95: Remove erroneous debug statement., ELPA Syncer, 2022/07/19
- [elpa] externals/assess 2db9834e4e 44/95: Rework Makefile for update to cask, ELPA Syncer, 2022/07/19
- [elpa] externals/assess e820ccf163 05/95: Emacs 24.4 or later., ELPA Syncer, 2022/07/19
- [elpa] externals/assess 3f89d8601f 15/95: Port tests to sisyphus with-temp-buffers., ELPA Syncer, 2022/07/19
- [elpa] externals/assess acb460e26c 16/95: All git-snapshot., ELPA Syncer, 2022/07/19
- [elpa] externals/assess 2e42c93191 06/95: Remove debug statement., ELPA Syncer, 2022/07/19
- [elpa] externals/assess eb56d9627d 07/95: String diff file save is now silent.,
ELPA Syncer <=
- [elpa] externals/assess a459abe966 11/95: New macro `sisyphus-with-preserved-buffer-list'., ELPA Syncer, 2022/07/19
- [elpa] externals/assess 33b6c3c390 12/95: New macro `sisyphus-with-temp-buffers'., ELPA Syncer, 2022/07/19
- [elpa] externals/assess 890906bfcb 17/95: Interface written as single overloaded function., ELPA Syncer, 2022/07/19
- [elpa] externals/assess f3416dadb1 18/95: Indentation test functions., ELPA Syncer, 2022/07/19
- [elpa] externals/assess 1b01542ccd 20/95: Fontification testing., ELPA Syncer, 2022/07/19
- [elpa] externals/assess 2e556a62ae 22/95: Add new test file., ELPA Syncer, 2022/07/19
- [elpa] externals/assess 32a00524a8 24/95: Fix unused variable issues, ELPA Syncer, 2022/07/19
- [elpa] externals/assess 3cf57afcaf 26/95: Merge pull request #1 from syohex/fix, ELPA Syncer, 2022/07/19
- [elpa] externals/assess 00c794a516 29/95: Add package support., ELPA Syncer, 2022/07/19
- [elpa] externals/assess f490f18a18 32/95: Merge branch 'master' of github.com:phillord/sisyphus, ELPA Syncer, 2022/07/19