From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs 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 Organization: JURTA Message-ID: <87pphm0zrv.fsf@mail.jurta.org> References: <87r42c90j4.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1404431431 32755 80.91.229.3 (3 Jul 2014 23:50:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 3 Jul 2014 23:50:31 +0000 (UTC) Cc: 17849-done@debbugs.gnu.org To: Keshav Kini Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jul 04 01:50:24 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1X2qli-0005jP-8h for geb-bug-gnu-emacs@m.gmane.org; Fri, 04 Jul 2014 01:50:22 +0200 Original-Received: from localhost ([::1]:33901 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X2qlh-0001ix-Ug for geb-bug-gnu-emacs@m.gmane.org; Thu, 03 Jul 2014 19:50:21 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44044) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X2qlX-0001hm-CK for bug-gnu-emacs@gnu.org; Thu, 03 Jul 2014 19:50:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X2qlP-0006q0-P4 for bug-gnu-emacs@gnu.org; Thu, 03 Jul 2014 19:50:11 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:50980) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X2qlP-0006ph-JP for bug-gnu-emacs@gnu.org; Thu, 03 Jul 2014 19:50:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1X2qlP-0000OC-1W for bug-gnu-emacs@gnu.org; Thu, 03 Jul 2014 19:50:03 -0400 Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Thu, 03 Jul 2014 23:50:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 17849 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Mail-Followup-To: 17849@debbugs.gnu.org, juri@jurta.org, keshav.kini@gmail.com Original-Received: via spool by 17849-done@debbugs.gnu.org id=D17849.14044313721418 (code D ref 17849); Thu, 03 Jul 2014 23:50:01 +0000 Original-Received: (at 17849-done) by debbugs.gnu.org; 3 Jul 2014 23:49:32 +0000 Original-Received: from localhost ([127.0.0.1]:42128 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X2qkt-0000Mm-Sq for submit@debbugs.gnu.org; Thu, 03 Jul 2014 19:49:32 -0400 Original-Received: from alc-vshost7.dreamhost.com ([69.163.216.107]:41110 helo=ps18281.dreamhostps.com) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X2qkr-0000Mc-Ou for 17849-done@debbugs.gnu.org; Thu, 03 Jul 2014 19:49:30 -0400 Original-Received: from localhost.jurta.org (ps18281.dreamhostps.com [69.163.222.226]) by ps18281.dreamhostps.com (Postfix) with ESMTP id 10BF6348328E36; Thu, 3 Jul 2014 16:49:27 -0700 (PDT) In-Reply-To: <87r42c90j4.fsf@gmail.com> (Keshav Kini's message of "Wed, 25 Jun 2014 13:50:23 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (x86_64-pc-linux-gnu) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:91164 Archived-At: 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(# 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'.