lisp/org-compat.el: Fix compiler warning when make single

* lisp/org-compat.el (org-switch-to-buffer-other-window): Do not use
obsolete macro.  Even with `with-no-warnings', a warning is emitted.
This commit is contained in:
Ihor Radchenko 2024-02-02 14:33:01 +01:00
parent 62c6d5668d
commit 344d4624e1
No known key found for this signature in database
GPG Key ID: 6470762A7DA11D8B
1 changed files with 3 additions and 2 deletions

View File

@ -681,8 +681,9 @@ This constant, for example, makes the below code not err:
"Switch to buffer in a second window on the current frame.
In particular, do not allow pop-up frames.
Returns the newly created buffer."
(with-no-warnings (org-no-popups (apply #'switch-to-buffer-other-window args))))
(make-obsolete 'org-switch-to-buffer-other-window "no longer used" "9.7")
(let (pop-up-frames pop-up-windows)
(apply #'switch-to-buffer-other-window args)))
(make-obsolete 'org-switch-to-buffer-other-window "no longer used" "9.7")
(make-obsolete 'org-refresh-category-properties "no longer used" "9.7")
(make-obsolete 'org-refresh-effort-properties "no longer used" "9.7")