Mercurial > emacs
comparison lisp/progmodes/python.el @ 55447:f1b7359315f0
(python-describe-symbol): Pass INTERACTIVE-P argument to `help-setup-xref'.
author | Juanma Barranquero <lekktu@gmail.com> |
---|---|
date | Sat, 08 May 2004 16:40:01 +0000 |
parents | a828ab1b3079 |
children | 4e81c5df6c36 |
comparison
equal
deleted
inserted
replaced
55446:2849e4ae725f | 55447:f1b7359315f0 |
---|---|
1341 (let ((temp-buffer-show-hook ; avoid xref stuff | 1341 (let ((temp-buffer-show-hook ; avoid xref stuff |
1342 (lambda () | 1342 (lambda () |
1343 (toggle-read-only 1) | 1343 (toggle-read-only 1) |
1344 (setq view-return-to-alist | 1344 (setq view-return-to-alist |
1345 (list (cons (selected-window) help-return-method)))))) | 1345 (list (cons (selected-window) help-return-method)))))) |
1346 (help-setup-xref (list 'python-describe-symbol symbol)) | 1346 (help-setup-xref (list 'python-describe-symbol symbol) (interactive-p)) |
1347 (with-output-to-temp-buffer (help-buffer) | 1347 (with-output-to-temp-buffer (help-buffer) |
1348 (with-current-buffer standard-output | 1348 (with-current-buffer standard-output |
1349 (set (make-local-variable 'comint-redirect-subvert-readonly) t) | 1349 (set (make-local-variable 'comint-redirect-subvert-readonly) t) |
1350 (print-help-return-message)))) | 1350 (print-help-return-message)))) |
1351 (if (and python-buffer (get-buffer python-buffer)) | 1351 (if (and python-buffer (get-buffer python-buffer)) |
1385 (let* ((version (let ((s (shell-command-to-string (concat python-command | 1385 (let* ((version (let ((s (shell-command-to-string (concat python-command |
1386 " -V")))) | 1386 " -V")))) |
1387 (string-match "^Python \\([0-9]+\\.[0-9]+\\>\\)" s) | 1387 (string-match "^Python \\([0-9]+\\.[0-9]+\\>\\)" s) |
1388 (match-string 1 s))) | 1388 (match-string 1 s))) |
1389 ;; Whether info files have a Python version suffix, e.g. in Debian. | 1389 ;; Whether info files have a Python version suffix, e.g. in Debian. |
1390 (versioned | 1390 (versioned |
1391 (with-temp-buffer | 1391 (with-temp-buffer |
1392 (with-no-warnings (Info-mode)) | 1392 (with-no-warnings (Info-mode)) |
1393 (condition-case () | 1393 (condition-case () |
1394 ;; Don't use `info' because it would pop-up a *info* buffer. | 1394 ;; Don't use `info' because it would pop-up a *info* buffer. |
1395 (with-no-warnings | 1395 (with-no-warnings |