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:
committed by
Martin Rudalics
parent
a7d0520721
commit
8dcbf4fafc
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user