From: storm@cua.dk (Kim F. Storm)
Cc: mike@secmgmt.com, rms@gnu.org, emacs-devel@gnu.org
Subject: Re: Bug in remote file save.
Date: 14 Sep 2002 01:23:44 +0200 [thread overview]
Message-ID: <5xsn0da2yn.fsf@kfs2.cua.dk> (raw)
In-Reply-To: <87lm668vv9.fsf@wesley.springies.com>
Alan Shutko <ats@acm.org> writes:
> I don't know why it complains about a keyboard macro, but it does.
It is the (beep) call in ask-user-about-supersession-threat which
issues that warning.
However, for this to happen, the executing-kbd-macro variable must be
non-nil. This normally only happens when executing a keyboard macro.
Looking through the code, I only found two places where a package
explicitly sets the executing-kbd-macro variable; both of them in the
`calc' package.
The purpose seems to be a kludge to avoid some form of message from
save-buffer, but at the same time calc seems to install some kind of
save-buffer hook (I haven't tried to understand that part), so if that
hook is called with executing-kbd-macro set to non-nil (or the hook
function sets that variable itself), you will get the keyboard macro
error message if an error occurs during save-buffer via ange-ftp...
So my question is: Were you using (or had loaded) calc when this
happened?
>
> Debugger entered--Lisp error: (error "Keyboard macro terminated by a command ri$
> beep()
> byte-code("Æ^X^H\204l^@ÇÈÉ !\"\210Ê^ZË )\227\211^[\fU\203^^^@Ì\202#^@Í^KÎ\$
> ask-user-about-supersession-threat("/tsreast:/user2/intouch/atstest")
> set-buffer-modified-p(t)
> byte-code("^H^Q\n^SÅ\f!\207" [last-coding-system-used coding-system-used file$
> ange-ftp-write-region(1 18 "/tsreast:/user2/intouch/atstest" nil t)
> apply(ange-ftp-write-region (1 18 "/tsreast:/user2/intouch/atstest" nil t))
> ange-ftp-hook-function(write-region 1 18 "/tsreast:/user2/intouch/atstest" ni$
> write-region(1 18 "/tsreast:/user2/intouch/atstest" nil t "/tsreast:/user2/in$
> basic-save-buffer-2()
> basic-save-buffer-1()
> basic-save-buffer()
> save-buffer(1)
> * call-interactively(save-buffer)
>
--
Kim F. Storm <storm@cua.dk> http://www.cua.dk
next prev parent reply other threads:[~2002-09-13 23:23 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <3d80920b$0$306$39cecf19@nnrp1.twtelecom.net>
2002-09-13 2:13 ` Bug in remote file save Richard Stallman
2002-09-13 2:30 ` Alan Shutko
2002-09-13 23:23 ` Kim F. Storm [this message]
2002-09-13 22:49 ` Alan Shutko
2002-09-15 1:50 ` Richard Stallman
2002-09-15 1:50 ` Richard Stallman
2002-09-13 12:54 ` Mike Baranski
2002-09-14 17:35 ` Richard Stallman
2002-09-14 18:27 ` Alan Shutko
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5xsn0da2yn.fsf@kfs2.cua.dk \
--to=storm@cua.dk \
--cc=emacs-devel@gnu.org \
--cc=mike@secmgmt.com \
--cc=rms@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 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).