From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Keshav Kini Newsgroups: gmane.emacs.bugs Subject: bug#17849: 24.3; desktop-save-mode: can't load desktop saved while defining keyboard macro Date: Wed, 25 Jun 2014 13:50:23 -0700 Message-ID: <87r42c90j4.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1403729896 3887 80.91.229.3 (25 Jun 2014 20:58:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 25 Jun 2014 20:58:16 +0000 (UTC) To: 17849@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jun 25 22:58:10 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 1WzuGf-0004YZ-C2 for geb-bug-gnu-emacs@m.gmane.org; Wed, 25 Jun 2014 22:58:09 +0200 Original-Received: from localhost ([::1]:40968 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WzuGf-0000vH-0C for geb-bug-gnu-emacs@m.gmane.org; Wed, 25 Jun 2014 16:58:09 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57302) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WzuGa-0000vB-3K for bug-gnu-emacs@gnu.org; Wed, 25 Jun 2014 16:58:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WzuGY-0003iL-Hh for bug-gnu-emacs@gnu.org; Wed, 25 Jun 2014 16:58:04 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:41484) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WzuGY-0003iG-FL for bug-gnu-emacs@gnu.org; Wed, 25 Jun 2014 16:58:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WzuGY-00052x-6h for bug-gnu-emacs@gnu.org; Wed, 25 Jun 2014 16:58:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Keshav Kini Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 25 Jun 2014 20:58:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 17849 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.140372987319366 (code B ref -1); Wed, 25 Jun 2014 20:58:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 25 Jun 2014 20:57:53 +0000 Original-Received: from localhost ([127.0.0.1]:60867 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WzuGL-000528-7G for submit@debbugs.gnu.org; Wed, 25 Jun 2014 16:57:53 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:54304) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WzuBZ-0004qZ-DE for submit@debbugs.gnu.org; Wed, 25 Jun 2014 16:52:57 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WzuBS-0001xm-GB for submit@debbugs.gnu.org; Wed, 25 Jun 2014 16:52:47 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:32990) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WzuBS-0001xi-D9 for submit@debbugs.gnu.org; Wed, 25 Jun 2014 16:52:46 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56019) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WzuBQ-0005UE-S0 for bug-gnu-emacs@gnu.org; Wed, 25 Jun 2014 16:52:46 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WzuBP-0001ud-45 for bug-gnu-emacs@gnu.org; Wed, 25 Jun 2014 16:52:44 -0400 Original-Received: from mail-pa0-x233.google.com ([2607:f8b0:400e:c03::233]:37558) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WzuBO-0001uU-QL for bug-gnu-emacs@gnu.org; Wed, 25 Jun 2014 16:52:43 -0400 Original-Received: by mail-pa0-f51.google.com with SMTP id hz1so2210329pad.10 for ; Wed, 25 Jun 2014 13:52:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:mime-version:content-type; bh=Hfu4bfaHRYjPGGIePtzCfHvaR/nbKnzRiSzzMTZG4Zk=; b=Qz2Y3VWzItNQeScmMbkQf4HjqoUhJ1110CFEWKlT/fg2hHmvBkuIkxv787tIew0/rb azNVZIFA0C/8aeR/Z40z6qogkgsn/E/Kpa/qXqDC+zUHB5/uVyeov02/DoiV07EdEDPa SlmOVBdZP8BL1aaODfCq1jqogAT0SVecrvoZKMb3uVTaASuMiEpcz28Ya0z9YAweqTul wDPxMliW8ijI4sB3rq+GOvPK7uQahXHqQUQ34bN6chHEmmXa21SFu+3qJ9v/Kh0Jnvq3 eb8UqMaXSjXYaAPycId3uP71pQCzCnq5J71JepNq9hwLfrdh9Mz5hze7YAvazTxjFxvB Ri7w== X-Received: by 10.68.171.193 with SMTP id aw1mr14892032pbc.117.1403729561065; Wed, 25 Jun 2014 13:52:41 -0700 (PDT) Original-Received: from erdos.gmail.com ([2001:4870:e08e:201:2677:3ff:fed1:c34]) by mx.google.com with ESMTPSA id io6sm23224117pac.44.2014.06.25.13.52.38 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 25 Jun 2014 13:52:39 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Mailman-Approved-At: Wed, 25 Jun 2014 16:57:47 -0400 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:90813 Archived-At: 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. In GNU Emacs 24.3.1 (x86_64-pc-linux-gnu, GTK+ Version 3.12.2) of 2014-06-06 on barber, modified by Debian Windowing system distributor `The X.Org Foundation', version 11.0.11501000 System Description: Debian GNU/Linux unstable (sid) Configured using: `configure '--build' 'x86_64-linux-gnu' '--build' 'x86_64-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib' '--localstatedir=/var/lib' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-pop=yes' '--enable-locallisppath=/etc/emacs24:/etc/emacs:/usr/local/share/emacs/24.3/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.3/site-lisp:/usr/share/emacs/site-lisp' '--with-crt-dir=/usr/lib/x86_64-linux-gnu' '--with-x=yes' '--with-x-toolkit=gtk3' '--with-toolkit-scroll-bars' 'build_alias=x86_64-linux-gnu' 'CFLAGS=-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wall' 'LDFLAGS=-Wl,-z,relro' 'CPPFLAGS=-D_FORTIFY_SOURCE=2'' Important settings: value of $LANG: en_US.UTF-8 value of $XMODIFIERS: @im=ibus locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: SML Minor modes in effect: TeX-PDF-mode: t desktop-save-mode: t evil-leader-mode: t global-undo-tree-mode: t undo-tree-mode: t evil-mode: t evil-local-mode: t show-paren-mode: t tooltip-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t size-indication-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t Recent input: M-x r e p o r t - e m a c s - b u g Recent messages: Starting: /usr/bin/coqtop -emacs-U Enable proof tree display for Coq version 8.4pl3 policy = hybrid , pol = hybrid M-x proof-prf for goals; M-x proof-layout-windows refreshes [2 times] Starting coq process... done. policy = hybrid , pol = hybrid C-c C-p for goals; C-c C-l refreshes [2 times] Wrote /home/fs/.emacs.d/.emacs.desktop.lock Desktop: 80 buffers restored. For information about GNU Emacs and the GNU system, type C-h C-a. Load-path shadows: /usr/share/emacs24/site-lisp/proofgeneral/coq/coq hides /usr/share/emacs24/site-lisp/coq/coq /usr/share/emacs24/site-lisp/proofgeneral/coq/coq-syntax hides /usr/share/emacs24/site-lisp/coq/coq-syntax /usr/share/emacs24/site-lisp/proofgeneral/coq/coq-db hides /usr/share/emacs24/site-lisp/coq/coq-db ~/.emacs.d/custom/emacs-acl2 hides /usr/share/emacs24/site-lisp/acl2/emacs-acl2 ~/.emacs.d/custom/monitor hides /usr/share/emacs24/site-lisp/acl2/monitor /usr/share/emacs/24.3/site-lisp/debian-startup hides /usr/share/emacs/site-lisp/debian-startup /usr/share/emacs24/site-lisp/cmake-data/cmake-mode hides /usr/share/emacs/site-lisp/cmake-mode /usr/share/emacs24/site-lisp/dictionaries-common/ispell hides /usr/share/emacs/24.3/lisp/textmodes/ispell /usr/share/emacs/site-lisp/rst hides /usr/share/emacs/24.3/lisp/textmodes/rst /usr/share/emacs24/site-lisp/dictionaries-common/flyspell hides /usr/share/emacs/24.3/lisp/textmodes/flyspell /home/fs/.emacs.d/elpa/fringe-helper-20130519.1641/.dir-locals hides /usr/share/emacs/24.3/lisp/gnus/.dir-locals Features: (shadow sort mail-extr emacsbug message rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils scheme plain-tex caml cc-langs cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs goto-addr thingatpt view latexenc preview prv-emacs tex-buf font-latex latex tex-style tex dbus xml which-func imenu coq coq-smie-lexer coq-indent coq-par-compile coq-seq-compile coq-compile-common coq-abbrev coq-local-vars local-vars-list coq-syntax coq-db holes proof proof-shell pg-user pg-goals pg-response proof-toolbar pg-assoc proof-tree proof-script proof-menu cus-edit wid-edit span proof-auxmodes proof-utils scomint proof-syntax bufhist proof-splash pg-custom proof-config proof-faces proof-useropts pg-pamacs proof-compat haskell-indent haskell-font-lock haskell-mode haskell-string haskell-sort-imports haskell-align-imports haskell-compat flymake dabbrev dired vc-git rst derived org-wl org-w3m org-vm org-rmail org-mhe org-mew org-irc org-jsinfo org-infojs org-html org-exp ob-exp org-exp-blocks org-agenda org-info org-gnus gnus-util org-docview org-bibtex bibtex org-bbdb org byte-opt warnings bytecomp byte-compile cconv ob-tangle ob-ref ob-lob ob-table org-footnote org-src ob-comint ob-keys org-pcomplete pcomplete org-list org-faces org-entities noutline outline easy-mmode org-version ob-emacs-lisp ob org-compat org-macs ob-eval org-loaddefs format-spec find-func cal-menu calendar cal-loaddefs nxml-uchnm rng-xsd xsd-regexp rng-cmpct rng-nxml rng-valid rng-loc rng-uri rng-parse nxml-parse rng-match rng-dt rng-util rng-pttrn nxml-ns nxml-mode nxml-outln nxml-rap nxml-util nxml-glyph nxml-enc xmltok sml-mode compile comint ansi-color electric smie desktop cus-start cus-load server agda-input quail help-mode mozc evil-leader evil evil-integration undo-tree diff evil-maps evil-commands evil-types evil-search evil-ex evil-macros evil-repeat evil-states evil-core evil-common windmove rect evil-digraphs evil-vars ring adaptive-wrap-autoloads adoc-mode-autoloads auctex-autoloads tex-site better-defaults-autoloads paren saveplace uniquify advice advice-preload ido column-marker-autoloads ensime-autoloads auto-complete-autoloads dash-autoloads evil-indent-textobject-autoloads evil-leader-autoloads evil-nerd-commenter-autoloads evil-numbers-autoloads evil-paredit-autoloads evil-autoloads flymake-haskell-multi-autoloads flymake-rust-autoloads flymake-easy-autoloads git-gutter-fringe-autoloads fringe-helper-autoloads git-gutter-autoloads goto-chg-autoloads haskell-mode-autoloads edmacro kmacro inf-ruby-autoloads linum-relative-autoloads magit-filenotify-autoloads magit-find-file-autoloads magit-autoloads info easymenu git-rebase-mode-autoloads git-commit-mode-autoloads markup-faces-autoloads matlab-mode-autoloads minimap-autoloads paredit-autoloads popup-autoloads qml-mode-autoloads rust-mode-autoloads s-autoloads scala-mode2-autoloads sml-mode-autoloads twittering-mode-autoloads undo-tree-autoloads unicode-progress-reporter-autoloads ucs-utils-autoloads persistent-soft-autoloads list-utils-autoloads help-fns pcache-autoloads finder-inf package cl-macs gv proof-site proof-autoloads pg-vars mmm-auto mmm-vars mmm-compat cl cl-lib agda2 time-date tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs)