diff options
| author | Paul Eggert | 2013-11-11 17:24:04 -0800 |
|---|---|---|
| committer | Paul Eggert | 2013-11-11 17:24:04 -0800 |
| commit | bd7cd30ac3b8a57d65f5925470784c8d6a308b5b (patch) | |
| tree | 3fc785bf1d2127eefcac2c247f3b76c7b3356d5a /src/buffer.c | |
| parent | 7d3bb5692e56a7e0785cfbe36e3ecdb92aa32505 (diff) | |
| download | emacs-bd7cd30ac3b8a57d65f5925470784c8d6a308b5b.tar.gz emacs-bd7cd30ac3b8a57d65f5925470784c8d6a308b5b.zip | |
* buffer.c (Fforce_mode_line_update): Don't fall off end of function
that requires a return value.
(Fset_buffer_modified_p): Take advantage of this change to do
a tail call.
Diffstat (limited to 'src/buffer.c')
| -rw-r--r-- | src/buffer.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/buffer.c b/src/buffer.c index a528397a9d2..61b685ea5c5 100644 --- a/src/buffer.c +++ b/src/buffer.c | |||
| @@ -1341,6 +1341,7 @@ menu bar menus and the frame title. */) | |||
| 1341 | update_mode_lines = 10; | 1341 | update_mode_lines = 10; |
| 1342 | current_buffer->prevent_redisplay_optimizations_p = 1; | 1342 | current_buffer->prevent_redisplay_optimizations_p = 1; |
| 1343 | } | 1343 | } |
| 1344 | return all; | ||
| 1344 | } | 1345 | } |
| 1345 | 1346 | ||
| 1346 | DEFUN ("set-buffer-modified-p", Fset_buffer_modified_p, Sset_buffer_modified_p, | 1347 | DEFUN ("set-buffer-modified-p", Fset_buffer_modified_p, Sset_buffer_modified_p, |
| @@ -1362,9 +1363,7 @@ A non-nil FLAG means mark the buffer modified. */) | |||
| 1362 | Ideally, I think there should be another mechanism for fontifying | 1363 | Ideally, I think there should be another mechanism for fontifying |
| 1363 | buffers without "modifying" buffers, or redisplay should be | 1364 | buffers without "modifying" buffers, or redisplay should be |
| 1364 | smarter about updating the `*' in mode lines. --gerd */ | 1365 | smarter about updating the `*' in mode lines. --gerd */ |
| 1365 | Fforce_mode_line_update (Qnil); | 1366 | return Fforce_mode_line_update (Qnil); |
| 1366 | |||
| 1367 | return flag; | ||
| 1368 | } | 1367 | } |
| 1369 | 1368 | ||
| 1370 | DEFUN ("restore-buffer-modified-p", Frestore_buffer_modified_p, | 1369 | DEFUN ("restore-buffer-modified-p", Frestore_buffer_modified_p, |