6464
6565; ; FOR MORE INFORMATION:
6666
67- ; ; Please see <http://www.python.org/ftp/ emacs/pmdetails.html > for the
67+ ; ; Please see <http://www.python.org/emacs/python-mode/ > for the
6868; ; latest information and compatibility notes.
6969
7070; ; BUG REPORTING:
@@ -212,7 +212,7 @@ if possible, a faster algorithm is used (i.e. X/Emacs 19 and beyond).
212212
213213When t, lines that begin with a single `#' are a hint to subsequent
214214line indentation. If the previous line is such a comment line (as
215- opposed to one that starts with `py-block-comment-prefix' ), then it's
215+ opposed to one that starts with `py-block-comment-prefix' ), then its
216216indentation is used as a hint for this line's indentation. Lines that
217217begin with `py-block-comment-prefix' are ignored for indentation
218218purposes.
@@ -554,8 +554,8 @@ Currently-active file is at the head of the list.")
554554(defvar python-mode-hook nil
555555 " *Hook called by `python-mode' ." )
556556
557- ; ; in previous version of python-mode.el, the hook was incorrectly
558- ; ; called py-mode-hook, and was not defvar'd. deprecate its use.
557+ ; ; In previous version of python-mode.el, the hook was incorrectly
558+ ; ; called py-mode-hook, and was not defvar'd. Deprecate its use.
559559(and (fboundp 'make-obsolete-variable )
560560 (make-obsolete-variable 'py-mode-hook 'python-mode-hook ))
561561
@@ -824,7 +824,7 @@ the function \\[imenu-example--create-python-index].
824824It works recursively by looking for all definitions at the current
825825indention level. When it finds one, it adds it to the alist. If it
826826finds a definition at a greater indentation level, it removes the
827- previous definition from the alist. In it's place it adds all
827+ previous definition from the alist. In its place it adds all
828828definitions found at the next indentation level. When it finds a
829829definition that is less indented then the current level, it retuns the
830830alist it has created thus far.
@@ -991,7 +991,7 @@ py-beep-if-tab-change\t\tring the bell if tab-width is changed"
991991 ; ; Now do the automagical guessing
992992 (if py-smart-indentation
993993 (let ((offset py-indent-offset))
994- ; ; Its okay if this fails to guess a good value
994+ ; ; It's okay if this fails to guess a good value
995995 (if (and (py-safe (py-guess-indent-offset))
996996 (<= py-indent-offset 8 )
997997 (>= py-indent-offset 2 ))
@@ -1047,7 +1047,7 @@ Electric behavior is inhibited inside a string or comment."
10471047 (setq outdent py-indent-offset))
10481048 ; ; Don't indent, only outdent. This assumes that any lines that
10491049 ; ; are already outdented relative to py-compute-indentation were
1050- ; ; put there on purpose. Its highly annoying to have `:' indent
1050+ ; ; put there on purpose. It's highly annoying to have `:' indent
10511051 ; ; for you. Use TAB, C-c C-l or C-c C-r to adjust. TBD: Is
10521052 ; ; there a better way to determine this???
10531053 (if (< (current-indentation ) indent) nil
@@ -1300,7 +1300,7 @@ is inserted at the end. See also the command `py-clear-queue'."
13001300 (file (expand-file-name temp py-temp-directory)))
13011301 (write-region start end file nil 'nomsg )
13021302 (cond
1303- ; ; always run the code in it's own asynchronous subprocess
1303+ ; ; always run the code in its own asynchronous subprocess
13041304 (async
13051305 (let* ((buf (generate-new-buffer-name py-output-buffer)))
13061306 (start-process " Python" buf py-python-command " -u" file)
@@ -1660,7 +1660,7 @@ the new line indented."
16601660 ; ; purposes.
16611661
16621662 ; ; Are we looking at a comment-only line which is *not* an
1663- ; ; indenting comment line? If so, we assume that its been
1663+ ; ; indenting comment line? If so, we assume that it's been
16641664 ; ; placed at the desired indentation, so leave it alone.
16651665 ; ; Indenting comment lines are aligned as statements down
16661666 ; ; below.
@@ -2609,7 +2609,7 @@ local bindings to py-newline-and-indent."))
26092609 (beginning-of-line )
26102610 ; ; In XEmacs, we have a much better way to test for whether
26112611 ; ; we're in a triple-quoted string or not. Emacs does not
2612- ; ; have this built-in function, which is it's loss because
2612+ ; ; have this built-in function, which is its loss because
26132613 ; ; without scanning from the beginning of the buffer, there's
26142614 ; ; no accurate way to determine this otherwise.
26152615 (if (not (fboundp 'buffer-syntactic-context ))
@@ -2748,9 +2748,9 @@ local bindings to py-newline-and-indent."))
27482748 (py-mark-block nil 'just-move )
27492749 (py-goto-beyond-final-line)))
27502750
2751- ; ; go to start of first statement (not blank or comment or
2752- ; ; continuation line) at or preceding point. returns t if there is
2753- ; ; one, else nil
2751+ ; ; Go to start of first statement (not blank or comment or
2752+ ; ; continuation line) at or preceding point. Returns t if there is
2753+ ; ; one, else nil.
27542754(defun py-goto-statement-at-or-above ()
27552755 (py-goto-initial-line)
27562756 (if (looking-at py-blank-or-comment-re)
@@ -2762,9 +2762,9 @@ local bindings to py-newline-and-indent."))
27622762 nil )
27632763 t ))
27642764
2765- ; ; go to start of first statement (not blank or comment or
2766- ; ; continuation line) following the statement containing point returns
2767- ; ; t if there is one, else nil
2765+ ; ; Go to start of first statement (not blank or comment or
2766+ ; ; continuation line) following the statement containing point.
2767+ ; ; Returns t if there is one, else nil.
27682768(defun py-goto-statement-below ()
27692769 (beginning-of-line )
27702770 (let ((start (point )))
@@ -2777,7 +2777,7 @@ local bindings to py-newline-and-indent."))
27772777 (progn (goto-char start) nil )
27782778 t )))
27792779
2780- ; ; go to start of statement, at or preceding point, starting with
2780+ ; ; Go to start of statement, at or preceding point, starting with
27812781; ; keyword KEY. Skips blank lines and non-indenting comments upward
27822782; ; first. If that statement starts with KEY, done, else go back to
27832783; ; first enclosing block starting with KEY. If successful, leaves
0 commit comments