all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@IRO.UMontreal.CA>
To: Thierry Volpiatto <thierry.volpiatto@gmail.com>
Cc: 12135-done@debbugs.gnu.org
Subject: bug#12135: 24.1.50; compatibility between compiled files in emacs-24.1 and 24.2
Date: Wed, 08 Aug 2012 14:57:51 -0400	[thread overview]
Message-ID: <jwvfw7xgt77.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <87ipctxt73.fsf@gmail.com> (Thierry Volpiatto's message of "Wed,  08 Aug 2012 18:08:16 +0200")

> I think at flet because there is no reason that the other part of the
> code don't work. (but I may be wrong)

flet is used elsewhere.  And eliminating the flet (see patch below,
which doesn't look bad when compared to the horror generated by flet)
did not solve the problem.

> Hmm! No, AFAIK there is no ignore-errors involved here. 

Somehow an error must have been signaled and then silenced.
I replaced all ignore-errors by with-demoted-errors but that didn't
help, so it must be some condition-case somewhere (or some other code in
some other Elisp library, of course).

In any case, I think I found the culprit: the old CL's `loop' used
cl-map-keymap-recursively internally for `key-seqs', which I renamed to
cl--map-keymap-recursively but forgot to add a compatibility alias.

Should be fixed now, thank you,


        Stefan


=== modified file 'helm-command.el'
--- helm-command.el	2012-08-04 13:51:32 +0000
+++ helm-command.el	2012-08-08 18:27:09 +0000
@@ -116,7 +116,7 @@
                         when (commandp com)
                         collect i into hist finally return hist))
          command sym-com)
-    (flet ((pers-help (candidate)
+    (let ((pers-help (lambda (candidate)
              (let ((hbuf (get-buffer (help-buffer)))
                    special-display-buffer-names
                    special-display-regexps)
@@ -136,14 +136,14 @@
                    (describe-function (intern candidate))
                    (message nil) ; Erase the new stupid message Type "q"[...]
                    (setq in-help t))
-               (setq help-cand candidate))))
+               (setq help-cand candidate)))))
       (setq command (helm-comp-read
                      "M-x " obarray
                      :test 'commandp
                      :requires-pattern helm-M-x-requires-pattern
                      :name "Emacs Commands"
                      :buffer "*helm M-x*"
-                     :persistent-action 'pers-help
+                     :persistent-action pers-help
                      :persistent-help "Describe this command"
                      :history history
                      :del-input nil






  reply	other threads:[~2012-08-08 18:57 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-04  9:27 bug#12135: 24.1.50; compatibility between compiled files in emacs-24.1 and 24.2 Thierry Volpiatto
2012-08-04 23:04 ` Stefan Monnier
2012-08-05  5:15   ` Thierry Volpiatto
2012-08-08 15:04     ` Stefan Monnier
2012-08-08 16:08       ` Thierry Volpiatto
2012-08-08 18:57         ` Stefan Monnier [this message]
2012-08-08 18:36       ` Thierry Volpiatto
2012-08-09  8:42         ` Thierry Volpiatto

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

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

  git send-email \
    --in-reply-to=jwvfw7xgt77.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=12135-done@debbugs.gnu.org \
    --cc=thierry.volpiatto@gmail.com \
    /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 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.