Skip to content

Commit 669ca75

Browse files
committed
Suppress warning about obsolete function custom-show
* lisp/cus-edit.el (custom-variable-value-create): Suppress warning about obsolete function custom-show. The widget this supports has been obsolete since Emacs 24, but we should perhaps be very conservative about removing widget types, so suppress the warning instead of removing the widget type.
1 parent a5cc98c commit 669ca75

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lisp/cus-edit.el

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2570,7 +2570,8 @@ try matching its doc string against `custom-guess-doc-alist'."
25702570

25712571
;; If we don't know the state, see if we need to edit it in lisp form.
25722572
(unless state
2573-
(setq state (if (custom-show type value) 'unknown 'hidden)))
2573+
(with-suppressed-warnings ((obsolete custom-show))
2574+
(setq state (if (custom-show type value) 'unknown 'hidden))))
25742575
(when (eq state 'unknown)
25752576
(unless (widget-apply conv :match value)
25762577
(setq form 'mismatch)))

0 commit comments

Comments
 (0)