From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#65120: 29.1; directory-abbrev-alist breaks various things when inside an abbreviated directory Date: Mon, 07 Aug 2023 18:45:55 +0300 Message-ID: <83leemonyk.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9989"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 65120@debbugs.gnu.org To: Sean Allred Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Aug 07 17:46:20 2023 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 1qT2R1-0002OZ-Eq for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 07 Aug 2023 17:46:19 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qT2Qs-0002jS-NR; Mon, 07 Aug 2023 11:46:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qT2Qk-0002gW-4H for bug-gnu-emacs@gnu.org; Mon, 07 Aug 2023 11:46:03 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qT2Qj-0008UU-ST for bug-gnu-emacs@gnu.org; Mon, 07 Aug 2023 11:46:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qT2Qj-0001Ku-O1 for bug-gnu-emacs@gnu.org; Mon, 07 Aug 2023 11:46:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 07 Aug 2023 15:46:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65120 X-GNU-PR-Package: emacs Original-Received: via spool by 65120-submit@debbugs.gnu.org id=B65120.16914231445109 (code B ref 65120); Mon, 07 Aug 2023 15:46:01 +0000 Original-Received: (at 65120) by debbugs.gnu.org; 7 Aug 2023 15:45:44 +0000 Original-Received: from localhost ([127.0.0.1]:34120 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qT2QS-0001KK-7e for submit@debbugs.gnu.org; Mon, 07 Aug 2023 11:45:44 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43116) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qT2QQ-0001JF-1T for 65120@debbugs.gnu.org; Mon, 07 Aug 2023 11:45:43 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qT2QK-0008Pw-O8; Mon, 07 Aug 2023 11:45:36 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=MFI9i3SSvagyMViYaKqNtegwAguBkygv2c0+TPZP7Mw=; b=Z8GWbDQoxYn/ lVcNWpS1K8hyV+ei2kIaUScxVm2FiGYjNYf96VP7Ip8NVIw70b0nYfB1w7DFw5sFdYOyX+D3s/1PG TFdSRMhaVM0hVA+3dRks+2oqFyJHl9tnie6PS1+KYDFzjvYmR63S5GoUCjRuZ18LXxLve4JGdR7p0 XkHZAmnYVkGg515NNMKQomIl6S9kHuLHn9DCyWL8OGWsAmJU8JjspLvZKrfjD15z6w8PG/7olbw3e n8DpSpkof5BeI0xcIhMuTUF5fgcmiOs8ejnq2+8JUug2DCBfgSfArYBS7LXXK6LNoMnRoGJBR6LAV FEEel+BNrcxLWeX1pgVUmQ==; In-Reply-To: (message from Sean Allred on Sun, 06 Aug 2023 18:35:22 -0500) 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:266893 Archived-At: > From: Sean Allred > Date: Sun, 06 Aug 2023 18:35:22 -0500 > > Emacs behaves oddly inside abbreviated directories when > `directory-abbrev-alist' is set. > > $ emacs -Q > lisp> (setq directory-abbrev-alist `(("~/tmp" . "tmp"))) > keys> C-x d ~/tmp RET > keys> C-x C-f > > I see "tmp/" in the minibuffer and no completions are available. > > I've also seen (dired "~/tmp") fail on Windows in this scenario -- > complaining that the directory is inaccessible. On both systems, ~/tmp > does exist (and has content) and behaves as expected if > `directory-abbrev-alist' is nil. This is not how directory-abbrev-alist should be used, according to documentation. The cdr of each alist element ("tmp" in your case) is supposed to be an absolute file name, and "tmp" isn't. Also, the car of each element is supposed to be an anchored regexp. What did you want to accomplish with directory-abbrev-alist such as the above, and why did you want that?