[cmucl-cvs] CMUCL commit: src/pcl (cmucl-documentation.lisp)

Raymond Toy rtoy at common-lisp.net
Tue Dec 14 21:22:28 UTC 2010


    Date: Tuesday, December 14, 2010 @ 16:22:28
  Author: rtoy
    Path: /project/cmucl/cvsroot/src/pcl

Modified: cmucl-documentation.lisp

Don't call dgettext if there's no documentation string.  This used to
work, but doesn't anymore because the domain won't normally be NIL
anymore.


--------------------------+
 cmucl-documentation.lisp |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)


Index: src/pcl/cmucl-documentation.lisp
diff -u src/pcl/cmucl-documentation.lisp:1.17 src/pcl/cmucl-documentation.lisp:1.18
--- src/pcl/cmucl-documentation.lisp:1.17	Fri Mar 19 11:19:03 2010
+++ src/pcl/cmucl-documentation.lisp	Tue Dec 14 16:22:27 2010
@@ -4,7 +4,7 @@
 ;;; the public domain, and is provided 'as is'.
 
 (file-comment
-  "$Header: /project/cmucl/cvsroot/src/pcl/cmucl-documentation.lisp,v 1.17 2010-03-19 15:19:03 rtoy Rel $")
+  "$Header: /project/cmucl/cvsroot/src/pcl/cmucl-documentation.lisp,v 1.18 2010-12-14 21:22:27 rtoy Exp $")
 ;;;
 ;;; **********************************************************************
 ;;;
@@ -222,7 +222,7 @@
 	`(defmethod documentation :around ((x t) (doc-type (eql ',dt)))
 	   (let ((doc (call-next-method))
 		 (domain (info ,dt :textdomain x)))
-	     (or (intl:dgettext domain doc)
+	     (or (and doc (intl:dgettext domain doc))
 		 doc)))))
   (frob function)
   (frob setf)




More information about the cmucl-cvs mailing list