diff options
| author | Stefan Monnier | 2010-01-12 23:33:42 -0500 |
|---|---|---|
| committer | Stefan Monnier | 2010-01-12 23:33:42 -0500 |
| commit | 0b5397c27163729ca48af4d0c569e574638be2d1 (patch) | |
| tree | 626dd46c422a029de0664b2be4a625460663f463 /src/editfns.c | |
| parent | d1bf28dc12ef1a0f3cecbf78f38795db27b38574 (diff) | |
| download | emacs-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/editfns.c')
| -rw-r--r-- | src/editfns.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/editfns.c b/src/editfns.c index 58e13b1ed7c..00ac0ca0fa9 100644 --- a/src/editfns.c +++ b/src/editfns.c | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | /* Lisp functions pertaining to editing. | 1 | /* Lisp functions pertaining to editing. |
| 2 | Copyright (C) 1985, 1986, 1987, 1989, 1993, 1994, 1995, 1996, | 2 | Copyright (C) 1985, 1986, 1987, 1989, 1993, 1994, 1995, 1996, |
| 3 | 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, | 3 | 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, |
| 4 | 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc. | 4 | 2005, 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc. |
| 5 | 5 | ||
| 6 | This file is part of GNU Emacs. | 6 | This file is part of GNU Emacs. |
| 7 | 7 | ||
| @@ -2870,8 +2870,8 @@ Both characters must have the same length of multi-byte form. */) | |||
| 2870 | { | 2870 | { |
| 2871 | if (MODIFF - 1 == SAVE_MODIFF) | 2871 | if (MODIFF - 1 == SAVE_MODIFF) |
| 2872 | SAVE_MODIFF++; | 2872 | SAVE_MODIFF++; |
| 2873 | if (MODIFF - 1 == current_buffer->auto_save_modified) | 2873 | if (MODIFF - 1 == BUF_AUTOSAVE_MODIFF (current_buffer)) |
| 2874 | current_buffer->auto_save_modified++; | 2874 | BUF_AUTOSAVE_MODIFF (current_buffer)++; |
| 2875 | } | 2875 | } |
| 2876 | 2876 | ||
| 2877 | /* The before-change-function may have moved the gap | 2877 | /* The before-change-function may have moved the gap |