Mercurial > emacs
comparison lisp/progmodes/python.el @ 65672:e60ed2bd9d3d
(python-describe-symbol): Add globals() and locals() to the arguments
of emacs.ehelp.
| author | Eli Zaretskii <eliz@gnu.org> |
|---|---|
| date | Sat, 24 Sep 2005 10:58:16 +0000 |
| parents | 0ef9e8908562 |
| children | 6c46e0e1ba7b ee12d75eb214 |
comparison
equal
deleted
inserted
replaced
| 65671:09c8aeb9e280 | 65672:e60ed2bd9d3d |
|---|---|
| 1339 (format "Describe symbol (default %s): " symbol) | 1339 (format "Describe symbol (default %s): " symbol) |
| 1340 "Describe symbol: ") | 1340 "Describe symbol: ") |
| 1341 nil nil symbol)))) | 1341 nil nil symbol)))) |
| 1342 (if (equal symbol "") (error "No symbol")) | 1342 (if (equal symbol "") (error "No symbol")) |
| 1343 (let* ((func `(lambda () | 1343 (let* ((func `(lambda () |
| 1344 (comint-redirect-send-command (format "emacs.ehelp(%S)\n" | 1344 (comint-redirect-send-command |
| 1345 ,symbol) | 1345 (format "emacs.ehelp(%S, globals(), locals())\n" ,symbol) |
| 1346 "*Help*" nil)))) | 1346 "*Help*" nil)))) |
| 1347 ;; Ensure we have a suitable help buffer. | 1347 ;; Ensure we have a suitable help buffer. |
| 1348 ;; Fixme: Maybe process `Related help topics' a la help xrefs and | 1348 ;; Fixme: Maybe process `Related help topics' a la help xrefs and |
| 1349 ;; allow C-c C-f in help buffer. | 1349 ;; allow C-c C-f in help buffer. |
| 1350 (let ((temp-buffer-show-hook ; avoid xref stuff | 1350 (let ((temp-buffer-show-hook ; avoid xref stuff |
| 1351 (lambda () | 1351 (lambda () |
