aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEli Zaretskii2011-02-14 19:35:21 +0200
committerEli Zaretskii2011-02-14 19:35:21 +0200
commitfc3ca11315448fa7310f064fd9953b943ae733bf (patch)
treed18258c434b781ae5c451f3c63ffc63983a2290b /src
parent3928f2b67e69cd22995558cc205a2fc6aa33d477 (diff)
downloademacs-fc3ca11315448fa7310f064fd9953b943ae733bf.tar.gz
emacs-fc3ca11315448fa7310f064fd9953b943ae733bf.zip
Fix the MS-Windows build due to introduction of B_.
dired.c (directory_files_internal): fileio.c (Finsert_file_contents): insdel.c (prepare_to_modify_buffer): xdisp.c (pos_visible_p): s/ms-w32.h (MODE_LINE_BINARY_TEXT): w32fns.c (Fw32_shell_execute, Fx_show_tip, x_create_tip_frame): Use B_ for the MS-Windows build. From Tom Tromey: buffer.c (init_buffer_once, syms_of_buffer): Use B_ in DOS_NT case.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog12
-rw-r--r--src/buffer.c6
-rw-r--r--src/dired.c2
-rw-r--r--src/fileio.c4
-rw-r--r--src/insdel.c6
-rw-r--r--src/s/ms-w32.h2
-rw-r--r--src/w32fns.c6
7 files changed, 25 insertions, 13 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 54d9a32804d..904a89fb663 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,13 @@
12011-02-14 Eli Zaretskii <eliz@gnu.org>
2
3 * dired.c (directory_files_internal):
4 * fileio.c (Finsert_file_contents):
5 * insdel.c (prepare_to_modify_buffer):
6 * xdisp.c (pos_visible_p):
7 * s/ms-w32.h (MODE_LINE_BINARY_TEXT):
8 * w32fns.c (Fw32_shell_execute, Fx_show_tip, x_create_tip_frame):
9 Use B_ for the MS-Windows build.
10
12011-02-14 Jan Djärv <jan.h.d@swipnet.se> 112011-02-14 Jan Djärv <jan.h.d@swipnet.se>
2 12
3 * xrdb.c (x_load_resources): For LUCID and XFT, don't put a 13 * xrdb.c (x_load_resources): For LUCID and XFT, don't put a
@@ -11,6 +21,8 @@
11 21
122011-02-14 Tom Tromey <tromey@redhat.com> 222011-02-14 Tom Tromey <tromey@redhat.com>
13 23
24 * buffer.c (init_buffer_once, syms_of_buffer): Use B_ in DOS_NT case.
25
14 * keyboard.h: Remove obsolete comment. 26 * keyboard.h: Remove obsolete comment.
15 27
162011-02-14 Tom Tromey <tromey@parfait> 282011-02-14 Tom Tromey <tromey@parfait>
diff --git a/src/buffer.c b/src/buffer.c
index fc2dd3a4691..49ae4bbede2 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -5041,7 +5041,7 @@ init_buffer_once (void)
5041 B_ (&buffer_defaults, cursor_in_non_selected_windows) = Qt; 5041 B_ (&buffer_defaults, cursor_in_non_selected_windows) = Qt;
5042 5042
5043#ifdef DOS_NT 5043#ifdef DOS_NT
5044 buffer_defaults.buffer_file_type = Qnil; /* TEXT */ 5044 B_ (&buffer_defaults, buffer_file_type) = Qnil; /* TEXT */
5045#endif 5045#endif
5046 B_ (&buffer_defaults, enable_multibyte_characters) = Qt; 5046 B_ (&buffer_defaults, enable_multibyte_characters) = Qt;
5047 B_ (&buffer_defaults, buffer_file_coding_system) = Qnil; 5047 B_ (&buffer_defaults, buffer_file_coding_system) = Qnil;
@@ -5113,7 +5113,7 @@ init_buffer_once (void)
5113 XSETFASTINT (B_ (&buffer_local_flags, abbrev_table), idx); ++idx; 5113 XSETFASTINT (B_ (&buffer_local_flags, abbrev_table), idx); ++idx;
5114 XSETFASTINT (B_ (&buffer_local_flags, display_table), idx); ++idx; 5114 XSETFASTINT (B_ (&buffer_local_flags, display_table), idx); ++idx;
5115#ifdef DOS_NT 5115#ifdef DOS_NT
5116 XSETFASTINT (buffer_local_flags.buffer_file_type, idx); 5116 XSETFASTINT (B_ (&buffer_local_flags, buffer_file_type), idx);
5117 /* Make this one a permanent local. */ 5117 /* Make this one a permanent local. */
5118 buffer_permanent_local_flags[idx++] = 1; 5118 buffer_permanent_local_flags[idx++] = 1;
5119#endif 5119#endif
@@ -5674,7 +5674,7 @@ word-wrapping, you might want to reduce the value of
5674in narrower windows. */); 5674in narrower windows. */);
5675 5675
5676#ifdef DOS_NT 5676#ifdef DOS_NT
5677 DEFVAR_PER_BUFFER ("buffer-file-type", &current_buffer->buffer_file_type, 5677 DEFVAR_PER_BUFFER ("buffer-file-type", &B_ (current_buffer, buffer_file_type),
5678 Qnil, 5678 Qnil,
5679 doc: /* Non-nil if the visited file is a binary file. 5679 doc: /* Non-nil if the visited file is a binary file.
5680This variable is meaningful on MS-DOG and Windows NT. 5680This variable is meaningful on MS-DOG and Windows NT.
diff --git a/src/dired.c b/src/dired.c
index e37055258d6..f1dc03b56d0 100644
--- a/src/dired.c
+++ b/src/dired.c
@@ -158,7 +158,7 @@ directory_files_internal (Lisp_Object directory, Lisp_Object full, Lisp_Object m
158# ifdef WINDOWSNT 158# ifdef WINDOWSNT
159 /* Windows users want case-insensitive wildcards. */ 159 /* Windows users want case-insensitive wildcards. */
160 bufp = compile_pattern (match, 0, 160 bufp = compile_pattern (match, 0,
161 buffer_defaults.case_canon_table, 0, 1); 161 B_ (&buffer_defaults, case_canon_table), 0, 1);
162# else /* !WINDOWSNT */ 162# else /* !WINDOWSNT */
163 bufp = compile_pattern (match, 0, Qnil, 0, 1); 163 bufp = compile_pattern (match, 0, Qnil, 0, 1);
164# endif /* !WINDOWSNT */ 164# endif /* !WINDOWSNT */
diff --git a/src/fileio.c b/src/fileio.c
index afef7888b78..4a4935b43a2 100644
--- a/src/fileio.c
+++ b/src/fileio.c
@@ -4110,9 +4110,9 @@ variable `last-coding-system-used' to the coding system actually used. */)
4110 if ((VECTORP (CODING_ID_EOL_TYPE (coding.id)) 4110 if ((VECTORP (CODING_ID_EOL_TYPE (coding.id))
4111 || EQ (CODING_ID_EOL_TYPE (coding.id), Qunix)) 4111 || EQ (CODING_ID_EOL_TYPE (coding.id), Qunix))
4112 && ! CODING_REQUIRE_DECODING (&coding)) 4112 && ! CODING_REQUIRE_DECODING (&coding))
4113 current_buffer->buffer_file_type = Qt; 4113 B_ (current_buffer, buffer_file_type) = Qt;
4114 else 4114 else
4115 current_buffer->buffer_file_type = Qnil; 4115 B_ (current_buffer, buffer_file_type) = Qnil;
4116#endif 4116#endif
4117 4117
4118 handled: 4118 handled:
diff --git a/src/insdel.c b/src/insdel.c
index e127ea555fb..db997fc938e 100644
--- a/src/insdel.c
+++ b/src/insdel.c
@@ -2029,12 +2029,12 @@ prepare_to_modify_buffer (EMACS_INT start, EMACS_INT end,
2029 lock_file (B_ (base_buffer, file_truename)); 2029 lock_file (B_ (base_buffer, file_truename));
2030#else 2030#else
2031 /* At least warn if this file has changed on disk since it was visited. */ 2031 /* At least warn if this file has changed on disk since it was visited. */
2032 if (!NILP (base_buffer->filename) 2032 if (!NILP (B_ (base_buffer, filename))
2033 && SAVE_MODIFF >= MODIFF 2033 && SAVE_MODIFF >= MODIFF
2034 && NILP (Fverify_visited_file_modtime (Fcurrent_buffer ())) 2034 && NILP (Fverify_visited_file_modtime (Fcurrent_buffer ()))
2035 && !NILP (Ffile_exists_p (base_buffer->filename))) 2035 && !NILP (Ffile_exists_p (B_ (base_buffer, filename))))
2036 call1 (intern ("ask-user-about-supersession-threat"), 2036 call1 (intern ("ask-user-about-supersession-threat"),
2037 base_buffer->filename); 2037 B_ (base_buffer,filename));
2038#endif /* not CLASH_DETECTION */ 2038#endif /* not CLASH_DETECTION */
2039 2039
2040 /* If `select-active-regions' is non-nil, save the region text. */ 2040 /* If `select-active-regions' is non-nil, save the region text. */
diff --git a/src/s/ms-w32.h b/src/s/ms-w32.h
index 4c3b84dfe4c..34814687597 100644
--- a/src/s/ms-w32.h
+++ b/src/s/ms-w32.h
@@ -181,7 +181,7 @@ struct sigaction {
181#define HAVE_MENUS 1 181#define HAVE_MENUS 1
182#endif 182#endif
183 183
184#define MODE_LINE_BINARY_TEXT(_b_) (NILP ((_b_)->buffer_file_type) ? "T" : "B") 184#define MODE_LINE_BINARY_TEXT(_b_) (NILP (B_(_b_,buffer_file_type)) ? "T" : "B")
185 185
186/* Get some redefinitions in place. */ 186/* Get some redefinitions in place. */
187 187
diff --git a/src/w32fns.c b/src/w32fns.c
index b09bb0b5b5f..64e073bedb7 100644
--- a/src/w32fns.c
+++ b/src/w32fns.c
@@ -5225,7 +5225,7 @@ x_create_tip_frame (struct w32_display_info *dpyinfo,
5225 Fset_window_buffer (FRAME_ROOT_WINDOW (f), buffer, Qnil); 5225 Fset_window_buffer (FRAME_ROOT_WINDOW (f), buffer, Qnil);
5226 old_buffer = current_buffer; 5226 old_buffer = current_buffer;
5227 set_buffer_internal_1 (XBUFFER (buffer)); 5227 set_buffer_internal_1 (XBUFFER (buffer));
5228 current_buffer->truncate_lines = Qnil; 5228 B_ (current_buffer, truncate_lines) = Qnil;
5229 specbind (Qinhibit_read_only, Qt); 5229 specbind (Qinhibit_read_only, Qt);
5230 specbind (Qinhibit_modification_hooks, Qt); 5230 specbind (Qinhibit_modification_hooks, Qt);
5231 Ferase_buffer (); 5231 Ferase_buffer ();
@@ -5655,7 +5655,7 @@ Text larger than the specified size is clipped. */)
5655 /* Display the tooltip text in a temporary buffer. */ 5655 /* Display the tooltip text in a temporary buffer. */
5656 old_buffer = current_buffer; 5656 old_buffer = current_buffer;
5657 set_buffer_internal_1 (XBUFFER (XWINDOW (FRAME_ROOT_WINDOW (f))->buffer)); 5657 set_buffer_internal_1 (XBUFFER (XWINDOW (FRAME_ROOT_WINDOW (f))->buffer));
5658 current_buffer->truncate_lines = Qnil; 5658 B_ (current_buffer, truncate_lines) = Qnil;
5659 clear_glyph_matrix (w->desired_matrix); 5659 clear_glyph_matrix (w->desired_matrix);
5660 clear_glyph_matrix (w->current_matrix); 5660 clear_glyph_matrix (w->current_matrix);
5661 SET_TEXT_POS (pos, BEGV, BEGV_BYTE); 5661 SET_TEXT_POS (pos, BEGV, BEGV_BYTE);
@@ -6162,7 +6162,7 @@ an integer representing a ShowWindow flag:
6162 CHECK_STRING (document); 6162 CHECK_STRING (document);
6163 6163
6164 /* Encode filename, current directory and parameters. */ 6164 /* Encode filename, current directory and parameters. */
6165 current_dir = ENCODE_FILE (current_buffer->directory); 6165 current_dir = ENCODE_FILE (B_ (current_buffer, directory));
6166 document = ENCODE_FILE (document); 6166 document = ENCODE_FILE (document);
6167 if (STRINGP (parameters)) 6167 if (STRINGP (parameters))
6168 parameters = ENCODE_SYSTEM (parameters); 6168 parameters = ENCODE_SYSTEM (parameters);