From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.bugs Subject: bug#4708: 23.1; completion-try-completion adds an extra $: $$HOMj Date: Mon, 12 Oct 2009 12:05:32 -0700 Message-ID: Reply-To: Drew Adams , 4708@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1255375656 31544 80.91.229.12 (12 Oct 2009 19:27:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 12 Oct 2009 19:27:36 +0000 (UTC) To: Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Oct 12 21:27:26 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MxQYH-0001ro-AU for geb-bug-gnu-emacs@m.gmane.org; Mon, 12 Oct 2009 21:27:25 +0200 Original-Received: from localhost ([127.0.0.1]:53551 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MxQYG-0008D4-KN for geb-bug-gnu-emacs@m.gmane.org; Mon, 12 Oct 2009 15:27:24 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MxQYC-0008Co-8Y for bug-gnu-emacs@gnu.org; Mon, 12 Oct 2009 15:27:20 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MxQY7-0008C8-22 for bug-gnu-emacs@gnu.org; Mon, 12 Oct 2009 15:27:19 -0400 Original-Received: from [199.232.76.173] (port=37207 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MxQY6-0008C5-TP for bug-gnu-emacs@gnu.org; Mon, 12 Oct 2009 15:27:14 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:37404) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MxQY6-00075V-2M for bug-gnu-emacs@gnu.org; Mon, 12 Oct 2009 15:27:14 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n9CJRAEF031965; Mon, 12 Oct 2009 12:27:10 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n9CJA6GP029228; Mon, 12 Oct 2009 12:10:07 -0700 Resent-Date: Mon, 12 Oct 2009 12:10:07 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: "Drew Adams" Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Mon, 12 Oct 2009 19:10:06 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: report 4708 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.125537437028880 (code B ref -1); Mon, 12 Oct 2009 19:10:06 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 12 Oct 2009 19:06:10 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n9CJ69rQ028877 for ; Mon, 12 Oct 2009 12:06:10 -0700 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MxQDg-0004sy-QE for bug-gnu-emacs@gnu.org; Mon, 12 Oct 2009 15:06:08 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MxQDb-0004rN-I7 for bug-gnu-emacs@gnu.org; Mon, 12 Oct 2009 15:06:07 -0400 Original-Received: from [199.232.76.173] (port=51847 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MxQDb-0004rH-BG for bug-gnu-emacs@gnu.org; Mon, 12 Oct 2009 15:06:03 -0400 Original-Received: from acsinet12.oracle.com ([141.146.126.234]:22977) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MxQDa-0002mu-PI for bug-gnu-emacs@gnu.org; Mon, 12 Oct 2009 15:06:03 -0400 Original-Received: from rgminet15.oracle.com (rcsinet15.oracle.com [148.87.113.117]) by acsinet12.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id n9CJ5sOr009709 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 12 Oct 2009 19:05:55 GMT Original-Received: from acsmt357.oracle.com (acsmt357.oracle.com [141.146.40.157]) by rgminet15.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id n9BMjkBo009511 for ; Mon, 12 Oct 2009 19:05:56 GMT Original-Received: from abhmt004.oracle.com by acsmt355.oracle.com with ESMTP id 20355776511255374329; Mon, 12 Oct 2009 12:05:29 -0700 Original-Received: from dradamslap1 (/130.35.178.194) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 12 Oct 2009 12:05:29 -0700 X-Mailer: Microsoft Office Outlook 11 Thread-Index: AcpLbvis20jIokH4Tx+n6K5zCjDEyg== X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 X-Source-IP: acsmt357.oracle.com [141.146.40.157] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090201.4AD37E13.012A:SCFMA4539814,ss=1,fgs=0 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 1) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Mon, 12 Oct 2009 15:27:19 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:31857 Archived-At: emacs -Q M-: (completion-try-completion "c:/some-dir/$HOMj" nil 16) correctly returns: (c:/some-dir/$HOMEj" . 17) M-: (completion-try-completion "c:/some-dir/$HOMj" nil 17) returns: ("c:/some-dir/$$HOMj" . 18) That doesn't seem correct. Is it correct to have $$ here? If so, can you please explain it a bit (why)? Also, if this is correct behavior, then please explain this in the doc string of `completion-try-completion'. The doc string currently says that STRING, in the return value of (STRING . NEWPOINT), is "the completed result string". But "result string" cannot be right, if we're talking about the result of completion. There is no completion that contains $$HOM. In GNU Emacs 23.1.1 (i386-mingw-nt5.1.2600) of 2009-07-29 on SOFT-MJASON Windowing system distributor `Microsoft Corp.', version 5.1.2600 configured using `configure --with-gcc (4.4)'