From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#47678: 27.1; `completion-boundaries` assertion failure for file Date: Sun, 09 May 2021 09:37:44 -0400 Message-ID: References: <8d537117-d036-ad84-e013-d98efb3ae0c4@daniel-mendler.de> <87v97wxjtf.fsf@gnus.org> <214d78e9-cda2-e2f2-7284-0f4f6bda43b7@daniel-mendler.de> <8102d308-0c23-f3ac-93c2-1634abe24acc@daniel-mendler.de> Reply-To: Stefan Monnier Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20662"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 47678@debbugs.gnu.org, Lars Ingebrigtsen To: Daniel Mendler Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun May 09 15:39:17 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lfjeP-0005EF-0I for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 09 May 2021 15:39:17 +0200 Original-Received: from localhost ([::1]:36758 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lfjeO-0007rQ-2S for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 09 May 2021 09:39:16 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56648) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lfjeA-0007r9-HU for bug-gnu-emacs@gnu.org; Sun, 09 May 2021 09:39:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:43880) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lfjeA-0005wK-A8 for bug-gnu-emacs@gnu.org; Sun, 09 May 2021 09:39:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lfjeA-0005tY-4y for bug-gnu-emacs@gnu.org; Sun, 09 May 2021 09:39:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 09 May 2021 13:39:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47678 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 47678-submit@debbugs.gnu.org id=B47678.162056748722650 (code B ref 47678); Sun, 09 May 2021 13:39:02 +0000 Original-Received: (at 47678) by debbugs.gnu.org; 9 May 2021 13:38:07 +0000 Original-Received: from localhost ([127.0.0.1]:55426 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lfjdH-0005tG-00 for submit@debbugs.gnu.org; Sun, 09 May 2021 09:38:07 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:19203) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lfjdC-0005st-Su for 47678@debbugs.gnu.org; Sun, 09 May 2021 09:38:05 -0400 Original-Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 238A54406F2; Sun, 9 May 2021 09:37:57 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id AEFAE4403A5; Sun, 9 May 2021 09:37:51 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1620567471; bh=D3YvAPtQFh4rXNML23B3Q445StP8qNE8vXb0qX5lbI0=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=VQRa49cGLPtpuW4dyKX8abxzoZU7uG45AZ33YxFDMhlI1OOwFP2cer4ypThe98XIS a81XiTlmrP0/2pIjE95NJ21IXTDeWm1dQPW2VyApTHxicr+x2l1R1R/Xv8TU5HWAMi qgseQrD83rDZ1JpGE2c4jxHWynhq3TodPQn3p+7PBeaBMyvf9NNJtWxs/y9HWV1C82 ByboCl8XG3TF3m/E2j22n9CKLsNNlsaGU6ky2PYUAys5/vHc0nk/tmSvnY3WngmuVu ErWkTokDmMUjm2vhKPNfwHkz7g5uHtanq0kHTttp7+LgfYunYdnlOKGZRLIUVwcajW vOV+REpbq933Q== Original-Received: from alfajor (76-10-140-76.dsl.teksavvy.com [76.10.140.76]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 71590120151; Sun, 9 May 2021 09:37:51 -0400 (EDT) In-Reply-To: <8102d308-0c23-f3ac-93c2-1634abe24acc@daniel-mendler.de> (Daniel Mendler's message of "Sun, 9 May 2021 10:34:52 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:206075 Archived-At: > Thank you for the clarification. I agree. A while ago when fiddling with > file based commands I had wondered why completing-read or the UI can > even return shadowed paths leading to complications down the road. A > canonicalize method would be a good way to achieve this generically. Are > there more examples where one would want to do such a canonicalization? Good question. I can imagine it being used in a few other "file-like" completion tables (e.g. MH mailboxes), but it doesn't seem nearly as useful. There might also be some possible uses in a context of quoting where it could return the string but quoted in a "canonical way" (e.g. for file names, it could maybe double the lone `$` signs that happen not to match any env-var, or add {...} around the env-vars), ... But no, none of those are very compelling candidates. For this reason, the current hack lives on. > What do you mean by "providing a method"? Nothing specific. Stefan