diff options
| author | Richard M. Stallman | 1993-12-23 01:28:34 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1993-12-23 01:28:34 +0000 |
| commit | 7653d0309969431aeae04bb409c6a94241bee989 (patch) | |
| tree | fe9ec55f98162ea9c148cb4d7ab84c11a07b0835 /src | |
| parent | c451d7b1a3432619519f38cb59a465b0d8351476 (diff) | |
| download | emacs-7653d0309969431aeae04bb409c6a94241bee989.tar.gz emacs-7653d0309969431aeae04bb409c6a94241bee989.zip | |
(Fmessage): Use message2.
(Fsubst_char_in_region): Move the NOUNDO hacking code
after the modify_region call.
Diffstat (limited to 'src')
| -rw-r--r-- | src/editfns.c | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/src/editfns.c b/src/editfns.c index de8d167191b..e555168ecfd 100644 --- a/src/editfns.c +++ b/src/editfns.c | |||
| @@ -1141,14 +1141,6 @@ and don't mark the buffer as really changed.") | |||
| 1141 | stop = XINT (end); | 1141 | stop = XINT (end); |
| 1142 | look = XINT (fromchar); | 1142 | look = XINT (fromchar); |
| 1143 | 1143 | ||
| 1144 | if (! NILP (noundo)) | ||
| 1145 | { | ||
| 1146 | if (MODIFF - 1 == current_buffer->save_modified) | ||
| 1147 | current_buffer->save_modified++; | ||
| 1148 | if (MODIFF - 1 == current_buffer->auto_save_modified) | ||
| 1149 | current_buffer->auto_save_modified++; | ||
| 1150 | } | ||
| 1151 | |||
| 1152 | while (pos < stop) | 1144 | while (pos < stop) |
| 1153 | { | 1145 | { |
| 1154 | if (FETCH_CHAR (pos) == look) | 1146 | if (FETCH_CHAR (pos) == look) |
| @@ -1156,7 +1148,16 @@ and don't mark the buffer as really changed.") | |||
| 1156 | if (! changed) | 1148 | if (! changed) |
| 1157 | { | 1149 | { |
| 1158 | modify_region (current_buffer, XINT (start), stop); | 1150 | modify_region (current_buffer, XINT (start), stop); |
| 1159 | changed = 1; | 1151 | |
| 1152 | if (! NILP (noundo)) | ||
| 1153 | { | ||
| 1154 | if (MODIFF - 1 == current_buffer->save_modified) | ||
| 1155 | current_buffer->save_modified++; | ||
| 1156 | if (MODIFF - 1 == current_buffer->auto_save_modified) | ||
| 1157 | current_buffer->auto_save_modified++; | ||
| 1158 | } | ||
| 1159 | |||
| 1160 | changed = 1; | ||
| 1160 | } | 1161 | } |
| 1161 | 1162 | ||
| 1162 | if (NILP (noundo)) | 1163 | if (NILP (noundo)) |
| @@ -1382,7 +1383,7 @@ minibuffer contents show.") | |||
| 1382 | { | 1383 | { |
| 1383 | register Lisp_Object val; | 1384 | register Lisp_Object val; |
| 1384 | val = Fformat (nargs, args); | 1385 | val = Fformat (nargs, args); |
| 1385 | message ("%s", XSTRING (val)->data); | 1386 | message2 (XSTRING (val)->data, XSTRING (val)->size); |
| 1386 | return val; | 1387 | return val; |
| 1387 | } | 1388 | } |
| 1388 | } | 1389 | } |