Check if make-local-hook exists.
authorDaiki Ueno <ueno@unixuser.org>
Thu, 14 Oct 2010 02:32:50 +0000 (11:32 +0900)
committerDaiki Ueno <ueno@unixuser.org>
Thu, 14 Oct 2010 02:32:50 +0000 (11:32 +0900)
* riece-compat.el (riece-make-local-hook): Check if
make-local-hook exists.  Thanks to Makoto Fujiwara.

lisp/ChangeLog
lisp/riece-compat.el

index 628c15a..f04ea83 100644 (file)
@@ -1,3 +1,8 @@
+2010-10-14  Daiki Ueno  <ueno@unixuser.org>
+
+       * riece-compat.el (riece-make-local-hook): Check if
+       make-local-hook exists.  Thanks to Makoto Fujiwara.
+
 2010-09-12  TAKAHASHI Kaoru  <kaoru@kaisei.org>
 
        * riece-develop.el (riece-insert-struct-template): Use "\n"
index f992067..fe0547a 100644 (file)
@@ -66,7 +66,8 @@
                          (make-list (- max min) (concat regexp "?"))))
               "")))
 
-(if (get 'make-local-hook 'byte-obsolete-info)
+(if (or (not (fboundp 'make-local-hook))
+       (get 'make-local-hook 'byte-obsolete-info))
     (defalias 'riece-make-local-hook 'ignore)
   (defalias 'riece-make-local-hook 'make-local-hook))