[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#14930: 24.3.50; Reverting process list fails after list-packages
From: |
Ari Roponen |
Subject: |
bug#14930: 24.3.50; Reverting process list fails after list-packages |
Date: |
Mon, 22 Jul 2013 14:13:56 +0300 |
Starting from emacs -Q:
M-x list-packages
M-x list-processes
C-x o ; Switch to the process list.
g ; Revert buffer.
=> apply: Args out of range: [("ack" face link follow-link t package-desc ...
This happens because `package-mode-menu' adds a revert function to
`tabulated-list-revert-hook' globally, and reverting process list
tries to run it.
The following patch fixes the problem by adding the function to the hook
locally.
2013-07-22 Ari Roponen <ari.roponen@gmail.com>
* emacs-lisp/package.el (package-menu-mode): Don't modify the
global value of tabulated-list-revert-hook.
=== modified file 'lisp/emacs-lisp/package.el'
--- lisp/emacs-lisp/package.el 2013-06-26 00:44:35 +0000
+++ lisp/emacs-lisp/package.el 2013-07-22 09:56:00 +0000
@@ -1393,7 +1393,7 @@
("Description" 0 nil)])
(setq tabulated-list-padding 2)
(setq tabulated-list-sort-key (cons "Status" nil))
- (add-hook 'tabulated-list-revert-hook 'package-menu--refresh)
+ (add-hook 'tabulated-list-revert-hook 'package-menu--refresh nil t)
(tabulated-list-init-header))
(defmacro package--push (pkg-desc status listname)
In GNU Emacs 24.3.50.6 (x86_64-unknown-linux-gnu, GTK+ Version 3.9.8)
of 2013-07-22 on arirop
Bzr revision: 113489 rgm@gnu.org-20130722102102-t430il8zjpfasx60
--
Ari Roponen
- bug#14930: 24.3.50; Reverting process list fails after list-packages,
Ari Roponen <=