From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Sebastian Luque Newsgroups: gmane.emacs.help Subject: Re: apt-utils Date: Wed, 30 Mar 2005 22:26:22 -0600 Message-ID: <87k6no8mq9.fsf@mun.ca> References: <87k6noei7l.fsf@phun.phasmic.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1112242879 28816 80.91.229.2 (31 Mar 2005 04:21:19 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 31 Mar 2005 04:21:19 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Mar 31 06:21:18 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DGrB9-0004aH-Aw for geh-help-gnu-emacs@m.gmane.org; Thu, 31 Mar 2005 06:21:11 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DGrRm-0006n0-70 for geh-help-gnu-emacs@m.gmane.org; Wed, 30 Mar 2005 23:38:22 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DGrRV-0006ls-Uh for help-gnu-emacs@gnu.org; Wed, 30 Mar 2005 23:38:06 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DGrRT-0006kR-7m for help-gnu-emacs@gnu.org; Wed, 30 Mar 2005 23:38:03 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DGrRS-0006jQ-RO for help-gnu-emacs@gnu.org; Wed, 30 Mar 2005 23:38:02 -0500 Original-Received: from [80.91.229.2] (helo=ciao.gmane.org) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1DGr7P-0001Yp-7z for help-gnu-emacs@gnu.org; Wed, 30 Mar 2005 23:17:19 -0500 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1DGr5g-00044q-O6 for help-gnu-emacs@gnu.org; Thu, 31 Mar 2005 06:15:32 +0200 Original-Received: from s0106000ae61de208.wp.shawcable.net ([24.77.70.85]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 31 Mar 2005 06:15:32 +0200 Original-Received: from sluque by s0106000ae61de208.wp.shawcable.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 31 Mar 2005 06:15:32 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: help-gnu-emacs@gnu.org Original-Lines: 45 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: s0106000ae61de208.wp.shawcable.net User-Agent: Gnus/5.1007 (Gnus v5.10.7) Emacs/21.4 (gnu/linux) Cancel-Lock: sha1:4+w19+aXCCjRN1QbGHXvf4TQM+A= 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:25312 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:25312 Neil Woods wrote: [...] > 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. Thanks Neil, I tried your first solution, and it took care of the problem, but somehow font-locking was gone. I just checked the author's website, and followed up to the package's latest version: https://alioth.debian.org/projects/mph-emacs-pkgs which has the following version of the defconst: (defconst apt-utils-completing-read-hashtable-p ;; I think this is a valid way to check this feature... (condition-case nil (or (all-completions "" (make-hash-table)) t) (error nil)) "Non-nil if `completing-read' supports hash table as input.") This seems to be working normally again. Cheers, -- Sebastian P. Luque