diff options
| author | Fabián Ezequiel Gallina | 2012-05-17 00:03:12 -0300 |
|---|---|---|
| committer | Fabián Ezequiel Gallina | 2012-05-17 00:03:12 -0300 |
| commit | 327f0e84294143404ae7889a473c978fbd235378 (patch) | |
| tree | c8bec0059895afb81751d2ed6405be0131253309 /lisp/progmodes/python.el | |
| parent | 6b4328531cd97745c25af9f055fd6ff385022c77 (diff) | |
| download | emacs-327f0e84294143404ae7889a473c978fbd235378.tar.gz emacs-327f0e84294143404ae7889a473c978fbd235378.zip | |
Small cornercase fix to python-info-current-defun.
Returned the bad defun name when point was at the beginning of defun.
Diffstat (limited to 'lisp/progmodes/python.el')
| -rw-r--r-- | lisp/progmodes/python.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index 321bc5eb94a..b11741d4a68 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el | |||
| @@ -1942,8 +1942,8 @@ not inside a defun." | |||
| 1942 | (save-restriction | 1942 | (save-restriction |
| 1943 | (widen) | 1943 | (widen) |
| 1944 | (save-excursion | 1944 | (save-excursion |
| 1945 | (forward-comment -1) | ||
| 1946 | (goto-char (line-end-position)) | 1945 | (goto-char (line-end-position)) |
| 1946 | (forward-comment -1) | ||
| 1947 | (while (and (not (equal 0 (current-indentation))) | 1947 | (while (and (not (equal 0 (current-indentation))) |
| 1948 | (not (python-beginning-of-defun-function 1 t))) | 1948 | (not (python-beginning-of-defun-function 1 t))) |
| 1949 | (when (or (not min-indent) | 1949 | (when (or (not min-indent) |