* lisp/files.el (write-file): Do not display confirm dialog for NS,
authorJan Djärv <jan.h.d@swipnet.se>
Sat, 6 Jul 2013 17:58:41 +0000 (19:58 +0200)
committerJan Djärv <jan.h.d@swipnet.se>
Sat, 6 Jul 2013 17:58:41 +0000 (19:58 +0200)
commit1afb1d071576f7884a475c04955fc33126f70221
tree96ed2d6b2ca528e3b3778db14e2cd41a7361bb73
parent23de972aa74fce7360b263d639ffbd674931e408
* lisp/files.el (write-file): Do not display confirm dialog for NS,
it does its own dialog, which can't be cancelled.

* src/nsfns.m: Remove panelOK.
(ns_fd_data): New.
(ns_run_file_dialog): New function.
(Fns_read_file_name): Fill in ns_fd_data, post an event and start the
event loop, so file dialog is popped up by ns_run_file_dialog, called
by sendEvent (Bug#14578).
(EmacsSavePanel, EmacsOpenPanel): Remove ok and cancel methods.

* src/nsterm.h (NSSavePanel): Update comment.
(NSAPP_DATA2_RUNFILEDIALOG): Define.
(ns_run_file_dialog): Declare.

* src/nsterm.m (sendEvent:): Handle NSAPP_DATA2_RUNFILEDIALOG.
lisp/ChangeLog
lisp/files.el
src/ChangeLog
src/nsfns.m
src/nsterm.h
src/nsterm.m