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 | |
| 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.
| -rw-r--r-- | lisp/ChangeLog | 3 | ||||
| -rw-r--r-- | lisp/help-fns.el | 14 | ||||
| -rw-r--r-- | lisp/help-mode.el | 14 | ||||
| -rw-r--r-- | src/ChangeLog | 4 | ||||
| -rw-r--r-- | src/doc.c | 3 |
5 files changed, 20 insertions, 18 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))))))) |
diff --git a/src/ChangeLog b/src/ChangeLog index d6429501059..d753221b996 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2012-10-12 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * doc.c (get_doc_string): Don't signal an error if the file is missing. | ||
| 4 | |||
| 1 | 2012-10-12 Jan Djärv <jan.h.d@swipnet.se> | 5 | 2012-10-12 Jan Djärv <jan.h.d@swipnet.se> |
| 2 | 6 | ||
| 3 | * nsterm.m (hold_event_q): New static variable. | 7 | * nsterm.m (hold_event_q): New static variable. |
| @@ -144,7 +144,8 @@ get_doc_string (Lisp_Object filepos, bool unibyte, bool definition) | |||
| 144 | } | 144 | } |
| 145 | #endif | 145 | #endif |
| 146 | if (fd < 0) | 146 | if (fd < 0) |
| 147 | error ("Cannot open doc string file \"%s\"", name); | 147 | return concat3 (build_string ("Cannot open doc string file \""), |
| 148 | file, build_string ("\"\n")); | ||
| 148 | } | 149 | } |
| 149 | 150 | ||
| 150 | /* Seek only to beginning of disk block. */ | 151 | /* Seek only to beginning of disk block. */ |