X-Git-Url: https://code.delx.au/gnu-emacs/blobdiff_plain/4f9d7df139695e97cd1772d41940500480585df7..659f64e909614e62b939087c625fd9abfbcf7073:/src/buffer.h diff --git a/src/buffer.h b/src/buffer.h index 992bc8ffca..2a04f49ea4 100644 --- a/src/buffer.h +++ b/src/buffer.h @@ -1,6 +1,6 @@ /* Header file for the buffer manipulation primitives. Copyright (C) 1985, 1986, 1993, 1994, 1995, 1997, 1998, 1999, 2000, 2001, - 2002, 2003, 2004, 2005, 2006, 2007, 2008 + 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc. This file is part of GNU Emacs. @@ -339,7 +339,7 @@ extern unsigned char *_fetch_multibyte_char_p; #define FETCH_CHAR_AS_MULTIBYTE(pos) \ (!NILP (current_buffer->enable_multibyte_characters) \ ? FETCH_MULTIBYTE_CHAR ((pos)) \ - : unibyte_to_multibyte_table[(FETCH_BYTE ((pos)))]) + : UNIBYTE_TO_CHAR (FETCH_BYTE ((pos)))) /* Macros for accessing a character or byte, @@ -584,6 +584,9 @@ struct buffer /* This isn't really used by the C code, so could be deleted. */ Lisp_Object backed_up; /* Length of file when last read or saved. + -1 means auto saving turned off because buffer shrank a lot. + -2 means don't turn off auto saving if buffer shrinks. + (That value is used with buffer-swap-text.) This is not in the struct buffer_text because it's not used in indirect buffers at all. */ Lisp_Object save_length; @@ -598,8 +601,9 @@ struct buffer point into this buffer or may point nowhere. */ Lisp_Object mark; - /* Alist of elements (SYMBOL . VALUE-IN-THIS-BUFFER) - for all per-buffer variables of this buffer. */ + /* Alist of elements (SYMBOL . VALUE-IN-THIS-BUFFER) for all + per-buffer variables of this buffer. For locally unbound + symbols, just the symbol appears as the element. */ Lisp_Object local_var_alist; /* Symbol naming major mode (eg, lisp-mode). */