Rename cl-loop-handler, cl-loop-for-handler back to their original names
authorGlenn Morris <rgm@gnu.org>
Sat, 3 Nov 2012 18:32:09 +0000 (11:32 -0700)
committerGlenn Morris <rgm@gnu.org>
Sat, 3 Nov 2012 18:32:09 +0000 (11:32 -0700)
* lisp/emacs-lisp/cl-macs.el (cl-parse-loop-clause):
Rename handler properties back from cl-- to cl-.

Fixes: debbugs:12788

lisp/ChangeLog
lisp/emacs-lisp/cl-macs.el

index 466e13b..5be1118 100644 (file)
@@ -1,5 +1,8 @@
 2012-11-03  Glenn Morris  <rgm@gnu.org>
 
+       * emacs-lisp/cl-macs.el (cl-parse-loop-clause):
+       Rename handler properties back from cl-- to cl-.  (Bug#12788)
+
        * emacs-lisp/cl-macs.el (cl-do-all-symbols): Add doc string.
 
 2012-11-03  Eli Zaretskii  <eliz@gnu.org>
index e7a66ad..8d24077 100644 (file)
@@ -1259,8 +1259,9 @@ Valid clauses are:
                        loop-for-steps)))
 
               (t
+               ;; This is an advertised interface: (info "(cl)Other Clauses").
                (let ((handler (and (symbolp word)
-                                   (get word 'cl--loop-for-handler))))
+                                   (get word 'cl-loop-for-handler))))
                  (if handler
                      (funcall handler var)
                    (error "Expected a `for' preposition, found %s" word)))))
@@ -1407,7 +1408,8 @@ Valid clauses are:
                    ,cl--loop-finish-flag nil) cl--loop-body))
 
      (t
-      (let ((handler (and (symbolp word) (get word 'cl--loop-handler))))
+      ;; This is an advertised interface: (info "(cl)Other Clauses").
+      (let ((handler (and (symbolp word) (get word 'cl-loop-handler))))
        (or handler (error "Expected a cl-loop keyword, found %s" word))
        (funcall handler))))
     (if (eq (car cl--loop-args) 'and)