From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Robert Cochran Newsgroups: gmane.emacs.bugs Subject: bug#24182: 25.1.50; map--dispatch: doc string mentions a non existent argument Date: Fri, 19 Aug 2016 15:11:24 -0700 Message-ID: <87pop4quib.fsf@cochranmail.com> References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: blaine.gmane.org 1471644743 25921 195.159.176.226 (19 Aug 2016 22:12:23 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 19 Aug 2016 22:12:23 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) Cc: 24182@debbugs.gnu.org To: Tino Calancha Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Aug 20 00:12:19 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bas1R-0006Lm-MR for geb-bug-gnu-emacs@m.gmane.org; Sat, 20 Aug 2016 00:12:17 +0200 Original-Received: from localhost ([::1]:59128 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bas1O-0000YH-OH for geb-bug-gnu-emacs@m.gmane.org; Fri, 19 Aug 2016 18:12:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50271) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bas1I-0000Xy-R9 for bug-gnu-emacs@gnu.org; Fri, 19 Aug 2016 18:12:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bas1C-0003CG-S4 for bug-gnu-emacs@gnu.org; Fri, 19 Aug 2016 18:12:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:36796) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bas1C-0003CC-L7 for bug-gnu-emacs@gnu.org; Fri, 19 Aug 2016 18:12:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bas1C-0005a4-9d for bug-gnu-emacs@gnu.org; Fri, 19 Aug 2016 18:12:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Robert Cochran Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 19 Aug 2016 22:12:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24182 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 24182-submit@debbugs.gnu.org id=B24182.147164469021414 (code B ref 24182); Fri, 19 Aug 2016 22:12:02 +0000 Original-Received: (at 24182) by debbugs.gnu.org; 19 Aug 2016 22:11:30 +0000 Original-Received: from localhost ([127.0.0.1]:34508 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bas0f-0005ZK-SE for submit@debbugs.gnu.org; Fri, 19 Aug 2016 18:11:30 -0400 Original-Received: from mail.workgrouplinux.net ([207.195.177.82]:55200) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bas0e-0005ZA-AY for 24182@debbugs.gnu.org; Fri, 19 Aug 2016 18:11:29 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=simple; d=cochranmail.com; h=from:to :cc:subject:references:date:in-reply-to:message-id:mime-version :content-type; s=dkim1; bh=HIKCjqtxAg1ILyVDb09qEHX2VIk=; b=QAjDU V9CcIKStq0NdELJTDZ3aIx8FhwJ/MPD2aDdkuDzBzX4n0eiGy1nQ/8SYIv8BeSwy onEVhTtpvNX7Fkmo4+ZXIrd3etj2HBJTKDrMsoSIpVMKgYNuC3XAEYr5SAPhdV5F yKIm7QS491HSUUoZXln2UUCe9x+2VeIQJ8/wjQkUvLOc5kvEmm1nLqA7vqh97OXL f9k5e6WFDHkitokxgKzlVIQhNFerwIpDgOUcju/Ly4jbJXm1P8nuKe3qsR6F3P59 Lmxb4zPqZGZImEY7phE/Ld4sPpVZZywO0/KpNNz7aI6ruzEmZ16SqI3scogZof38 816Y6tLKxWwPY8/8A== Original-Received: (qmail 17885 invoked by uid 0); 19 Aug 2016 22:11:26 -0000 Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=private; d=cochranmail.com; b=rqAUCbADXFTHj/2VmddKxB68qSJjuhEl3cY7VDi8uixQ7yayyeBv5C6aN61rLqoP0DkiXUdhNxg/iwr/uDvkog==; Original-Received: from 131-191-86-130.as.clicknet.org (HELO SoraLaptop) (robert@cochranmail.com@131.191.86.130) by mail.cochrantribe.org with ESMTPA; 19 Aug 2016 22:11:26 -0000 In-Reply-To: (Tino Calancha's message of "Mon, 8 Aug 2016 19:38:13 +0900 (JST)") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:122393 Archived-At: --=-=-= Content-Type: text/plain Here's my attempt to fix the docstring. Comments welcome. ----- --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=0001-lisp-emacs-lisp-map.el-map-dispatch-Fix-docstring.patch Content-Description: Patch to fix (map--dispatch) docstring >From 0c5bc38f170719cde0d25df392465e4acc935896 Mon Sep 17 00:00:00 2001 From: Robert Cochran Date: Fri, 19 Aug 2016 14:53:07 -0700 Subject: [PATCH] * 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-let (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)) -- 2.7.4 --=-=-= Content-Type: text/plain ----- HTH, -- ~Robert Cochran GPG Fingerprint - E778 2DD4 FEA6 6A68 6F26 AD2D E5C3 EB36 4886 8871 --=-=-=--