Commit 4d955d52 authored by Barry Warsaw's avatar Barry Warsaw

(match-string): Added a definition for older Emacsen.

parent e68c265a
......@@ -2361,6 +2361,15 @@ local bindings to py-newline-and-indent."))
(set-buffer cbuf))
(sit-for 0))
;; older Emacsen don't have this function
(if (not (fboundp 'match-string))
(defun match-string (n)
(let ((beg (match-beginning n))
(end (match-end n)))
(if (and beg end)
(buffer-substring beg end)
nil))))
(defun py-current-defun ()
;; tell add-log.el how to find the current function/method/variable
(save-excursion
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment