(combine-run-hooks): Only run-hooks if there's a hook to run.
authorStefan Monnier <monnier@iro.umontreal.ca>
Wed, 29 Nov 2000 14:53:45 +0000 (14:53 +0000)
committerStefan Monnier <monnier@iro.umontreal.ca>
Wed, 29 Nov 2000 14:53:45 +0000 (14:53 +0000)
lisp/ChangeLog
lisp/subr.el

index 9b76431..114e16b 100644 (file)
@@ -1,3 +1,9 @@
+2000-11-29  Stefan Monnier  <monnier@cs.yale.edu>
+
+       * subr.el (combine-run-hooks): Only run-hooks if there's a hook to run.
+
+       * sort.el (sort-columns): Don't concat strings with numbers.
+
 2000-11-29  Dave Love  <fx@gnu.org>
 
        * cus-edit.el (face): Fix :format.
index 3adad42..6abec8c 100644 (file)
@@ -1140,7 +1140,8 @@ in BODY."
           (setq ,saved-combine-run-hooks combine-run-hooks)
           (fset 'run-hooks ,saved-run-hooks)
           (setq combine-run-hooks t)
-          (apply 'run-hooks ,saved-combine-run-hooks))))))
+          (if ,saved-combine-run-hooks
+              (apply 'run-hooks ,saved-combine-run-hooks)))))))
 
 
 (defmacro with-syntax-table (table &rest body)