all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: martin rudalics <rudalics@gmx.at>
To: rms@gnu.org
Cc: schierlm@gmx.de, emacs-devel@gnu.org
Subject: Re: [schierlm@gmx.de: Misleading error message when defining empty keyboard macro and no keyboard macro has been defined yet.]
Date: Tue, 17 Jul 2007 11:27:43 +0200	[thread overview]
Message-ID: <469C8B8F.6070104@gmx.at> (raw)
In-Reply-To: <E1IAdpo-0001Zy-RV@fencepost.gnu.org>

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

> - - Start emacs with -Q
> - - Press <f3> and immediately <f4>
> 
> Result (in echo area):
> Only one keyboard macro defined.
> 
> Huh? In fact, there are only *zero* keyboard macros defined (if you do
> not count the empty one that has been ignored).
> 
> Expected result:
> Ignore empty macro

Michael, could you please test the attached patch?  Could you also
test whether it has unwanted side-effects?  Thanks.


[-- Attachment #2: kmacro.patch --]
[-- Type: text/plain, Size: 763 bytes --]

*** kmacro.el	Wed Jan 17 09:30:52 2007
--- kmacro.el	Tue Jul 17 11:25:20 2007
***************
*** 606,613 ****
    (unless executing-kbd-macro
      (end-kbd-macro arg #'kmacro-loop-setup-function)
      (when (and last-kbd-macro (= (length last-kbd-macro) 0))
        (message "Ignore empty macro")
!       (kmacro-pop-ring))))
  
  
  ;;;###autoload
--- 606,616 ----
    (unless executing-kbd-macro
      (end-kbd-macro arg #'kmacro-loop-setup-function)
      (when (and last-kbd-macro (= (length last-kbd-macro) 0))
+       (setq last-kbd-macro nil)
        (message "Ignore empty macro")
!       ;; Don't call `kmacro-ring-empty-p' to avoid its messages.
!       (while (and (null last-kbd-macro) kmacro-ring)
! 	(kmacro-pop-ring1)))))
  
  
  ;;;###autoload

[-- Attachment #3: Type: text/plain, Size: 142 bytes --]

_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-devel

  reply	other threads:[~2007-07-17  9:27 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-17  3:34 [schierlm@gmx.de: Misleading error message when defining empty keyboard macro and no keyboard macro has been defined yet.] Richard Stallman
2007-07-17  9:27 ` martin rudalics [this message]
2007-07-17 17:55   ` Michael Schierl
  -- strict thread matches above, loose matches on Subject: below --
2007-07-09 14:29 Richard Stallman

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=469C8B8F.6070104@gmx.at \
    --to=rudalics@gmx.at \
    --cc=emacs-devel@gnu.org \
    --cc=rms@gnu.org \
    --cc=schierlm@gmx.de \
    /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.