all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: akshaychavan20031@gmail.com
Cc: 44583@debbugs.gnu.org
Subject: bug#44583: 25.3; Emacs aborts with fatal error when a keyboard macro (saved in init.el) is set to run automatically at Emacs startup (Windows 10)
Date: Wed, 11 Nov 2020 21:36:03 +0200	[thread overview]
Message-ID: <83v9ebznx8.fsf@gnu.org> (raw)
In-Reply-To: <864klvhi0i.fsf@DESKTOP-IVLB171.i-did-not-set--mail-host-address--so-tickle-me> (akshaychavan20031@gmail.com)

> From: akshaychavan20031@gmail.com
> Date: Wed, 11 Nov 2020 23:51:01 +0530
> 
> I encountered a fatal error which caused Emacs to abort at startup
> (running as Daemon). The actions which led to this bug are as follows:
> 
> 1. I recorded a keyboard macro and inserted its elisp code in init.el
> with the M-x insert-kbd-macro function.
> 
> 2. The elisp code for the macro is
> 
> ;; This macro automatically runs remember-notes on Emacs startup and
> ;; then runs recover-this-file to recover autosave data of notes and
> ;; then enters 'yes' to the minibuffer prompt
> (fset 'remember-notes-my-macro
>    (lambda (&optional arg) "Keyboard macro." (interactive "p") (kmacro-exec-ring-item (quote ([134217848 114 101 109 101 109 98 101 114 45 110 111 116 101 115 return 134217848 114 101 99 111 118 101 114 45 116 104 105 115 45 102 105 108 101 return 121 101 115 return] 0 "%d")) arg)))
> ;; Macro ends here
> 
> 3. I wished for this macro execute automatically when Emacs Daemon is
> launched at System startup. So I added the following line to my init.el
> 
> (remember-notes-my-macro)
> 
> 4. When Emacs is started, I get a dialog box with the following text:

Your macro attempts to prompt the user in the minibuffer, but the
daemon doesn't have a frame to do that.  What was the purpose of
invoking such a macro when you start Emacs as a daemon?





  parent reply	other threads:[~2020-11-11 19:36 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-11 18:21 bug#44583: 25.3; Emacs aborts with fatal error when a keyboard macro (saved in init.el) is set to run automatically at Emacs startup (Windows 10) akshaychavan20031
2020-11-11 19:27 ` Eli Zaretskii
2020-11-11 19:36 ` Eli Zaretskii [this message]
     [not found]   ` <CAP3r2sLbsMqab-Obro7sQ23SOEhD2zaL92Mj9uOe92gGwX+BkA@mail.gmail.com>
2020-11-12 18:01     ` Eli Zaretskii
2020-11-12 17:56 ` bug#44583: Here is the emacs_backtrace.txt Akshay C

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=83v9ebznx8.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=44583@debbugs.gnu.org \
    --cc=akshaychavan20031@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.