From ec264fbb7cb99b193619db76a8d25a228634ffa3 Mon Sep 17 00:00:00 2001 From: Nicolas Richard Date: Wed, 14 May 2014 22:41:53 +0200 Subject: [PATCH] Deal with EIEIO methods without doc strings (Bug#17490). * emacs-lisp/eieio-opt.el (eieio-help-class): Correctly deal with methods which do not have a doc string. (Bug#17490) --- lisp/ChangeLog | 5 +++++ lisp/emacs-lisp/eieio-opt.el | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index c4df237a668..5ec35ffd14f 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2014-05-14 Nicolas Richard + + * emacs-lisp/eieio-opt.el (eieio-help-class): Correctly deal with + methods which do not have a doc string. (Bug#17490) + 2014-05-14 Stephen Berman Stefan Monnier diff --git a/lisp/emacs-lisp/eieio-opt.el b/lisp/emacs-lisp/eieio-opt.el index a502901a469..ca9b91bed58 100644 --- a/lisp/emacs-lisp/eieio-opt.el +++ b/lisp/emacs-lisp/eieio-opt.el @@ -141,7 +141,7 @@ If CLASS is actually an object, then also display current values of that object. (insert " " (aref type counter) " " (prin1-to-string (car cur) (current-buffer)) "\n" - (cdr cur))) + (or (cdr cur) ""))) (setq counter (1+ counter)))) (insert "\n\n") (setq methods (cdr methods)))))) -- 2.39.5