From: Eli Zaretskii Date: Tue, 15 Feb 2011 03:57:00 +0000 (+0200) Subject: Fix the NS build due to introduction of B_. X-Git-Tag: emacs-pretest-24.0.90~104^2~275^2~874 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=8017fd6b81ed07c1ff3adf7494c867f9a2b034a9;p=emacs.git Fix the NS build due to introduction of B_. nsfns.m (ns_set_name_as_filename, Fns_read_file_name): Use B_. --- diff --git a/src/ChangeLog b/src/ChangeLog index e3a3137e482..c9ae55a30c1 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2011-02-15 Eli Zaretskii + + * nsfns.m (ns_set_name_as_filename, Fns_read_file_name): Use B_. + 2011-02-14 Michael Welsh Duggan * print.c (float_to_string): Ensure that a decimal point is diff --git a/src/nsfns.m b/src/nsfns.m index f1bf8b65727..c480c834602 100644 --- a/src/nsfns.m +++ b/src/nsfns.m @@ -605,8 +605,8 @@ ns_set_name_as_filename (struct frame *f) BLOCK_INPUT; pool = [[NSAutoreleasePool alloc] init]; - filename = XBUFFER (buf)->filename; - name = XBUFFER (buf)->name; + filename = B_ (XBUFFER (buf), filename); + name = B_ (XBUFFER (buf), name); if (NILP (name)) { @@ -1428,7 +1428,7 @@ Optional arg INIT, if non-nil, provides a default file name to use. */) NSString *promptS = NILP (prompt) || !STRINGP (prompt) ? nil : [NSString stringWithUTF8String: SDATA (prompt)]; NSString *dirS = NILP (dir) || !STRINGP (dir) ? - [NSString stringWithUTF8String: SDATA (current_buffer->directory)] : + [NSString stringWithUTF8String: SDATA (B_ (current_buffer, directory))] : [NSString stringWithUTF8String: SDATA (dir)]; NSString *initS = NILP (init) || !STRINGP (init) ? nil : [NSString stringWithUTF8String: SDATA (init)];