]> code.delx.au - gnu-emacs/commitdiff
gmm-utils.el (gmm-labels): Doc fix
authorKatsumi Yamaoka <yamaoka@jpl.org>
Wed, 5 Dec 2012 00:18:23 +0000 (00:18 +0000)
committerKatsumi Yamaoka <yamaoka@jpl.org>
Wed, 5 Dec 2012 00:18:23 +0000 (00:18 +0000)
lisp/gnus/gmm-utils.el

index 3357ee42239e540cf297fecc7b9676db10168503..6a64dcff11bbf80ed949d244a9d8f5198eed71e8 100644 (file)
@@ -420,8 +420,10 @@ coding-system."
 ;; `labels' got obsolete since Emacs 24.3.
 (defmacro gmm-labels (bindings &rest body)
   "Make temporary function bindings.
-The lexical scoping is handled via `lexical-let' rather than relying
-on `lexical-binding'.
+The bindings can be recursive and the scoping is lexical, but capturing
+them in closures will only work if `lexical-binding' is in use.  But in
+Emacs 24.2 and older, the lexical scoping is handled via `lexical-let'
+rather than relying on `lexical-binding'.
 
 \(fn ((FUNC ARGLIST BODY...) ...) FORM...)"
   `(,(progn (require 'cl) (if (fboundp 'cl-labels) 'cl-labels 'labels))