bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#17849: 24.3; desktop-save-mode: can't load desktop saved while defin


From: Juri Linkov
Subject: bug#17849: 24.3; desktop-save-mode: can't load desktop saved while defining keyboard macro
Date: Fri, 04 Jul 2014 02:48:52 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (x86_64-pc-linux-gnu)

Version: 24.4

> Start Emacs with `emacs -Q` and enter the following:
>
>     C-x f /tmp RET
>     M-x desktop-save-mode RET
>     M-x start-kbd-macro RET
>     C-x C-c y RET
>
> Emacs closes (as expected).  Start Emacs again with `emacs -Q` and enter
> the following:
>
>     M-: (desktop-read "/tmp")
>
> The following backtrace is generated:
>
> Debugger entered--Lisp error: (wrong-type-argument arrayp nil)
>   defining-kbd-macro(1)
>   desktop-create-buffer(206 nil "tmp" dired-mode (defining-kbd-macro) 206 
> (nil nil) t ("/tmp/") nil)
>   eval-buffer(#<buffer  *load*> nil "/tmp/.emacs.desktop" nil t)  ; Reading 
> at buffer position 753
>   load-with-code-conversion("/tmp/.emacs.desktop" "/tmp/.emacs.desktop" t t)
>   load("/tmp/.emacs.desktop" t t t)
>   desktop-read("/tmp")
>   eval((desktop-read "/tmp") nil)
>   eval-expression((desktop-read "/tmp") nil)
>   call-interactively(eval-expression nil nil)
>
> Expected behavior is that the dired buffer for /tmp/ should be loaded.
> Inspecting /tmp/.emacs.desktop shows that the `defining-kbd-macro'
> minor mode is specified for every saved buffer (though in this minimal
> example there is only one buffer in the file).  Removing this atom
> from the list of minor modes for each buffer makes the desktop file
> loadable once again.

Thanks for the bug report.  Fixed by not saving `start-kbd-macro'.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]