diff options
| author | Basil L. Contovounesios | 2022-05-04 21:54:49 +0300 |
|---|---|---|
| committer | Basil L. Contovounesios | 2022-05-04 21:57:14 +0300 |
| commit | e88d91b1d2f94b21bd5560670c575069164aff05 (patch) | |
| tree | b595ac9767501a440d22ec22120c960e29b33c43 | |
| parent | 34a45de19a17deffa9c6427ff7d8f0959a026fbb (diff) | |
| download | emacs-e88d91b1d2f94b21bd5560670c575069164aff05.tar.gz emacs-e88d91b1d2f94b21bd5560670c575069164aff05.zip | |
Remove unused lexvar in subr-x-tests.el
* test/lisp/emacs-lisp/subr-x-tests.el
(test-with-buffer-unmodified-if-unchanged): Pacify unused lexvar
byte-compiler warning. Simplify slightly and reindent.
| -rw-r--r-- | test/lisp/emacs-lisp/subr-x-tests.el | 24 |
1 files changed, 11 insertions, 13 deletions
diff --git a/test/lisp/emacs-lisp/subr-x-tests.el b/test/lisp/emacs-lisp/subr-x-tests.el index dca7df63098..7f3916c2c0b 100644 --- a/test/lisp/emacs-lisp/subr-x-tests.el +++ b/test/lisp/emacs-lisp/subr-x-tests.el | |||
| @@ -722,28 +722,26 @@ | |||
| 722 | (with-buffer-unmodified-if-unchanged | 722 | (with-buffer-unmodified-if-unchanged |
| 723 | (insert "t") | 723 | (insert "t") |
| 724 | (delete-char -1)) | 724 | (delete-char -1)) |
| 725 | (should (not (buffer-modified-p)))) | 725 | (should-not (buffer-modified-p))) |
| 726 | 726 | ||
| 727 | ;; Shouldn't error. | 727 | ;; Shouldn't error. |
| 728 | (should | 728 | (should |
| 729 | (with-temp-buffer | 729 | (with-temp-buffer |
| 730 | (let ((inner (current-buffer))) | 730 | (with-buffer-unmodified-if-unchanged |
| 731 | (with-buffer-unmodified-if-unchanged | 731 | (insert "t") |
| 732 | (insert "t") | 732 | (delete-char -1) |
| 733 | (delete-char -1) | 733 | (kill-buffer)))) |
| 734 | (kill-buffer (current-buffer)) | ||
| 735 | t)))) | ||
| 736 | 734 | ||
| 737 | (with-temp-buffer | 735 | (with-temp-buffer |
| 738 | (let ((outer (current-buffer))) | 736 | (let ((outer (current-buffer))) |
| 739 | (with-temp-buffer | 737 | (with-temp-buffer |
| 740 | (let ((inner (current-buffer))) | 738 | (let ((inner (current-buffer))) |
| 741 | (with-buffer-unmodified-if-unchanged | 739 | (with-buffer-unmodified-if-unchanged |
| 742 | (insert "t") | 740 | (insert "t") |
| 743 | (delete-char -1) | 741 | (delete-char -1) |
| 744 | (set-buffer outer)) | 742 | (set-buffer outer)) |
| 745 | (with-current-buffer inner | 743 | (with-current-buffer inner |
| 746 | (should (not (buffer-modified-p))))))))) | 744 | (should-not (buffer-modified-p)))))))) |
| 747 | 745 | ||
| 748 | 746 | ||
| 749 | (provide 'subr-x-tests) | 747 | (provide 'subr-x-tests) |