[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: apt-utils
From: |
Neil Woods |
Subject: |
Re: apt-utils |
Date: |
Thu, 31 Mar 2005 02:07:26 +0100 |
User-agent: |
Gnus/5.110003 (No Gnus v0.3) Emacs/21.4 (gnu/linux) |
Sebastian Luque <sluque@mun.ca> writes:
> Hi,
>
> I'm getting the following error, both with 'emacs' or 'emacs -q
> -no-site-file':
>
>
> ,-----[ *Backtrace* (lines: 1 - 14) ]
> | Debugger entered--Lisp error: (invalid-function #<hash-table 'equal nil
> 21532/28048 0x9c6c6e8>)
> | #<hash-table 'equal nil 21532/28048 0x9c6c6e8>("emacs" nil nil)
> | ad-Orig-minibuffer-complete()
> | minibuffer-complete(1)
> | call-interactively(minibuffer-complete)
> | ad-Orig-completing-read("Choose Debian package: " #<hash-table 'equal nil
> 21532/28048 0x9c6c6e8> nil t nil nil nil nil)
> | completing-read("Choose Debian package: " #<hash-table 'equal nil
> 21532/28048 0x9c6c6e8> nil t nil)
> | apt-utils-choose-package()
> | apt-utils-show-package-1(t)
> | apt-utils-show-package()
> | * call-interactively(apt-utils-show-package)
> | execute-extended-command(nil)
> | call-interactively(execute-extended-command)
> `-----
>
>
> System info:
>
> - GNU Emacs 21.4.1 (i386-pc-linux-gnu, X toolkit, Xaw3d scroll bars) of
> 2005-03-17 on trouble, modified by Debian
>
> - apt-utils version:
> $Id: apt-utils.el,v 1.12 2004/11/26 02:49:03 psg Exp $
I've just tried it here with the same results.
The problem is in the defconst form
'apt-utils-completing-read-hashtable-p' in the file apt-utils.el where a
test is made for the version of Emacs being used, and whether
completing-read supports hash table as input.
A quick fix would be to change the test as indicated:
(defconst apt-utils-completing-read-hashtable-p
(and (not apt-utils-xemacs-p)
(or
;; Next released version after 21.3 will support this
(and
(>= emacs-major-version 21)
(>= emacs-minor-version 5)) ; <----- was 4
(>= emacs-major-version 22)
;; As will the current pretest
(string-match "\\..*\\..*\\." emacs-version)))
"Non-nil if `completing-read' supports hash table as input.")
or simply to take out the major-version test < 22, on the likely
assumption that the next major release of Emacs will be version 22 (and
not 21.5).
Hope that helps.
--
Neil
- apt-utils, Sebastian Luque, 2005/03/30
- Re: apt-utils,
Neil Woods <=