From: Katsumi Yamaoka Date: Wed, 5 Dec 2012 00:18:41 +0000 (+0000) Subject: gmm-utils.el (gmm-labels): Doc fix X-Git-Url: http://cgit.sxemacs.org/?p=gnus;a=commitdiff_plain;h=7ff634144544b4cd94d3b5696ef76bcb155b2361 gmm-utils.el (gmm-labels): Doc fix --- diff --git a/lisp/gmm-utils.el b/lisp/gmm-utils.el index 3357ee422..6a64dcff1 100644 --- a/lisp/gmm-utils.el +++ b/lisp/gmm-utils.el @@ -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))