Skip to content
Snippets Groups Projects
Commit 075cccc8 authored by rtoy's avatar rtoy
Browse files

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.
parent ef921e50
No related branches found
No related tags found
No related merge requests found
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
;;; the public domain, and is provided 'as is'. ;;; the public domain, and is provided 'as is'.
(file-comment (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 @@ ...@@ -222,7 +222,7 @@
`(defmethod documentation :around ((x t) (doc-type (eql ',dt))) `(defmethod documentation :around ((x t) (doc-type (eql ',dt)))
(let ((doc (call-next-method)) (let ((doc (call-next-method))
(domain (info ,dt :textdomain x))) (domain (info ,dt :textdomain x)))
(or (intl:dgettext domain doc) (or (and doc (intl:dgettext domain doc))
doc))))) doc)))))
(frob function) (frob function)
(frob setf) (frob setf)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment