aboutsummaryrefslogtreecommitdiffstats
path: root/src/buffer.h
diff options
context:
space:
mode:
authorStefan Monnier2010-01-12 23:33:42 -0500
committerStefan Monnier2010-01-12 23:33:42 -0500
commit0b5397c27163729ca48af4d0c569e574638be2d1 (patch)
tree626dd46c422a029de0664b2be4a625460663f463 /src/buffer.h
parentd1bf28dc12ef1a0f3cecbf78f38795db27b38574 (diff)
downloademacs-0b5397c27163729ca48af4d0c569e574638be2d1.tar.gz
emacs-0b5397c27163729ca48af4d0c569e574638be2d1.zip
Try to fix bug#5314. This is probably not the final word, tho.
* buffer.c (Fset_buffer_modified_p): Try and be careful not to modify recent-auto-save-p as a side-effect. * buffer.h (BUF_AUTOSAVE_MODIFF): New macro. * buffer.c (Fkill_buffer, reset_buffer): * editfns.c (Fsubst_char_in_region): * fileio.c (Finsert_file_contents, Fdo_auto_save) (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
Diffstat (limited to 'src/buffer.h')
-rw-r--r--src/buffer.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/buffer.h b/src/buffer.h
index 9f57a292053..5217c6d7298 100644
--- a/src/buffer.h
+++ b/src/buffer.h
@@ -1,6 +1,6 @@
1/* Header file for the buffer manipulation primitives. 1/* Header file for the buffer manipulation primitives.
2 Copyright (C) 1985, 1986, 1993, 1994, 1995, 1997, 1998, 1999, 2000, 2001, 2 Copyright (C) 1985, 1986, 1993, 1994, 1995, 1997, 1998, 1999, 2000, 2001,
3 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 3 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
4 Free Software Foundation, Inc. 4 Free Software Foundation, Inc.
5 5
6This file is part of GNU Emacs. 6This file is part of GNU Emacs.
@@ -158,6 +158,10 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
158/* Overlay modification count. */ 158/* Overlay modification count. */
159#define BUF_OVERLAY_MODIFF(buf) ((buf)->text->overlay_modiff) 159#define BUF_OVERLAY_MODIFF(buf) ((buf)->text->overlay_modiff)
160 160
161/* Modification count as of last auto-save. */
162/* FIXME: should we move this into ->text->auto_save_modiff? */
163#define BUF_AUTOSAVE_MODIFF(buf) ((buf)->auto_save_modified)
164
161/* Interval tree of buffer. */ 165/* Interval tree of buffer. */
162#define BUF_INTERVALS(buf) ((buf)->text->intervals) 166#define BUF_INTERVALS(buf) ((buf)->text->intervals)
163 167