emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] master ee54d2f 2/2: ; Set transient-mark-mode to let mark-


From: Noam Postavsky
Subject: [Emacs-diffs] master ee54d2f 2/2: ; Set transient-mark-mode to let mark-defun tests pass
Date: Sat, 20 May 2017 18:27:08 -0400 (EDT)

branch: master
commit ee54d2f4e439b4a211c8fb7541ce22bac65bde8f
Author: Noam Postavsky <address@hidden>
Commit: Noam Postavsky <address@hidden>

    ; Set transient-mark-mode to let mark-defun tests pass
    
    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 | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/test/lisp/progmodes/python-tests.el 
b/test/lisp/progmodes/python-tests.el
index 3b75e81..9aaae39 100644
--- a/test/lisp/progmodes/python-tests.el
+++ b/test/lisp/progmodes/python-tests.el
@@ -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))))



reply via email to

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