* Re: [Emacs-diffs] /srv/bzr/emacs/trunk r111099: gmm-utils.el (gmm-flet): Remove.
[not found] <E1Tg2fw-0002HC-7f@vcs.savannah.gnu.org>
@ 2012-12-05 4:02 ` Stefan Monnier
0 siblings, 0 replies; only message in thread
From: Stefan Monnier @ 2012-12-05 4:02 UTC (permalink / raw)
To: Katsumi Yamaoka; +Cc: emacs-devel
> + (let ((orig-json-alist-p (symbol-function 'json-alist-p)))
> + (fset 'json-alist-p
> + (lambda (list) (gnus-sync-json-alist-p list))) ; temp patch
> + (unwind-protect
> + (let ((url-request-method method)
> + (url-request-extra-headers headers)
> + (url-request-data (if kvdata (json-encode kvdata) nil)))
> + (with-current-buffer (url-retrieve-synchronously url)
> + (let ((data (gnus-sync-lesync-parse)))
> + (gnus-message
> + 12 "gnus-sync-lesync-call: %s URL %s sent %S got %S"
> + method url `((headers . ,headers) (data ,kvdata)) data)
> + (kill-buffer (current-buffer))
> + data)))
> + (fset 'json-alist-p orig-json-alist-p))))
Why not use `letf'?
> + (fset 'mail-abbrev-in-expansion-header-p (lambda (&rest args) t))
> + (unwind-protect
> + (read-from-minibuffer prompt initial-contents)
> + (fset 'mail-abbrev-in-expansion-header-p orig-m-a-i-e-h-p)))
Same here.
Stefan
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2012-12-05 4:02 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <E1Tg2fw-0002HC-7f@vcs.savannah.gnu.org>
2012-12-05 4:02 ` [Emacs-diffs] /srv/bzr/emacs/trunk r111099: gmm-utils.el (gmm-flet): Remove Stefan Monnier
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.