]> git.eshelyaron.com Git - emacs.git/commitdiff
Suppress warnings for obsolete display-comint-buffer-action (bug#69983)
authorJuri Linkov <juri@linkov.net>
Thu, 25 Apr 2024 17:34:28 +0000 (20:34 +0300)
committerEshel Yaron <me@eshelyaron.com>
Mon, 29 Apr 2024 15:02:15 +0000 (17:02 +0200)
* lisp/cmuscheme.el (run-scheme, switch-to-scheme):
* lisp/shell.el (shell):
* lisp/eshell/eshell.el (eshell):
* lisp/progmodes/inf-lisp.el (inferior-lisp):
* lisp/progmodes/sh-script.el (sh-show-shell):
* lisp/textmodes/tex-mode.el (tex-display-shell)
(tex-recenter-output-buffer): Add 'with-suppressed-warnings'
to suppress warnings for obsolete options
'display-comint-buffer-action' and 'display-tex-shell-buffer-action'.

(cherry picked from commit 598505c4faa7c37133223417172223356ea02e65)

lisp/cmuscheme.el
lisp/eshell/eshell.el
lisp/progmodes/inf-lisp.el
lisp/progmodes/sh-script.el
lisp/shell.el
lisp/textmodes/tex-mode.el

index c84a1809322e055b371ac9b345c34e546e2f1409..d4316fb11751bacceec936760763258997317de8 100644 (file)
@@ -238,7 +238,8 @@ is run).
        (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)))
 
 (defun scheme-start-file (prog)
   "Return the name of the start file corresponding to PROG.
@@ -358,7 +359,8 @@ With argument, position cursor at end of buffer."
   (interactive "P")
   (if (or (and scheme-buffer (get-buffer scheme-buffer))
           (scheme-interactively-start-process))
-      (pop-to-buffer scheme-buffer display-comint-buffer-action)
+      (with-suppressed-warnings ((obsolete display-comint-buffer-action))
+        (pop-to-buffer scheme-buffer display-comint-buffer-action))
     (error "No current process buffer.  See variable `scheme-buffer'"))
   (when eob-p
     (push-mark)
index 7d374587dc4e00d4936a04ebf7d70f7e4640fabd..503f64add4159238697a2bce0305f7a530b7c867 100644 (file)
@@ -250,7 +250,8 @@ information on Eshell, see Info node `(eshell)Top'."
                   (t
                    (get-buffer-create eshell-buffer-name)))))
     (cl-assert (and buf (buffer-live-p buf)))
-    (pop-to-buffer buf display-comint-buffer-action)
+    (with-suppressed-warnings ((obsolete display-comint-buffer-action))
+      (pop-to-buffer buf display-comint-buffer-action))
     (unless (derived-mode-p 'eshell-mode)
       (eshell-mode))
     buf))
index 141bd18cf1ec293dc391dd494589ff23198cddc2..687b176009e187b774f4c258880aa404d8c39586 100644 (file)
@@ -308,7 +308,8 @@ quoted using shell quote syntax.
                           "inferior-lisp" (car cmdlist) nil (cdr cmdlist)))
        (inferior-lisp-mode)))
   (setq inferior-lisp-buffer "*inferior-lisp*")
-  (pop-to-buffer "*inferior-lisp*" display-comint-buffer-action))
+  (with-suppressed-warnings ((obsolete display-comint-buffer-action))
+    (pop-to-buffer "*inferior-lisp*" display-comint-buffer-action)))
 
 ;;;###autoload
 (defalias 'run-lisp 'inferior-lisp)
index 20c9e00edbf9447195a17836e87b995c4b84322b..a348e9ba6fdb73993d7b0a9233d4e1b98648d5af 100644 (file)
@@ -1435,7 +1435,8 @@ If FORCE is non-nil and no process found, create one."
 (defun sh-show-shell ()
   "Pop the shell interaction buffer."
   (interactive)
-  (pop-to-buffer (process-buffer (sh-shell-process t)) display-comint-buffer-action))
+  (with-suppressed-warnings ((obsolete display-comint-buffer-action))
+    (pop-to-buffer (process-buffer (sh-shell-process t)) display-comint-buffer-action)))
 
 (defun sh-send-text (text)
   "Send TEXT to `sh-shell-process'."
index 7354a659f3fc1420763f077c3801aabe6e5619d8..c2f84e2eef9ee431c1aa8a1b7b5ba0b05740e46a 100644 (file)
@@ -922,7 +922,8 @@ Make the shell buffer the current buffer, and return it.
                  (current-buffer)))
   ;; The buffer's window must be correctly set when we call comint
   ;; (so that comint sets the COLUMNS env var properly).
-  (pop-to-buffer buffer display-comint-buffer-action)
+  (with-suppressed-warnings ((obsolete display-comint-buffer-action))
+    (pop-to-buffer buffer display-comint-buffer-action))
 
   (with-connection-local-variables
    (when file-name
index 02ee1242c724eefe50d565f344f605a77e3bb3c8..97c950267c6697e5faa67f8b1b6700b587d25d99 100644 (file)
@@ -2035,7 +2035,8 @@ In the tex shell buffer this command behaves like `comint-send-input'."
 
 (defun tex-display-shell ()
   "Make the TeX shell buffer visible in a window."
-  (display-buffer (tex-shell-buf) display-tex-shell-buffer-action)
+  (with-suppressed-warnings ((obsolete display-tex-shell-buffer-action))
+    (display-buffer (tex-shell-buf) display-tex-shell-buffer-action))
   (tex-recenter-output-buffer nil))
 
 (defun tex-shell-sentinel (proc _msg)
@@ -2692,7 +2693,8 @@ line LINE of the window, or centered if LINE is nil."
     (if (null tex-shell)
        (message "No TeX output buffer")
       (when-let ((window
-                  (display-buffer tex-shell display-tex-shell-buffer-action)))
+                  (with-suppressed-warnings ((obsolete display-tex-shell-buffer-action))
+                    (display-buffer tex-shell display-tex-shell-buffer-action))))
         (with-selected-window window
          (bury-buffer tex-shell)
          (goto-char (point-max))