4949; ; font-lock-mode! As of this writing, the latest Emacs and XEmacs
5050; ; 19's do.
5151
52- ; ; Here's a brief list of recent additions/improvements:
52+ ; ; Here's a brief list of recent additions/improvements/changes :
5353; ;
54- ; ; - Wrapping and indentation within triple quote strings should work
55- ; ; properly now.
54+ ; ; - Wrapping and indentation within triple quote strings now works.
5655; ; - `Standard' bug reporting mechanism (use C-c C-b)
5756; ; - py-mark-block was moved to C-c C-m
5857; ; - C-c C-v shows you the python-mode version
59- ; ; - a basic python-font-lock-keywords has been added for Emacs 19
60- ; ; font-lock colorizations.
58+ ; ; - a basic python-font-lock-keywords has been added for (X)Emacs 19
6159; ; - proper interaction with pending-del and del-sel modes.
62- ; ; - New py-electric-colon (:) command for improved outdenting. Also
63- ; ; py-indent-line (TAB) should handle outdented lines better.
60+ ; ; - Better support for outdenting: py-electric-colon (:) and
61+ ; ; py-indent-line (TAB) improvements; one level of outdentation
62+ ; ; added after a return, raise, break, or continue statement
63+ ; ; - New py-electric-colon (:) command for improved outdenting Also
64+ ; ; py-indent-line (TAB) should handle outdented lines better
6465; ; - improved (I think) C-c > and C-c <
6566; ; - py-(forward|backward)-into-nomenclature, not bound, but useful on
6667; ; M-f and M-b respectively.
68+ ; ; - integration with imenu by Perry A. Stoll <[email protected] >69+ ; ; - py-indent-offset now defaults to 4
70+ ; ; - new variable py-honor-comment-indentation
71+ ; ; - comment-region bound to C-c #
72+ ; ; - py-delete-char obeys numeric arguments
73+ ; ; - Small modification to rule for "indenting comment lines", such
74+ ; ; lines must now also be indented less than or equal to the
75+ ; ; indentation of the previous statement.
6776
6877; ; Here's a brief to do list:
6978; ;
7079; ; - Better integration with gud-mode for debugging.
7180; ; - Rewrite according to GNU Emacs Lisp standards.
72- ; ; - py-delete-char should obey numeric arguments.
73- ; ; - de-electrify colon inside literals (e.g. comments and strings)
7481; ; - possibly force indent-tabs-mode == nil, and add a
7582; ; write-file-hooks that runs untabify on the whole buffer (to work
7683; ; around potential tab/space mismatch problems). In practice this
8188; ; If you can think of more things you'd like to see, drop me a line.
8289; ; If you want to report bugs, use py-submit-bug-report (C-c C-b).
8390; ;
84- ; ; Note that I only test things on XEmacs. If you port stuff to FSF
85- ; ; Emacs 19, or Emacs 18, please send me your patches. Byte compiler
86- ; ; complaints can probably be safely ignored.
87-
88- ; ; LCD Archive Entry:
89- ; ; python-mode|Barry A. Warsaw|[email protected] 90- ; ; |Major mode for editing Python programs
91- ; ; |$Date$|$Revision$|
91+ ; ; Note that I only test things on XEmacs 19 and to some degree on
92+ ; ; Emacs 19. If you port stuff to FSF Emacs 19, or Emacs 18, please
93+ ; ; send me your patches. Byte compiler complaints can probably be
94+ ; ; safely ignored.
9295
9396; ;; Code:
9497
@@ -110,7 +113,7 @@ When this flag is non-nil, continuation lines are lined up under the
110113preceding line's indentation. When this flag is nil, continuation
111114lines are aligned to column zero." )
112115
113- (defvar py-block-comment-prefix " ##"
116+ (defvar py-block-comment-prefix " ## "
114117 " *String used by \\ [comment-region] to comment out a block of code.
115118This should follow the convention for non-indenting comment lines so
116119that the indentation commands won't get confused (i.e., the string
@@ -1366,7 +1369,7 @@ initial line; and comment lines beginning in column 1 are ignored."
13661369(defun py-comment-region (beg end &optional arg )
13671370 " Like `comment-region' but uses double hash (`#' ) comment starter."
13681371 (interactive " r\n P" )
1369- (let ((comment-start " ## " ))
1372+ (let ((comment-start py-block-comment-prefix ))
13701373 (comment-region beg end arg)))
13711374
13721375
0 commit comments