* src/fileio.c (Fdo_auto_save): Trap errors in auto-save-hook (tiny change)
authorKelly Dean <kellydeanch@yahoo.com>
Thu, 13 Jun 2013 05:13:05 +0000 (22:13 -0700)
committerGlenn Morris <rgm@gnu.org>
Thu, 13 Jun 2013 05:13:05 +0000 (22:13 -0700)
Fixes: debbugs:14479

src/ChangeLog
src/fileio.c

index 38eb460..4d6e669 100644 (file)
@@ -1,3 +1,7 @@
+2013-06-13  Kelly Dean  <kellydeanch@yahoo.com>  (tiny change)
+
+       * fileio.c (Fdo_auto_save): Trap errors in auto-save-hook.  (Bug#14479)
+
 2013-06-12  Xue Fuqiao  <xfq.free@gmail.com>
 
        * fileio.c (expand_file_name): Doc fix.
index ce5d485..6a60186 100644 (file)
@@ -5596,7 +5596,7 @@ A non-nil CURRENT-ONLY argument means save only current buffer.  */)
      point to non-strings reached from Vbuffer_alist.  */
 
   hook = intern ("auto-save-hook");
-  Frun_hooks (1, &hook);
+  safe_run_hooks (hook);
 
   if (STRINGP (Vauto_save_list_file_name))
     {