aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes/python.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/progmodes/python.el')
-rw-r--r--lisp/progmodes/python.el15
1 files changed, 7 insertions, 8 deletions
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el
index 67388c0339b..56a971f0c67 100644
--- a/lisp/progmodes/python.el
+++ b/lisp/progmodes/python.el
@@ -204,7 +204,6 @@
204 204
205(require 'ansi-color) 205(require 'ansi-color)
206(require 'comint) 206(require 'comint)
207(eval-when-compile (require 'cl-lib))
208 207
209;; Avoid compiler warnings 208;; Avoid compiler warnings
210(defvar view-return-to-alist) 209(defvar view-return-to-alist)
@@ -529,7 +528,7 @@ is used to limit the scan."
529 (while (and (< i 3) 528 (while (and (< i 3)
530 (or (not limit) (< (+ point i) limit)) 529 (or (not limit) (< (+ point i) limit))
531 (eq (char-after (+ point i)) quote-char)) 530 (eq (char-after (+ point i)) quote-char))
532 (cl-incf i)) 531 (setq i (1+ i)))
533 i)) 532 i))
534 533
535(defun python-syntax-stringify () 534(defun python-syntax-stringify ()
@@ -2487,12 +2486,12 @@ JUSTIFY should be used (if applicable) as in `fill-paragraph'."
2487JUSTIFY should be used (if applicable) as in `fill-paragraph'." 2486JUSTIFY should be used (if applicable) as in `fill-paragraph'."
2488 (let* ((marker (point-marker)) 2487 (let* ((marker (point-marker))
2489 (str-start-pos 2488 (str-start-pos
2490 (let ((m (make-marker))) 2489 (set-marker
2491 (setf (marker-position m) 2490 (make-marker)
2492 (or (python-syntax-context 'string) 2491 (or (python-syntax-context 'string)
2493 (and (equal (string-to-syntax "|") 2492 (and (equal (string-to-syntax "|")
2494 (syntax-after (point))) 2493 (syntax-after (point)))
2495 (point)))) m)) 2494 (point)))))
2496 (num-quotes (python-syntax-count-quotes 2495 (num-quotes (python-syntax-count-quotes
2497 (char-after str-start-pos) str-start-pos)) 2496 (char-after str-start-pos) str-start-pos))
2498 (str-end-pos 2497 (str-end-pos