branch: elpa/buttercup commit 532d082a363add4f6d9838ca3f924a773ce12136 Author: Ola Nilsson <ola.nils...@gmail.com> Commit: Ola Nilsson <ola.nils...@gmail.com>
test: Fix tab stops in send-string-to-ansi-buffer for Emacs 24.3 tab-stop-list can only be nil in Emacs 24.4 and forward. As we still support Emacs 24.3, set tab-stop-list to the standard value. --- tests/test-buttercup.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test-buttercup.el b/tests/test-buttercup.el index 025b419..cb472d3 100644 --- a/tests/test-buttercup.el +++ b/tests/test-buttercup.el @@ -73,7 +73,8 @@ text properties using `ansi-color-apply'." (with-current-buffer buffer (let ((tab-width 8) ; terminal uses 8 char tabs (indent-tabs-mode nil) ; make sure move-* does not insert tabs - (tab-stop-list nil) ; default tab-stops (8 char interval) + ;; default tab-stops (8 char interval) Can be nil from 24.4 forward... + (tab-stop-list (eval (car (get 'tab-stop-list 'standard-value)))) ctrl-char) (save-match-data (while (string-match "\\(.*?\\)\\([\b\t\n\v\f\r]\\)\\([^z-a]*\\)" string)