]> git.eshelyaron.com Git - emacs.git/commitdiff
Use FSET.
authorJan Djärv <jan.h.d@swipnet.se>
Mon, 6 Aug 2012 12:54:54 +0000 (14:54 +0200)
committerJan Djärv <jan.h.d@swipnet.se>
Mon, 6 Aug 2012 12:54:54 +0000 (14:54 +0200)
* nsmenu.m (ns_update_menubar): Use FSET.

* nsterm.m (ns_frame_rehighlight): Use FSET.

src/ChangeLog
src/nsmenu.m
src/nsterm.m

index caee8513e3ed231b93f7570f6f4d4fdabb13ce4b..146eed20e37635685ba770a12e2531d34ce47027 100644 (file)
@@ -1,3 +1,9 @@
+2012-08-06  Jan Djärv  <jan.h.d@swipnet.se>
+
+       * nsterm.m (ns_frame_rehighlight): Use FSET.
+
+       * nsmenu.m (ns_update_menubar): Use FSET.
+
 2012-08-06  Dmitry Antipov  <dmantipov@yandex.ru>
 
        Separate read and write access to Lisp_Object slots of Lisp_Process.
index f13c513940f1e5b5a6266e09e0f6f2359e501875..152127e66c53d0600e550677c4a0d8a45f39fef5 100644 (file)
@@ -215,7 +215,7 @@ ns_update_menubar (struct frame *f, int deep_p, EmacsMenu *submenu)
       if (! NILP (Vlucid_menu_bar_dirty_flag))
        call0 (Qrecompute_lucid_menubar);
       safe_run_hooks (Qmenu_bar_update_hook);
-      FRAME_MENU_BAR_ITEMS (f) = menu_bar_items (FRAME_MENU_BAR_ITEMS (f));
+      FSET (f, menu_bar_items, menu_bar_items (FRAME_MENU_BAR_ITEMS (f)));
 
       /* Now ready to go */
       items = FRAME_MENU_BAR_ITEMS (f);
index 67f3205a897712d8e0ae25ea5221e7f3ac893838..046ed4d3082c966e72539811b91477cb54faebab 100644 (file)
@@ -1018,7 +1018,7 @@ ns_frame_rehighlight (struct frame *frame)
            : dpyinfo->x_focus_frame);
       if (!FRAME_LIVE_P (dpyinfo->x_highlight_frame))
         {
-          FRAME_FOCUS_FRAME (dpyinfo->x_focus_frame) = Qnil;
+          FSET (dpyinfo->x_focus_frame, focus_frame, Qnil);
           dpyinfo->x_highlight_frame = dpyinfo->x_focus_frame;
         }
     }