From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Luc Teirlinck Newsgroups: gmane.emacs.bugs Subject: all-completions broken in 20.7.1? Date: Fri, 7 Feb 2003 20:46:59 -0600 (CST) Sender: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Message-ID: <200302080246.UAA28156@eel.dms.auburn.edu> NNTP-Posting-Host: main.gmane.org X-Trace: main.gmane.org 1044672428 18539 80.91.224.249 (8 Feb 2003 02:47:08 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sat, 8 Feb 2003 02:47:08 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18hL1G-0004oj-00 for ; Sat, 08 Feb 2003 03:47:06 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18hL2P-0003ux-05 for gnu-bug-gnu-emacs@m.gmane.org; Fri, 07 Feb 2003 21:48:17 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18hL26-0003uU-00 for bug-gnu-emacs@gnu.org; Fri, 07 Feb 2003 21:47:58 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18hL21-0003rI-00 for bug-gnu-emacs@gnu.org; Fri, 07 Feb 2003 21:47:57 -0500 Original-Received: from manatee.dms.auburn.edu ([131.204.53.104]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18hL0Q-0003T0-00 for bug-gnu-emacs@gnu.org; Fri, 07 Feb 2003 21:46:14 -0500 Original-Received: from eel.dms.auburn.edu (eel.dms.auburn.edu [131.204.53.108]) by manatee.dms.auburn.edu (8.9.1a/8.9.1) with ESMTP id UAA11789; Fri, 7 Feb 2003 20:46:13 -0600 (CST) Original-Received: (from teirllm@localhost) by eel.dms.auburn.edu (8.9.3+Sun/8.9.3) id UAA28156; Fri, 7 Feb 2003 20:46:59 -0600 (CST) X-Authentication-Warning: eel.dms.auburn.edu: teirllm set sender to teirllm@dms.auburn.edu using -f Original-To: Thierry Legras X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Bug reports for GNU Emacs, the Swiss army knife of text editors List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.bugs:4414 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:4414 Thierry Legras wrote: Hi, all-completions function returns scarry things: i started a naked emacs with -q option, then just evaled (all-completions "" [foo] nil), result is: ("foo" "scroll-bar-drag-position" "nodelete" "r" "latin-iso8859-3" "mark-marker" "buffer-read-only") ??? >>From the documentation string of `all-completions', I do not get the impression that you are supposed to pass an array as the second argument. If you use, say, an obarray instead, you get the expected result: ELISP> (emacs-version) "GNU Emacs 21.3.50.26 (i686-pc-linux-gnu, X toolkit)\n of 2003-02-07 on swt40.swt.com" ELISP> (all-completions "" [foo] nil) ;; incorrect argument: array. ("foo" "dired-free-space-args" "PC-complete-word" "scroll-bar-drag-position" "nodelete" "r" "latin-iso8859-3" "mark-marker" "buffer-read-only") ;; nonsensical answer ;; (granted, error message would be better) ELISP> (setq ob (make-vector 1 0)) [0] ELISP> (intern "foo" ob) foo ELISP> ob [foo] ELISP> (all-completions "" ob nil) ;; correct argument: obarray ("foo") ;; correct answer. Sincerely, Luc.