all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Aaron S. Hawley" <aaron.s.hawley@gmail.com>
To: Chong Yidong <cyd@gnu.org>
Cc: emacs-devel@gnu.org, Miles Bader <miles@gnu.org>
Subject: Re: bug: "C-x z" ("repeat") no longer works correctly with M-x
Date: Tue, 29 May 2012 14:45:48 -0400	[thread overview]
Message-ID: <CAFw1JJ5ptxbaSw8COXna-tZJfQL17YSWAAAj81rSwnEDKpgUcQ@mail.gmail.com> (raw)
In-Reply-To: <87pq9ndq0n.fsf@gnu.org>

On 5/29/12, Chong Yidong <cyd@gnu.org> wrote:
> Miles Bader <miles@gnu.org> writes:
>
>> It used to be (up until fairly recently, dunno the exact point at
>> which it changed) that "C-x z" would correctly repeat the previous
>> extended command; e.g. if you entered "M-x pwd RET", and then "C-x z",
>> the latter would re-invoke "pwd".  This was very useful.
>>
>> Now it no longer does this -- instead it just repeats "M-x", prompting
>> for a command.  This is obviously far less useful behavior...
>
> This is due to the reimplementation of execute-extended-command in
> r108080.  Aaron, could you please look into a fix?  Thanks.

I had given a more literal translation of the C command to the
gnu-emacs-sources mailing list back in March.  Stefan and I discussed
it but hadn't run across this issue with repeat.  He later made some
modifications to my submission and committed it in May.  I have only
now run it and can confirm this bug with repeat.  I'm not sure what's
causing it though, but found the following fixes it.  Again, I'm not
sure why.  Nor am I sure if it's a wholly appropriate fix.

--- simple.el	2012-05-29 07:21:45.000000000 -0400
+++ simple.el	2012-05-29 14:30:41.942777900 -0400
@@ -1373,7 +1373,7 @@

 Noninteractively, the argument PREFIXARG is the prefix argument to
 give to the command you invoke, if it asks for an argument."
-  (interactive (list current-prefix-arg (read-extended-command)))
+  (interactive "P")
   ;; Emacs<24 calling-convention was with a single `prefixarg' argument.
   (if (null command-name) (setq command-name (read-extended-command)))
   (let* ((function (and (stringp command-name) (intern-soft command-name)))



  reply	other threads:[~2012-05-29 18:45 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-17 14:06 bug: "C-x z" ("repeat") no longer works correctly with M-x Miles Bader
2012-05-29 14:24 ` Chong Yidong
2012-05-29 18:45   ` Aaron S. Hawley [this message]
2012-06-02  6:44     ` Chong Yidong
2012-06-02  7:45       ` Miles Bader
2012-06-02 19:21       ` bug#11506: " Stefan Monnier
     [not found]         ` <4DDFBCA4D529431F922887DF34538295@us.oracle.com>
     [not found]           ` <jwvvcj9cc32.fsf-monnier+emacs@gnu.org>
     [not found]             ` <702924CEED3B405D81D118DDE532C97F@us.oracle.com>
     [not found]               ` <jwv8vg4ctjl.fsf-monnier+emacs@gnu.org>
2012-06-04 13:47                 ` Drew Adams
2012-06-02 22:07       ` Aaron S. Hawley

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=CAFw1JJ5ptxbaSw8COXna-tZJfQL17YSWAAAj81rSwnEDKpgUcQ@mail.gmail.com \
    --to=aaron.s.hawley@gmail.com \
    --cc=cyd@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=miles@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 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.