Clean up unneeded ns_set_icon_type calls.
authorChong Yidong <cyd@stupidchicken.com>
Mon, 29 Mar 2010 23:48:44 +0000 (19:48 -0400)
committerChong Yidong <cyd@stupidchicken.com>
Mon, 29 Mar 2010 23:48:44 +0000 (19:48 -0400)
commit9ae6e189241f0b917d9b9c299738c79240151c59
tree60ce2e3bf83af4dcc5c298bf92a337122747bd7e
parent3cbcd186e13c3c27e3942a448d8cf708cf47c934
Clean up unneeded ns_set_icon_type calls.

Patch from Adrian Robert, see
http://lists.gnu.org/archive/html/emacs-devel/2010-03/msg01391.html

* xdisp.c (x_consider_frame_title, update_window_cursor): Remove
HAVE_NS conditionals.
(prepare_menu_bars)[HAVE_NS]: Call ns_set_doc_edited.

* nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
filename for the title.
(ns_set_doc_edited): Do nothing if the selected window is a
minibuffer window.

* nsterm.h: Add prototypes for ns_set_name_as_filename and
ns_set_doc_edited.

* nsterm.m: Remove unneeded prototype.
src/ChangeLog
src/nsfns.m
src/nsterm.h
src/nsterm.m
src/xdisp.c