[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Emacs-diffs] master 783eca5: Make describe-face also output the ver
From: |
Stefan Monnier |
Subject: |
Re: [Emacs-diffs] master 783eca5: Make describe-face also output the version information |
Date: |
Mon, 15 Jul 2019 15:36:50 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
> By the way, looking over the new infrastructure, perhaps these two bits
> should be separated out into separate functions for
> help-fns-describe-variable-functions?
>
> They're currently in describe-variable:
>
> ;; Make a link to customize if this variable can be customized.
> (when (custom-variable-p variable)
> (let ((customize-label "customize"))
> (terpri)
> (terpri)
> (princ (concat "You can " customize-label " this variable."))
> (with-current-buffer standard-output
> (save-excursion
> (re-search-backward
> (concat "\\(" customize-label "\\)") nil t)
> (help-xref-button 1 'help-customize-variable variable))))
> ;; Note variable's version or package version.
> (let ((output (describe-variable-custom-version-info variable)))
> (when output
> (terpri)
> (terpri)
> (princ output))))
Indeed,
Stefan