From 075cccc83bcdbdf57cab9a89036c3708cc8e391a Mon Sep 17 00:00:00 2001
From: rtoy <rtoy>
Date: Tue, 14 Dec 2010 21:22:27 +0000
Subject: [PATCH] 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.

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

diff --git a/pcl/cmucl-documentation.lisp b/pcl/cmucl-documentation.lisp
index bfa2e88e4..f2021b87b 100644
--- a/pcl/cmucl-documentation.lisp
+++ b/pcl/cmucl-documentation.lisp
@@ -4,7 +4,7 @@
 ;;; the public domain, and is provided 'as is'.
 
 (file-comment
-  "$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/pcl/cmucl-documentation.lisp,v 1.17 2010/03/19 15:19:03 rtoy Rel $")
+  "$Header: /Volumes/share2/src/cmucl/cvs2git/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)
-- 
GitLab