emacs-devel
[Top][All Lists]
Advanced

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

Re: defcustom and the stars.


From: Juanma Barranquero
Subject: Re: defcustom and the stars.
Date: Wed, 3 Jan 2007 14:08:52 +0100

On 1/3/07, Michaël Cadilhac <address@hidden> wrote:

Strange thing: Guybrush T. (from Caraibe) only needed a pearly-white
bra, a bone, a spit and a toupee. And needles, of course.

Same goals, different tactics :)

Okey, so « slowly » means « when you modify some defcustom, don't
forget to do that ».

I think that's the idea, yeah.

So let's consider hiding this star in C-h v, like I proposed earlier,
nop ?

That's easy enough, see the attached patch (but I have no opinion on
whether that's desirable right now or not).

                   /L/e/k/t/u

Index: lisp/help-fns.el
===================================================================
RCS file: /cvsroot/emacs/emacs/lisp/help-fns.el,v
retrieving revision 1.94
diff -u -2 -r1.94 help-fns.el
--- lisp/help-fns.el    17 Dec 2006 22:14:11 -0000      1.94
+++ lisp/help-fns.el    3 Jan 2007 13:06:01 -0000
@@ -593,5 +593,7 @@
                         (format "`%s'.\n" safe-var))))
              (princ "\nDocumentation:\n")
-              (princ (or doc "Not documented as a variable.")))
+             (if doc
+                 (princ (replace-regexp-in-string "^\*" "" doc))
+               (princ "Not documented as a variable.")))
            ;; Make a link to customize if this variable can be customized.
            (if (custom-variable-p variable)

reply via email to

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