[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master a4ba426: * lisp/emacs-lisp/map.el (map--dispatch):
From: |
Nicolas Petton |
Subject: |
[Emacs-diffs] master a4ba426: * lisp/emacs-lisp/map.el (map--dispatch): Fix docstring |
Date: |
Fri, 19 Aug 2016 22:42:13 +0000 (UTC) |
branch: master
commit a4ba426d25bd6a5cbe11d81b82a789b8a2c948ed
Author: Robert Cochran <address@hidden>
Commit: Nicolas Petton <address@hidden>
* lisp/emacs-lisp/map.el (map--dispatch): Fix docstring
The docstring referenced a non-existant parameter, as well as a
parameter that has been renamed since the docstring was written. Fix
both errors, fixing (Bug#24182).
---
lisp/emacs-lisp/map.el | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/lisp/emacs-lisp/map.el b/lisp/emacs-lisp/map.el
index 98a8871..0a0f64a 100644
--- a/lisp/emacs-lisp/map.el
+++ b/lisp/emacs-lisp/map.el
@@ -79,14 +79,14 @@ MAP can be a list, hash-table or array."
(eval-when-compile
(defmacro map--dispatch (map-var &rest args)
- "Evaluate one of the forms specified by ARGS based on the type of MAP.
+ "Evaluate one of the forms specified by ARGS based on the type of MAP-VAR.
The following keyword types are meaningful: `:list',
`:hash-table' and `:array'.
-An error is thrown if MAP is neither a list, hash-table nor array.
+An error is thrown if MAP-VAR is neither a list, hash-table nor array.
-Return RESULT if non-nil or the result of evaluation of the form."
+Returns the result of evaluating the form associated with MAP-VAR's type."
(declare (debug t) (indent 1))
`(cond ((listp ,map-var) ,(plist-get args :list))
((hash-table-p ,map-var) ,(plist-get args :hash-table))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] master a4ba426: * lisp/emacs-lisp/map.el (map--dispatch): Fix docstring,
Nicolas Petton <=