* Re: [Emacs-diffs] master 332f465: Make lisp/jsonrpc.el work with Emacs 25.1
[not found] ` <20180702165745.231D1204E8@vcs0.savannah.gnu.org>
@ 2018-07-03 2:40 ` Stefan Monnier
2018-07-03 8:06 ` João Távora
0 siblings, 1 reply; 2+ messages in thread
From: Stefan Monnier @ 2018-07-03 2:40 UTC (permalink / raw)
To: emacs-devel; +Cc: João Távora
> - (jsonrpc--debug connection `(:maybe-run-deferred ,(mapcar #'caddr actions)))
> + (jsonrpc--debug connection `(:maybe-run-deferred
> + ,(mapcar (lambda (action) (car (cdr (cdr action))))
> + actions)))
`caddr` is available in cl-lib as cl-caddr. This said I often find
(nth 2 ...) more readable.
> +(defun jsonrpc--call-with-emacsrpc-fixture (fn)
[...]
> (cl-defmacro jsonrpc--with-emacsrpc-fixture ((endpoint-sym) &body body)
[...]
> + `(jsonrpc--call-with-emacsrpc-fixture (lambda (,endpoint-sym) ,@body)))
Good change: much easier to debug.
Stefan
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-07-03 8:06 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20180702165742.23596.60390@vcs0.savannah.gnu.org>
[not found] ` <20180702165745.231D1204E8@vcs0.savannah.gnu.org>
2018-07-03 2:40 ` [Emacs-diffs] master 332f465: Make lisp/jsonrpc.el work with Emacs 25.1 Stefan Monnier
2018-07-03 8:06 ` João Távora
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).