all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Neil Woods <cnw+usenet@pobox.com>
Subject: Re: apt-utils
Date: Thu, 31 Mar 2005 02:07:26 +0100	[thread overview]
Message-ID: <87k6noei7l.fsf@phun.phasmic.org> (raw)
In-Reply-To: mailman.704.1112224229.28103.help-gnu-emacs@gnu.org

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

       reply	other threads:[~2005-03-31  1:07 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.704.1112224229.28103.help-gnu-emacs@gnu.org>
2005-03-31  1:07 ` Neil Woods [this message]
2005-03-31  4:26   ` apt-utils Sebastian Luque
2005-03-30 22:58 apt-utils Sebastian Luque

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87k6noei7l.fsf@phun.phasmic.org \
    --to=cnw+usenet@pobox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.