Subject: bug#69983: Use category for display-buffer-alist

From: Juri Linkov <[email-masked]>
Date: Wed, 24 Apr 2024 19:46:39 +0300

> +(make-obsolete-variable
> + 'display-comint-buffer-action
> + "use a `(category . comint)' condition in `display-buffer-alist'."
> + "30.1")

I noticed this now gives during byte-compilation:

 Warning: `display-comint-buffer-action' is an obsolete variable (as of 30.1)

So probably the best thing to do would be to suppress warnings such as:

diff --git a/lisp/cmuscheme.el b/lisp/cmuscheme.el
index c84a1809322..d4316fb1175 100644
--- a/lisp/cmuscheme.el
+++ b/lisp/cmuscheme.el
@@ -238,7 +238,8 @@ run-scheme
 	(inferior-scheme-mode)))
   (setq scheme-program-name cmd)
   (setq scheme-buffer "*scheme*")
-  (pop-to-buffer "*scheme*" display-comint-buffer-action))
+  (with-suppressed-warnings ((obsolete display-comint-buffer-action))
+    (pop-to-buffer "*scheme*" display-comint-buffer-action)))