1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-03-28 09:41:37 -07:00

Fix wrong type argument error in 'find-file-read-only-other-tab' (Bug#80630)

* lisp/tab-bar.el (find-file-read-only-other-tab): Pass the
function 'find-file-other-tab' directly to
'find-file--read-only' (Bug#80630).

Copyright-paperwork-exempt: yes
This commit is contained in:
Guilherme de Almeida Suckevicz 2026-03-22 09:27:41 +01:00 committed by Martin Rudalics
parent a7d0520721
commit 8dcbf4fafc

View file

@ -3137,10 +3137,7 @@ files will be visited."
(interactive
(find-file-read-args "Find file read-only in other tab: "
(confirm-nonexistent-file-or-buffer)))
(find-file--read-only (lambda (filename wildcards)
(window-buffer
(find-file-other-tab filename wildcards)))
filename wildcards))
(find-file--read-only #'find-file-other-tab filename wildcards))
(defun other-tab-prefix ()
"Display the buffer of the next command in a new tab.