|
6 | 6 | ;; 1992-1994 Tim Peters <[email protected]> |
7 | 7 | |
8 | 8 | ;; Created: Feb 1992 |
9 | | -;; Version: 2.16 |
10 | | -;; Last Modified: 1995/03/15 16:23:59 |
| 9 | +;; Version: 2.18 |
| 10 | +;; Last Modified: 1995/03/15 18:23:16 |
11 | 11 | ;; Keywords: python editing language major-mode |
12 | 12 |
|
13 | 13 | ;; This software is provided as-is, without express or implied |
|
69 | 69 | ;; LCD Archive Entry: |
70 | 70 | ;; python-mode|Barry A. Warsaw|[email protected] |
71 | 71 | ;; |Major mode for editing Python programs |
72 | | -;; |1995/03/15 16:23:59|2.16| |
| 72 | +;; |1995/03/15 18:23:16|2.18| |
73 | 73 |
|
74 | 74 | ;;; Code: |
75 | 75 |
|
@@ -436,10 +436,12 @@ argument is provided, that many colons are inserted non-electrically." |
436 | 436 | (py-compute-indentation))) |
437 | 437 | ) |
438 | 438 | (setq outdent py-indent-offset)) |
439 | | - ;; electric colon won't re-indent lines that start in column |
440 | | - ;; zero. you'd have to use TAB for that. TBD: Is there a |
441 | | - ;; better way to determine this??? |
442 | | - (if (zerop (current-indentation)) nil |
| 439 | + ;; Don't indent, only outdent. This assumes that any lines that |
| 440 | + ;; are already outdented relative to py-compute-indentation were |
| 441 | + ;; put there on purpose. Its highly annoying to have `:' indent |
| 442 | + ;; for you. Use TAB, C-c C-l or C-c C-r to adjust. TBD: Is |
| 443 | + ;; there a better way to determine this??? |
| 444 | + (if (< (current-indentation) indent) nil |
443 | 445 | (goto-char here) |
444 | 446 | (beginning-of-line) |
445 | 447 | (delete-horizontal-space) |
@@ -1908,7 +1910,7 @@ local bindings to py-newline-and-indent.")) |
1908 | 1910 | (setq zmacs-region-stays t))) |
1909 | 1911 |
|
1910 | 1912 |
|
1911 | | -(defconst py-version "2.16" |
| 1913 | +(defconst py-version "2.18" |
1912 | 1914 | "`python-mode' version number.") |
1913 | 1915 | ( defconst py-help-address "[email protected]" |
1914 | 1916 | "Address accepting submission of bug reports.") |
|
0 commit comments