unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Gemini Lasswell <geminilasswell@runbox.com>
To: 24765@debbugs.gnu.org
Subject: bug#24765: Patch (was: bug#24765: 26.0.50; Incorrect Edebug spec for cl-letf, cl-letf*)
Date: Tue, 25 Apr 2017 08:28:46 -0700	[thread overview]
Message-ID: <8760hs4ic1.fsf@runbox.com> (raw)
In-Reply-To: <m2oa2ctl1o.fsf@rainbow.local> (Gemini Lasswell's message of "Sat, 22 Oct 2016 09:17:55 -0700")

[-- Attachment #1: Type: text/plain, Size: 70 bytes --]

Here is a patch for the edebug spec of cl-letf* to handle this case.


[-- Attachment #2: 0001-lisp-emacs-lisp-cl-macs.el-cl-letf-Fix-Edebug-spec-b.patch --]
[-- Type: text/plain, Size: 1026 bytes --]

From 91091616d994675b2aad28df2031426611273692 Mon Sep 17 00:00:00 2001
From: Gemini Lasswell <gazally@runbox.com>
Date: Tue, 25 Apr 2017 07:42:01 -0700
Subject: [PATCH] * lisp/emacs-lisp/cl-macs.el (cl-letf): Fix Edebug spec
 (bug#24765)

---
 lisp/emacs-lisp/cl-macs.el | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/lisp/emacs-lisp/cl-macs.el b/lisp/emacs-lisp/cl-macs.el
index db1518ce61..20bd92361b 100644
--- a/lisp/emacs-lisp/cl-macs.el
+++ b/lisp/emacs-lisp/cl-macs.el
@@ -2445,7 +2445,9 @@ cl-letf
 the PLACE is not modified before executing BODY.
 
 \(fn ((PLACE VALUE) ...) BODY...)"
-  (declare (indent 1) (debug ((&rest (gate gv-place &optional form)) body)))
+  (declare (indent 1) (debug ((&rest [&or (symbolp form)
+                                          (gate gv-place &optional form)])
+                              body)))
   (if (and (not (cdr bindings)) (cdar bindings) (symbolp (caar bindings)))
       `(let ,bindings ,@body)
     (cl--letf bindings () () body)))
-- 
2.12.2


  reply	other threads:[~2017-04-25 15:28 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-22 16:17 bug#24765: 26.0.50; Incorrect Edebug spec for cl-letf, cl-letf* Gemini Lasswell
2017-04-25 15:28 ` Gemini Lasswell [this message]
2017-09-09 19:19   ` bug#24765: Patch for " Gemini Lasswell
2017-09-16 14:52     ` Gemini Lasswell

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8760hs4ic1.fsf@runbox.com \
    --to=geminilasswell@runbox.com \
    --cc=24765@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).