From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Neil Woods Newsgroups: gmane.emacs.help Subject: Re: apt-utils Date: Thu, 31 Mar 2005 02:07:26 +0100 Message-ID: <87k6noei7l.fsf@phun.phasmic.org> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1112231353 3907 80.91.229.2 (31 Mar 2005 01:09:13 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 31 Mar 2005 01:09:13 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Mar 31 03:09:08 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DGoAs-0003zU-84 for geh-help-gnu-emacs@m.gmane.org; Thu, 31 Mar 2005 03:08:42 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DGoRS-0003Z8-VD for geh-help-gnu-emacs@m.gmane.org; Wed, 30 Mar 2005 20:25:51 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!newsmi-us.news.garr.it!newsmi-eu.news.garr.it!NewsITBone-GARR!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 60 Original-X-Trace: individual.net HOKY4n/iCCO16XUyZBDJ1gIBJdkDX0BjKFhIPm8Xca8rw/59Dj X-Orig-Path: phun.phasmic.org!news User-Agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.4 (gnu/linux) X-Face: +X4Q`cmIKxc~mv[k(ccjBOPQkVwXqPlK1YIsl:9nAxKUQ'sJi5/p[wqneyyZ"5U:h2>/Qvr siB:V3K7MC; s; SaR&[R3>H-zhd:j110(D._d~KR]s\]1v%XaXJl:xw!+TJZ'w4af/r5a05CYa]fi** !X)]pRS1!B:?{f^F+V>S1u|6,-v#{E|:]P?(n&bRx%2dTI_WTF!aU=xS8hyfV Cancel-Lock: sha1:SQdJWyR9UwuHqqbqp48y/r67OIA= Original-Xref: shelby.stanford.edu gnu.emacs.help:129757 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:25311 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:25311 Sebastian Luque 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 #) > | #("emacs" nil nil) > | ad-Orig-minibuffer-complete() > | minibuffer-complete(1) > | call-interactively(minibuffer-complete) > | ad-Orig-completing-read("Choose Debian package: " # nil t nil nil nil nil) > | completing-read("Choose Debian package: " # 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