emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: display-completion-list should not strip text properties


From: Johan Bockgård
Subject: Re: display-completion-list should not strip text properties
Date: Thu, 25 Jan 2007 00:43:26 +0100
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.90 (gnu/linux)

Richard Stallman <address@hidden> writes:

> I agree that this is a good change, and since it is simple and safe,
> we can do it now.

Here's a related, simple, change that I've been sitting on for a long
time. By putting text properties on doc strings you can insert images
and other fancy stuff in the *Help* buffer. This change makes
describe-variable preserve text properties (describe-function already
does so):



2007-01-24  Johan Bockgård  <address@hidden>

            * help-fns.el (describe-variable): Keep doc's text properties.



Index: lisp/help-fns.el
===================================================================
RCS file: /cvsroot/emacs/emacs/lisp/help-fns.el,v
retrieving revision 1.96
diff -u -r1.96 help-fns.el
--- lisp/help-fns.el    23 Jan 2007 07:16:11 -0000      1.96
+++ lisp/help-fns.el    24 Jan 2007 23:15:35 -0000
@@ -596,7 +596,8 @@
                           "which is byte-compiled expression.\n"
                         (format "`%s'.\n" safe-var))))
              (princ "\nDocumentation:\n")
-              (princ (or doc "Not documented as a variable.")))
+              (with-current-buffer standard-output
+               (insert (or doc "Not documented as a variable."))))
            ;; Make a link to customize if this variable can be customized.
            (if (custom-variable-p variable)
                (let ((customize-label "customize"))


-- 
Johan Bockgård





reply via email to

[Prev in Thread] Current Thread [Next in Thread]