From ef72f149bdb1aeaf2587904f578bb26ec4c1bf99 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Mon, 14 Feb 2011 19:58:13 +0200 Subject: [PATCH] Fix the MS-DOS build due to introduction of B_. msdos.c (IT_frame_up_to_date): s/msdos.h (MODE_LINE_BINARY_TEXT): Use B_ for the MS-DOS build. --- src/ChangeLog | 3 +++ src/msdos.c | 6 +++--- src/s/msdos.h | 2 +- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index 904a89fb663..2f5749238ff 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,5 +1,8 @@ 2011-02-14 Eli Zaretskii + * msdos.c (IT_frame_up_to_date): + * s/msdos.h (MODE_LINE_BINARY_TEXT): Use B_ for the MS-DOS build. + * dired.c (directory_files_internal): * fileio.c (Finsert_file_contents): * insdel.c (prepare_to_modify_buffer): diff --git a/src/msdos.c b/src/msdos.c index eb73f54838d..d37200e700a 100644 --- a/src/msdos.c +++ b/src/msdos.c @@ -1317,12 +1317,12 @@ IT_frame_up_to_date (struct frame *f) { struct buffer *b = XBUFFER (sw->buffer); - if (EQ (b->cursor_type, Qt)) + if (EQ (B_ (b,cursor_type), Qt)) new_cursor = frame_desired_cursor; - else if (NILP (b->cursor_type)) /* nil means no cursor */ + else if (NILP (B_ (b, cursor_type))) /* nil means no cursor */ new_cursor = Fcons (Qbar, make_number (0)); else - new_cursor = b->cursor_type; + new_cursor = B_ (b, cursor_type); } IT_set_cursor_type (f, new_cursor); diff --git a/src/s/msdos.h b/src/s/msdos.h index 88afaa83455..a1d23521a0a 100644 --- a/src/s/msdos.h +++ b/src/s/msdos.h @@ -92,7 +92,7 @@ You lose; /* Emacs for DOS must be compiled with DJGPP */ /* Mode line description of a buffer's type. */ -#define MODE_LINE_BINARY_TEXT(buf) (NILP(buf->buffer_file_type) ? "T" : "B") +#define MODE_LINE_BINARY_TEXT(buf) (NILP(B_(buf,buffer_file_type)) ? "T" : "B") /* We have (the code to control) a mouse. */ #define HAVE_MOUSE -- 2.39.5