;; Make a link to customize if this variable can be customized.
(when (custom-variable-p variable)
(let ((customize-label "customize")
- (custom-set (get variable 'custom-set)))
+ (custom-set (get variable 'custom-set))
+ (opoint (with-current-buffer standard-output
+ (point))))
(princ (concat " You can " customize-label (or text " this variable.")))
(when (and custom-set
;; Don't override manually written documentation.
"."))))
(with-current-buffer standard-output
(save-excursion
- (while (re-search-backward (concat "\\(" customize-label "\\)") nil t)
+ (while (re-search-backward (concat "\\(" customize-label "\\)") opoint t)
(help-xref-button 1 'help-customize-variable variable))))
(terpri))))