[librep] Bugfix of "remove-hook-by-name"; exported the function.



commit 7f4714aeb9d6b39d1eb931b3b734f9c2f35cc547
Author: Teika kazura <teika lavabit com>
Date:   Sat Feb 5 20:51:21 2011 +0900

    Bugfix of "remove-hook-by-name"; exported the function.
    
    This fixes the bug in commit c7da736dbdf0cb8b70d0289ebdda03036ec71add.
    Also bugfix in lang.texi is included.

 lisp/rep/system.jl |    2 +-
 man/lang.texi      |    8 ++++----
 2 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/lisp/rep/system.jl b/lisp/rep/system.jl
index 98be386..9baed0d 100644
--- a/lisp/rep/system.jl
+++ b/lisp/rep/system.jl
@@ -60,7 +60,7 @@ is true in which case it is added at the end."
   "Returns t if the function FUN is stored in the hook called HOOK-SYMBOL."
   (and (boundp hook-symbol) (memq fun (symbol-value hook-symbol))))
 
-(export-bindings '(add-hook remove-hook in-hook-p))
+(export-bindings '(add-hook remove-hook remove-hook-by-name in-hook-p))
 
 ;;; misc
 
diff --git a/man/lang.texi b/man/lang.texi
index 1bc7cae..e621a52 100644
--- a/man/lang.texi
+++ b/man/lang.texi
@@ -7597,12 +7597,12 @@ text-mode-hook
 This function removes the function @var{function} from the list of
 functions stored in the (list) hook @var{hook} (a symbol).
 
- defun remove-hook-by-name hook name
-This function removes functions matching @var{name} from the list of
-functions stored in the (list) hook @var{hook} (a symbol).
+ emph{All} instances of @var{function} are deleted from the hook.
 @end defun
 
- emph{All} instances of @var{function} are deleted from the hook.
+ defun remove-hook-by-name hook name
+This function removes all functions whose name is @var{name} (a string) 
+from the @var{hook} (a symbol).
 @end defun
 
 @defun in-hook-p hook function



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