diff options
| author | Fabián Ezequiel Gallina | 2012-12-29 08:04:55 -0300 |
|---|---|---|
| committer | Fabián Ezequiel Gallina | 2012-12-29 08:04:55 -0300 |
| commit | 66164d2f176b3f86ee5551b78f705d0fe776c611 (patch) | |
| tree | a8f9463a65ea819c1d240ed2ee06929f8a9798ee /lisp/progmodes/python.el | |
| parent | e7ae8039c346fd296c49ceedb718896bf4b27d9a (diff) | |
| download | emacs-66164d2f176b3f86ee5551b78f705d0fe776c611.tar.gz emacs-66164d2f176b3f86ee5551b78f705d0fe776c611.zip | |
* progmodes/python.el: Remove cl dependency.
(python-syntax-count-quotes): Replace incf call.
(python-fill-string): Replace setf call.
Diffstat (limited to 'lisp/progmodes/python.el')
| -rw-r--r-- | lisp/progmodes/python.el | 15 |
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'." | |||
| 2487 | JUSTIFY should be used (if applicable) as in `fill-paragraph'." | 2486 | JUSTIFY 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 |