comparison lisp/help-fns.el @ 84338:0ecc849c7f5c

Johan Bockg? <bojohan at dd.chalmers.se> (describe-variable): Keep doc's text properties.
author Glenn Morris <rgm@gnu.org>
date Thu, 06 Sep 2007 05:53:42 +0000
parents 65663fcd2caa
children ee30e57a2bd8
comparison
equal deleted inserted replaced
84337:3a0c09dbead4 84338:0ecc849c7f5c
623 (princ "if its value\nsatisfies the predicate ") 623 (princ "if its value\nsatisfies the predicate ")
624 (princ (if (byte-code-function-p safe-var) 624 (princ (if (byte-code-function-p safe-var)
625 "which is byte-compiled expression.\n" 625 "which is byte-compiled expression.\n"
626 (format "`%s'.\n" safe-var)))) 626 (format "`%s'.\n" safe-var))))
627 (princ "\nDocumentation:\n") 627 (princ "\nDocumentation:\n")
628 (princ (or doc "Not documented as a variable."))) 628 (with-current-buffer standard-output
629 (insert (or doc "Not documented as a variable."))))
629 ;; Make a link to customize if this variable can be customized. 630 ;; Make a link to customize if this variable can be customized.
630 (if (custom-variable-p variable) 631 (if (custom-variable-p variable)
631 (let ((customize-label "customize")) 632 (let ((customize-label "customize"))
632 (terpri) 633 (terpri)
633 (terpri) 634 (terpri)