]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix NS-related compilation errors.
authorPhilipp Stephani <phst@google.com>
Tue, 13 Feb 2018 08:55:46 +0000 (09:55 +0100)
committerPhilipp Stephani <phst@google.com>
Tue, 13 Feb 2018 08:55:46 +0000 (09:55 +0100)
* src/nsterm.m (ns_set_represented_filename): Remove unused variable
'view'.

* src/nsfns.m (x_implicitly_set_name, syms_of_nsfns): The type of a
variable defined with DEFVAR_BOOL is 'bool', not 'Lisp_Object'.

src/nsfns.m
src/nsterm.m

index bbb6644ce032fd2ef334439a707fbf23b8045a5b..06827f6dd193d86032ca7fed074226152b7c2099 100644 (file)
@@ -482,7 +482,7 @@ x_implicitly_set_name (struct frame *f, Lisp_Object arg, Lisp_Object oldval)
 {
   NSTRACE ("x_implicitly_set_name");
 
-  if (! NILP (ns_use_proxy_icon))
+  if (ns_use_proxy_icon)
     ns_set_represented_filename (f);
 
   ns_set_name (f, arg, 0);
@@ -3234,7 +3234,7 @@ be used as the image of the icon representing the frame.  */);
   DEFVAR_BOOL ("ns-use-proxy-icon", ns_use_proxy_icon,
                doc: /* When non-nil display a proxy icon in the titlebar.
 Default is t.  */);
-  ns_use_proxy_icon = Qt;
+  ns_use_proxy_icon = true;
 
   defsubr (&Sns_read_file_name);
   defsubr (&Sns_get_resource);
index 29aef0e9b6d1ddbc82a089d8a40203f5dfa2d47e..8a66643cfb7b98273e41afd2bdcd4c36575184d5 100644 (file)
@@ -471,7 +471,6 @@ static void ns_judge_scroll_bars (struct frame *f);
 void
 ns_set_represented_filename (struct frame *f)
 {
-  NSView *view;
   Lisp_Object filename, encoded_filename;
   Lisp_Object buf = XWINDOW (f->selected_window)->contents;
   NSAutoreleasePool *pool;