我需要一些帮助,请定义一个打开目录树的另存为函数,而不是仅仅在状态栏中给我一个路径。. . 具体来说,ns-popup-save-panel
当前版本的 emacs 无法识别。我正在寻找类似的东西write-file filename &optional confirm
。我尝试了不同的组合,但我仍然无法获得弹出菜单保存文件目录树。我已经弄清楚了键盘快捷键。当我尝试插入时,Emacs 抱怨 void 变量write-file filename &optional confirm
。只是简单的旧write-file
或save-buffer
不打开目录列表。
(defun mac-key-save-file-as (&optional filename)
"Save buffer to a file, selecting file by dialog.
Displays sheet. File is saved once user has dismissed sheet."
(interactive)
(ns-popup-save-panel "Select File to Save Buffer" default-directory (if buffer-file-name (file-name-nondirectory buffer-file-name) "Untitled"))
)