]> git.eshelyaron.com Git - emacs.git/commit
* nsfns.m (ns_filename_from_panel, ns_directory_from_panel): New
authorJan Djärv <jan.h.d@swipnet.se>
Sat, 16 Mar 2013 13:52:12 +0000 (14:52 +0100)
committerJan Djärv <jan.h.d@swipnet.se>
Sat, 16 Mar 2013 13:52:12 +0000 (14:52 +0100)
commit8f2906f551da4a06c0097887e8ad61b8144baeac
treed262fad9285dde83ce3cc99777007de5091296d2
parent3f53a2bd1aeabffce2dcbb29cb4e36eb46ca6240
* nsfns.m (ns_filename_from_panel, ns_directory_from_panel): New
functions.
(Fns_read_file_name): ret is BOOL.  If ! dir_only_p, don't choose
directories.  If filename is nil, get directory name.
Use getFilename and getDirectory.
(getFilename, getDirectory): New methods for EmacsSavePanel and
EmacsOpenPanel.
(ok:): In EmacsOpenPanel, if we can't choose directories, just return.

* nsterm.h (EmacsSavePanel, EmacsOpenPanel): Add getFilename
and getDirectory.

Fixes: debbugs:13932
src/ChangeLog
src/nsfns.m
src/nsterm.h