emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[nongnu] elpa/paredit 6c14694 113/224: Use `call-interactively' rather t


From: ELPA Syncer
Subject: [nongnu] elpa/paredit 6c14694 113/224: Use `call-interactively' rather than `funcall' in `paredit-test'.
Date: Sat, 7 Aug 2021 09:22:31 -0400 (EDT)

branch: elpa/paredit
commit 6c14694056158ee8fb86baeb0975fbd20e735ce3
Author: Taylor R Campbell <campbell@mumble.net>
Commit: Taylor R Campbell <campbell@mumble.net>

    Use `call-interactively' rather than `funcall' in `paredit-test'.
    
    Ignore-this: 12e8ee22270320abed65e401d2f0b267
    
    This more faithfully tests the behaviour human users will see, and it
    lets us also use `current-prefix-arg', &c., to test more modes of the
    commands.
    
    darcs-hash:20110409192317-00fcc-5d0b0bf50b928d8adf5658afa3d63cdb788405ec
---
 test.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/test.el b/test.el
index 87b5fad..0b964d4 100644
--- a/test.el
+++ b/test.el
@@ -47,10 +47,10 @@ Four arguments: the paredit command, the text of the buffer
           (if (cond ((eq expected 'error)
                      ;++ Check that there are no more expected states.
                      (condition-case condition
-                         (progn (funcall command) t)
+                         (progn (call-interactively command) t)
                        (error nil)))
                     ((stringp expected)
-                     (funcall command)
+                     (call-interactively command)
                      (insert ?\|)
                      (not (string= expected (buffer-string))))
                     (t (error "Bad test expectation:" expected)))



reply via email to

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