emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] trunk r115066: * buffer.c (Fforce_mode_line_update): Don't


From: Paul Eggert
Subject: [Emacs-diffs] trunk r115066: * buffer.c (Fforce_mode_line_update): Don't fall off end of function
Date: Tue, 12 Nov 2013 01:24:08 +0000
User-agent: Bazaar (2.6b2)

------------------------------------------------------------
revno: 115066
revision-id: address@hidden
parent: address@hidden
committer: Paul Eggert <address@hidden>
branch nick: trunk
timestamp: Mon 2013-11-11 17:24:04 -0800
message:
  * 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.
modified:
  src/ChangeLog                  changelog-20091113204419-o5vbwnq5f7feedwu-1438
  src/buffer.c                   buffer.c-20091113204419-o5vbwnq5f7feedwu-264
=== modified file 'src/ChangeLog'
--- a/src/ChangeLog     2013-11-11 18:05:47 +0000
+++ b/src/ChangeLog     2013-11-12 01:24:04 +0000
@@ -1,3 +1,10 @@
+2013-11-12  Paul Eggert  <address@hidden>
+
+       * 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.
+
 2013-11-11  Stefan Monnier  <address@hidden>
 
        * buffer.c (Frestore_buffer_modified_p): Sync it with

=== modified file 'src/buffer.c'
--- a/src/buffer.c      2013-11-11 18:05:47 +0000
+++ b/src/buffer.c      2013-11-12 01:24:04 +0000
@@ -1341,6 +1341,7 @@
       update_mode_lines = 10;
       current_buffer->prevent_redisplay_optimizations_p = 1;
     }
+  return all;
 }
 
 DEFUN ("set-buffer-modified-p", Fset_buffer_modified_p, Sset_buffer_modified_p,
@@ -1362,9 +1363,7 @@
      Ideally, I think there should be another mechanism for fontifying
      buffers without "modifying" buffers, or redisplay should be
      smarter about updating the `*' in mode lines.  --gerd  */
-  Fforce_mode_line_update (Qnil);
-
-  return flag;
+  return Fforce_mode_line_update (Qnil);
 }
 
 DEFUN ("restore-buffer-modified-p", Frestore_buffer_modified_p,


reply via email to

[Prev in Thread] Current Thread [Next in Thread]