aboutsummaryrefslogtreecommitdiffstats
path: root/src/buffer.h
diff options
context:
space:
mode:
authorPaul Eggert2011-02-17 23:44:39 -0800
committerPaul Eggert2011-02-17 23:44:39 -0800
commit37b3d30244ad822e049b6b20c2eadf5946cb02cc (patch)
tree49bfe5e475aee761975f2618be4ee1b7c8371a72 /src/buffer.h
parent0ca2f89e09202a02f392c1defba2105b69c01419 (diff)
parent7d315eb67800796d7d7f39030eb7682340d985e5 (diff)
downloademacs-37b3d30244ad822e049b6b20c2eadf5946cb02cc.tar.gz
emacs-37b3d30244ad822e049b6b20c2eadf5946cb02cc.zip
Merge from mainline.
Diffstat (limited to 'src/buffer.h')
-rw-r--r--src/buffer.h14
1 files changed, 4 insertions, 10 deletions
diff --git a/src/buffer.h b/src/buffer.h
index 36cb5fe9dda..65c7168d60a 100644
--- a/src/buffer.h
+++ b/src/buffer.h
@@ -321,7 +321,7 @@ while (0)
321/* Return character at byte position POS. */ 321/* Return character at byte position POS. */
322 322
323#define FETCH_CHAR(pos) \ 323#define FETCH_CHAR(pos) \
324 (!NILP (B_ (current_buffer, enable_multibyte_characters)) \ 324 (!NILP (BVAR (current_buffer, enable_multibyte_characters)) \
325 ? FETCH_MULTIBYTE_CHAR ((pos)) \ 325 ? FETCH_MULTIBYTE_CHAR ((pos)) \
326 : FETCH_BYTE ((pos))) 326 : FETCH_BYTE ((pos)))
327 327
@@ -346,7 +346,7 @@ extern unsigned char *_fetch_multibyte_char_p;
346 multibyte. */ 346 multibyte. */
347 347
348#define FETCH_CHAR_AS_MULTIBYTE(pos) \ 348#define FETCH_CHAR_AS_MULTIBYTE(pos) \
349 (!NILP (B_ (current_buffer, enable_multibyte_characters)) \ 349 (!NILP (BVAR (current_buffer, enable_multibyte_characters)) \
350 ? FETCH_MULTIBYTE_CHAR ((pos)) \ 350 ? FETCH_MULTIBYTE_CHAR ((pos)) \
351 : UNIBYTE_TO_CHAR (FETCH_BYTE ((pos)))) 351 : UNIBYTE_TO_CHAR (FETCH_BYTE ((pos))))
352 352
@@ -465,13 +465,13 @@ struct buffer_text
465 }; 465 };
466 466
467/* Lisp fields in struct buffer are hidden from most code and accessed 467/* Lisp fields in struct buffer are hidden from most code and accessed
468 via the B_ macro, below. Only select pieces of code, like the GC, 468 via the BVAR macro, below. Only select pieces of code, like the GC,
469 are allowed to use BUFFER_INTERNAL_FIELD. */ 469 are allowed to use BUFFER_INTERNAL_FIELD. */
470#define BUFFER_INTERNAL_FIELD(field) field ## _ 470#define BUFFER_INTERNAL_FIELD(field) field ## _
471 471
472/* Most code should use this macro to access Lisp fields in struct 472/* Most code should use this macro to access Lisp fields in struct
473 buffer. */ 473 buffer. */
474#define B_(buf, field) ((buf)->BUFFER_INTERNAL_FIELD (field)) 474#define BVAR(buf, field) ((buf)->BUFFER_INTERNAL_FIELD (field))
475 475
476/* This is the structure that the buffer Lisp object points to. */ 476/* This is the structure that the buffer Lisp object points to. */
477 477
@@ -662,12 +662,6 @@ struct buffer
662 Lisp_Object BUFFER_INTERNAL_FIELD (left_margin); 662 Lisp_Object BUFFER_INTERNAL_FIELD (left_margin);
663 /* Function to call when insert space past fill column. */ 663 /* Function to call when insert space past fill column. */
664 Lisp_Object BUFFER_INTERNAL_FIELD (auto_fill_function); 664 Lisp_Object BUFFER_INTERNAL_FIELD (auto_fill_function);
665 /* nil: text, t: binary.
666 This value is meaningful only on certain operating systems. */
667 /* Actually, we don't need this flag any more because end-of-line
668 is handled correctly according to the buffer-file-coding-system
669 of the buffer. Just keeping it for backward compatibility. */
670 Lisp_Object BUFFER_INTERNAL_FIELD (buffer_file_type);
671 665
672 /* Case table for case-conversion in this buffer. 666 /* Case table for case-conversion in this buffer.
673 This char-table maps each char into its lower-case version. */ 667 This char-table maps each char into its lower-case version. */