aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog9
-rw-r--r--lisp/progmodes/python.el38
2 files changed, 27 insertions, 20 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index d8ec23f04e5..a82cdbb83d8 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12006-08-30 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 * progmodes/python.el (python-eldoc-function): Re-enable quit while
4 waiting for process.
5
12006-08-30 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> 62006-08-30 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2 7
3 * term/mac-win.el (mac-string-to-utxt): If adjustment for MacJapanese 8 * term/mac-win.el (mac-string-to-utxt): If adjustment for MacJapanese
@@ -5,8 +10,8 @@
5 10
62006-08-29 Romain Francoise <romain@orebokech.com> 112006-08-29 Romain Francoise <romain@orebokech.com>
7 12
8 * startup.el (normal-splash-screen, fancy-splash-screens): Make 13 * startup.el (normal-splash-screen, fancy-splash-screens):
9 buffer read-only and arrange to enter view mode if necessary. 14 Make buffer read-only and arrange to enter view mode if necessary.
10 15
112006-08-29 Chong Yidong <cyd@stupidchicken.com> 162006-08-29 Chong Yidong <cyd@stupidchicken.com>
12 17
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el
index ca22e36cb40..66d8cd4714f 100644
--- a/lisp/progmodes/python.el
+++ b/lisp/progmodes/python.el
@@ -1599,24 +1599,26 @@ Only works when point is in a function name, not its arg list, for
1599instance. Assumes an inferior Python is running." 1599instance. Assumes an inferior Python is running."
1600 (let ((symbol (with-syntax-table python-dotty-syntax-table 1600 (let ((symbol (with-syntax-table python-dotty-syntax-table
1601 (current-word)))) 1601 (current-word))))
1602 ;; First try the symbol we're on. 1602 ;; This is run from timers, so inhibit-quit tends to be set.
1603 (or (and symbol 1603 (with-local-quit
1604 (python-send-receive (format "emacs.eargs(%S, %s)" 1604 ;; First try the symbol we're on.
1605 symbol python-imports))) 1605 (or (and symbol
1606 ;; Try moving to symbol before enclosing parens. 1606 (python-send-receive (format "emacs.eargs(%S, %s)"
1607 (let ((s (syntax-ppss))) 1607 symbol python-imports)))
1608 (unless (zerop (car s)) 1608 ;; Try moving to symbol before enclosing parens.
1609 (when (eq ?\( (char-after (nth 1 s))) 1609 (let ((s (syntax-ppss)))
1610 (save-excursion 1610 (unless (zerop (car s))
1611 (goto-char (nth 1 s)) 1611 (when (eq ?\( (char-after (nth 1 s)))
1612 (skip-syntax-backward "-") 1612 (save-excursion
1613 (let ((point (point))) 1613 (goto-char (nth 1 s))
1614 (skip-chars-backward "a-zA-Z._") 1614 (skip-syntax-backward "-")
1615 (if (< (point) point) 1615 (let ((point (point)))
1616 (python-send-receive 1616 (skip-chars-backward "a-zA-Z._")
1617 (format "emacs.eargs(%S, %s)" 1617 (if (< (point) point)
1618 (buffer-substring-no-properties (point) point) 1618 (python-send-receive
1619 python-imports))))))))))) 1619 (format "emacs.eargs(%S, %s)"
1620 (buffer-substring-no-properties (point) point)
1621 python-imports))))))))))))
1620 1622
1621;;;; Info-look functionality. 1623;;;; Info-look functionality.
1622 1624