aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJan Djärv2011-02-17 11:19:29 +0100
committerJan Djärv2011-02-17 11:19:29 +0100
commit124c9ff0e5bd3502ab669d7669390fcdc5bd6122 (patch)
treef5949813f6f5cff24adfddd376a61cba44b1668d /src
parentdf70a04b097296737a1128a4163f0dfec1c3d51e (diff)
downloademacs-124c9ff0e5bd3502ab669d7669390fcdc5bd6122.tar.gz
emacs-124c9ff0e5bd3502ab669d7669390fcdc5bd6122.zip
Fix KVAR/BVAR,
* nsfns.m (Fx_create_frame, ns_set_name_as_filename) (Fns_read_file_name): Replace B_ with BVAR. * nsterm.m (ns_term_init): Use KVAR.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog7
-rw-r--r--src/nsfns.m12
-rw-r--r--src/nsterm.m2
3 files changed, 14 insertions, 7 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index ff950f4d9fd..048fc7f052d 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,10 @@
12011-02-17 Jan Djärv <jan.h.d@swipnet.se>
2
3 * nsfns.m (Fx_create_frame, ns_set_name_as_filename)
4 (Fns_read_file_name): Replace B_ with BVAR.
5
6 * nsterm.m (ns_term_init): Use KVAR.
7
12011-02-16 Eli Zaretskii <eliz@gnu.org> 82011-02-16 Eli Zaretskii <eliz@gnu.org>
2 9
3 * msdos.c (internal_terminal_init): Use KVAR. 10 * msdos.c (internal_terminal_init): Use KVAR.
diff --git a/src/nsfns.m b/src/nsfns.m
index c480c834602..6a5adbd7bf3 100644
--- a/src/nsfns.m
+++ b/src/nsfns.m
@@ -605,8 +605,8 @@ ns_set_name_as_filename (struct frame *f)
605 605
606 BLOCK_INPUT; 606 BLOCK_INPUT;
607 pool = [[NSAutoreleasePool alloc] init]; 607 pool = [[NSAutoreleasePool alloc] init];
608 filename = B_ (XBUFFER (buf), filename); 608 filename = BVAR (XBUFFER (buf), filename);
609 name = B_ (XBUFFER (buf), name); 609 name = BVAR (XBUFFER (buf), name);
610 610
611 if (NILP (name)) 611 if (NILP (name))
612 { 612 {
@@ -1329,9 +1329,9 @@ be shared by the new frame. */)
1329 } 1329 }
1330 1330
1331 if (FRAME_HAS_MINIBUF_P (f) 1331 if (FRAME_HAS_MINIBUF_P (f)
1332 && (!FRAMEP (kb->Vdefault_minibuffer_frame) 1332 && (!FRAMEP (KVAR (kb, Vdefault_minibuffer_frame))
1333 || !FRAME_LIVE_P (XFRAME (kb->Vdefault_minibuffer_frame)))) 1333 || !FRAME_LIVE_P (XFRAME (KVAR (kb, Vdefault_minibuffer_frame)))))
1334 kb->Vdefault_minibuffer_frame = frame; 1334 KVAR (kb, Vdefault_minibuffer_frame) = frame;
1335 1335
1336 /* All remaining specified parameters, which have not been "used" 1336 /* All remaining specified parameters, which have not been "used"
1337 by x_get_arg and friends, now go in the misc. alist of the frame. */ 1337 by x_get_arg and friends, now go in the misc. alist of the frame. */
@@ -1428,7 +1428,7 @@ Optional arg INIT, if non-nil, provides a default file name to use. */)
1428 NSString *promptS = NILP (prompt) || !STRINGP (prompt) ? nil : 1428 NSString *promptS = NILP (prompt) || !STRINGP (prompt) ? nil :
1429 [NSString stringWithUTF8String: SDATA (prompt)]; 1429 [NSString stringWithUTF8String: SDATA (prompt)];
1430 NSString *dirS = NILP (dir) || !STRINGP (dir) ? 1430 NSString *dirS = NILP (dir) || !STRINGP (dir) ?
1431 [NSString stringWithUTF8String: SDATA (B_ (current_buffer, directory))] : 1431 [NSString stringWithUTF8String: SDATA (BVAR (current_buffer, directory))] :
1432 [NSString stringWithUTF8String: SDATA (dir)]; 1432 [NSString stringWithUTF8String: SDATA (dir)];
1433 NSString *initS = NILP (init) || !STRINGP (init) ? nil : 1433 NSString *initS = NILP (init) || !STRINGP (init) ? nil :
1434 [NSString stringWithUTF8String: SDATA (init)]; 1434 [NSString stringWithUTF8String: SDATA (init)];
diff --git a/src/nsterm.m b/src/nsterm.m
index 590a76ba16d..a09c95c7d01 100644
--- a/src/nsterm.m
+++ b/src/nsterm.m
@@ -3762,7 +3762,7 @@ ns_term_init (Lisp_Object display_name)
3762 3762
3763 terminal->kboard = (KBOARD *) xmalloc (sizeof (KBOARD)); 3763 terminal->kboard = (KBOARD *) xmalloc (sizeof (KBOARD));
3764 init_kboard (terminal->kboard); 3764 init_kboard (terminal->kboard);
3765 terminal->kboard->Vwindow_system = Qns; 3765 KVAR (terminal->kboard, Vwindow_system) = Qns;
3766 terminal->kboard->next_kboard = all_kboards; 3766 terminal->kboard->next_kboard = all_kboards;
3767 all_kboards = terminal->kboard; 3767 all_kboards = terminal->kboard;
3768 /* Don't let the initial kboard remain current longer than necessary. 3768 /* Don't let the initial kboard remain current longer than necessary.