]> git.eshelyaron.com Git - emacs.git/commitdiff
; Set transient-mark-mode to let mark-defun tests pass
authorNoam Postavsky <npostavs@gmail.com>
Sat, 20 May 2017 22:09:24 +0000 (18:09 -0400)
committerNoam Postavsky <npostavs@gmail.com>
Sat, 20 May 2017 22:28:23 +0000 (18:28 -0400)
The tests fail when transient-mark-mode is not set since 2017-05-12
"Fix Bug#21072 and rework `mark-defun'".
* test/lisp/progmodes/python-tests.el (python-mark-defun-1)
(python-mark-defun-2): Bind 'transient-mark-mode' to t.

test/lisp/progmodes/python-tests.el

index 3b75e81afeeea2275956c63c9bbdb7cac4d81d81..9aaae396a69de60f68de7157a203dac4228ea1a8 100644 (file)
@@ -1317,7 +1317,8 @@ class B:
 class C:
    '''docstring'''
 "
-   (let ((expected-mark-beginning-position
+   (let ((transient-mark-mode t)
+         (expected-mark-beginning-position
           (progn
             (python-tests-look-at "class A:")
             (1- (point))))
@@ -1373,7 +1374,8 @@ class B:
 class C:
    '''docstring'''
 "
-   (let ((expected-mark-beginning-position
+   (let ((transient-mark-mode t)
+         (expected-mark-beginning-position
           (progn
             (python-tests-look-at "def __init__(self):")
             (1- (line-beginning-position))))