]> code.delx.au - gnu-emacs/commit
Don't open files from Cocoa-parsed command line.
authorJan Djärv <jan.h.d@swipnet.se>
Mon, 30 Jul 2012 20:10:31 +0000 (22:10 +0200)
committerJan Djärv <jan.h.d@swipnet.se>
Mon, 30 Jul 2012 20:10:31 +0000 (22:10 +0200)
commitadff3182ba51523423ce15cf26347c2b8b130826
tree1c252b9524f2fe920ce92b733072aca917ffb4a3
parent1f45e27eb651f5d13d83b1916470fc32fc8769ab
Don't open files from Cocoa-parsed command line.

--eval '(whatever)' will open '(whatever)' if --eval is the last option.

* src/nsterm.m (ns_do_open_file): New variable.
(ns_term_init): Set ns_do_open_file to NO after run returns.
(openFile, openTempFile, openFileWithoutUI, openFiles): Open
files only if ns_do_open_file.
src/ChangeLog
src/nsterm.m