diff options
| author | Stefan Monnier | 2012-10-12 16:11:50 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2012-10-12 16:11:50 -0400 |
| commit | 06485aa8215af39f9f5f999933aa39d349a2bdf9 (patch) | |
| tree | 7969cb614e87d05d5d603c52bff9534e2a5ca415 /lisp | |
| parent | bd0ffffd5a90e25d32708dd4fec29578648e1fad (diff) | |
| download | emacs-06485aa8215af39f9f5f999933aa39d349a2bdf9.tar.gz emacs-06485aa8215af39f9f5f999933aa39d349a2bdf9.zip | |
* src/doc.c (get_doc_string): Don't signal an error if the file is missing.
* lisp/help-fns.el (describe-variable, describe-function-1):
* lisp/help-mode.el (help-make-xrefs): Remove error handler, made unneeded.
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/ChangeLog | 3 | ||||
| -rw-r--r-- | lisp/help-fns.el | 14 | ||||
| -rw-r--r-- | lisp/help-mode.el | 14 |
3 files changed, 14 insertions, 17 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index dd43dbb2fb2..2a92c1178cf 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,8 @@ | |||
| 1 | 2012-10-12 Stefan Monnier <monnier@iro.umontreal.ca> | 1 | 2012-10-12 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 2 | ||
| 3 | * help-fns.el (describe-variable, describe-function-1): | ||
| 4 | * help-mode.el (help-make-xrefs): Remove error handler, made unneeded. | ||
| 5 | |||
| 3 | * emacs-lisp/eieio.el (lisp-imenu-generic-expression): Fix typo. | 6 | * emacs-lisp/eieio.el (lisp-imenu-generic-expression): Fix typo. |
| 4 | 7 | ||
| 5 | 2012-10-12 Glenn Morris <rgm@gnu.org> | 8 | 2012-10-12 Glenn Morris <rgm@gnu.org> |
diff --git a/lisp/help-fns.el b/lisp/help-fns.el index f17b29de720..b552d8c1357 100644 --- a/lisp/help-fns.el +++ b/lisp/help-fns.el | |||
| @@ -615,9 +615,7 @@ FILE is the file where FUNCTION was probably defined." | |||
| 615 | (point))) | 615 | (point))) |
| 616 | (terpri)(terpri) | 616 | (terpri)(terpri) |
| 617 | 617 | ||
| 618 | (let* ((doc-raw (condition-case err | 618 | (let* ((doc-raw (documentation function t)) |
| 619 | (documentation function t) | ||
| 620 | (error (format "No Doc! %S" err)))) | ||
| 621 | ;; If the function is autoloaded, and its docstring has | 619 | ;; If the function is autoloaded, and its docstring has |
| 622 | ;; key substitution constructs, load the library. | 620 | ;; key substitution constructs, load the library. |
| 623 | (doc (progn | 621 | (doc (progn |
| @@ -849,12 +847,10 @@ it is displayed along with the global value." | |||
| 849 | (obsolete (get variable 'byte-obsolete-variable)) | 847 | (obsolete (get variable 'byte-obsolete-variable)) |
| 850 | (use (car obsolete)) | 848 | (use (car obsolete)) |
| 851 | (safe-var (get variable 'safe-local-variable)) | 849 | (safe-var (get variable 'safe-local-variable)) |
| 852 | (doc (condition-case err | 850 | (doc (or (documentation-property |
| 853 | (or (documentation-property | 851 | variable 'variable-documentation) |
| 854 | variable 'variable-documentation) | 852 | (documentation-property |
| 855 | (documentation-property | 853 | alias 'variable-documentation))) |
| 856 | alias 'variable-documentation)) | ||
| 857 | (error (format "Doc not found: %S" err)))) | ||
| 858 | (extra-line nil)) | 854 | (extra-line nil)) |
| 859 | 855 | ||
| 860 | ;; Mention if it's a local variable. | 856 | ;; Mention if it's a local variable. |
diff --git a/lisp/help-mode.el b/lisp/help-mode.el index 9924300647c..c1ce5a521be 100644 --- a/lisp/help-mode.el +++ b/lisp/help-mode.el | |||
| @@ -505,14 +505,12 @@ that." | |||
| 505 | ((and | 505 | ((and |
| 506 | (or (boundp sym) | 506 | (or (boundp sym) |
| 507 | (get sym 'variable-documentation)) | 507 | (get sym 'variable-documentation)) |
| 508 | (condition-case err | 508 | (or |
| 509 | (or | 509 | (documentation-property |
| 510 | (documentation-property | 510 | sym 'variable-documentation) |
| 511 | sym 'variable-documentation) | 511 | (documentation-property |
| 512 | (documentation-property | 512 | (indirect-variable sym) |
| 513 | (indirect-variable sym) | 513 | 'variable-documentation))) |
| 514 | 'variable-documentation)) | ||
| 515 | (error (message "No doc found: %S" err) nil))) | ||
| 516 | (help-xref-button 8 'help-variable sym)) | 514 | (help-xref-button 8 'help-variable sym)) |
| 517 | ((fboundp sym) | 515 | ((fboundp sym) |
| 518 | (help-xref-button 8 'help-function sym))))))) | 516 | (help-xref-button 8 'help-function sym))))))) |