From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Peter Mao Newsgroups: gmane.emacs.bugs Subject: bug#63676: cancelling editable dired causes UI problems with dired Date: Tue, 23 May 2023 21:51:01 -0700 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000d0e02305fc694082" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18547"; mail-complaints-to="usenet@ciao.gmane.io" To: 63676@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed May 24 06:52: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 1q1gU0-0004eM-7d for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 24 May 2023 06:52:20 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q1gTl-0000vr-3R; Wed, 24 May 2023 00:52:05 -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 1q1gTj-0000vW-5e for bug-gnu-emacs@gnu.org; Wed, 24 May 2023 00:52:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1q1gTi-00051S-U3 for bug-gnu-emacs@gnu.org; Wed, 24 May 2023 00:52:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1q1gTi-0007CT-Fn for bug-gnu-emacs@gnu.org; Wed, 24 May 2023 00:52:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Peter Mao Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 24 May 2023 04:52:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 63676 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.168490388527509 (code B ref -1); Wed, 24 May 2023 04:52:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 24 May 2023 04:51:25 +0000 Original-Received: from localhost ([127.0.0.1]:40852 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q1gT6-00079c-Vb for submit@debbugs.gnu.org; Wed, 24 May 2023 00:51:25 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:57862) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q1gT5-00079I-1O for submit@debbugs.gnu.org; Wed, 24 May 2023 00:51:23 -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 1q1gT3-0000rv-4V for bug-gnu-emacs@gnu.org; Wed, 24 May 2023 00:51:21 -0400 Original-Received: from mail-lf1-x135.google.com ([2a00:1450:4864:20::135]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1q1gT0-0004vI-HX for bug-gnu-emacs@gnu.org; Wed, 24 May 2023 00:51:20 -0400 Original-Received: by mail-lf1-x135.google.com with SMTP id 2adb3069b0e04-4f4b2bc1565so364464e87.2 for ; Tue, 23 May 2023 21:51:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684903873; x=1687495873; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=AxqzxfBVn6hZ917bTNlajFsTv+Pvmb2Jd7+pa9xMuec=; b=RLOXCXkgxx6k+h05U8Usgzg3XPni+PI0t+K6N2LnssbNcu400dMPoCKMM+VCcmXrGQ pfKINhp+xw3AzYhHGt2Wn5Mf3jECdqn+SZizBnTvY2QY41oj8lmzFs96GqPfOBx9YXfK ZrGVTGQ4dmshZwbxguaq2AOX4Qv75E/nWQ3qgCa6f+j/b1+W04Q4ERNrfJqa9XxGszmM 5YwF016MkGSJ1F6u+R3dZa32x/aL7y6vSLWs2AkYrhY2+2AvDkYzKYHFkQ4aqvI19X+K V4/0cele7F0HuCx8He4x7rwH3Dy+Qw1TwBG3hjvYl8LEe2v/8dQUUU04cgyJ8tt1rGrj NrJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684903873; x=1687495873; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=AxqzxfBVn6hZ917bTNlajFsTv+Pvmb2Jd7+pa9xMuec=; b=ZGiF3ObJIqDh1ExrE1hCvpXKViogrISBCWF6YpWEy/dUaeFNqVlexjrFZ2IrXvH/OA JvBCy2GaurEfiOccZowtCpqUjntxafvkQ6Jb1uzcr2oNTqIdwUST+laSQQ4SMLQJ9vRA FOK8DJ+1B0OS+uFPNy4E72PTi3bG2KqpJk+LZKSwZAcOC2+o7CnTewevhiTNynd7wsZ9 Q4niR8PUlFzrSW3WSEPoaOzzn2xwZChKChGu62+DSF3CzwfiqtabcjZOogQbqZyWX8z7 SUx/IV6ns4K1B5LLZ1ZpV/crRl6+D8mXZZaNd6YCzZsj4hYmSghN0ovvsPBf/FYaZ1+P xxjA== X-Gm-Message-State: AC+VfDyHQsl3cfVQhcGzmZw5d8Dh+9iRUGafTpZBIgwy1VbeSfJrGJ0T 6TF4v808ZrS+HefW15B8kyPWGpmVp8HSxm+fEWqik2qgH2A= X-Google-Smtp-Source: ACHHUZ63uekiaw6cBij1kT8xaiD/nKQPP1PMTPOlnAHMrrTmmipnxXRVkBRDIn57jorCbb0VeQNDOHe3hKbMePtjGJA= X-Received: by 2002:a2e:330e:0:b0:2ad:a12d:e458 with SMTP id d14-20020a2e330e000000b002ada12de458mr5984459ljc.41.1684903872746; Tue, 23 May 2023 21:51:12 -0700 (PDT) Received-SPF: pass client-ip=2a00:1450:4864:20::135; envelope-from=peter.mao@gmail.com; helo=mail-lf1-x135.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action 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:262271 Archived-At: --000000000000d0e02305fc694082 Content-Type: text/plain; charset="UTF-8" I'm testing: GNU Emacs 29.0.91 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.33, cairo version 1.16.0) of 2023-05-15 Dired behavior has multiple problems if subdirectories are present in the buffer and writable mode is entered and then cancelled To reproduce the problem 1. Open a directory in dired 2. Insert a subdirectory with "i" 3. Enter writable mode "C-x C-q" 4. Cancel writable mode "C-c ESC" Now the subdirectory is in the buffer, but it can't be folded or removed with "C-u k" and the top dir files can no longer be accessed. After playing around a while, I found that "g" (revert-buffer) fixes things, but it's not the most obvious thing to do. On the plus side, at least I *can* enter writable mode with a folded subdirectory in dired now! Peter --000000000000d0e02305fc694082 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I'm testing: GNU Emacs 29.0.91 (build 1, x86_64-pc-lin= ux-gnu, GTK+ Version 3.24.33, cairo
=C2=A0version 1.16.0) of 2023-0= 5-15

Dired behavior has multiple problems if subdi= rectories are present in the buffer and writable mode is entered and then c= ancelled

To reproduce the problem
1. Open a directory in dired
2. Insert a subdirectory with &quo= t;i"
3. Enter writable mode "C-x C-q"
4.= Cancel writable mode "C-c ESC"

Now the = subdirectory is in the buffer, but it can't be folded or removed with &= quot;C-u k" and=C2=A0 the top dir files can no longer be accessed.=C2= =A0 After playing around a while, I found that "g" (revert-buffer= ) fixes things, but it's not the most obvious thing to do.
On the plus side, at least I *can* enter writable mode with a = folded subdirectory in dired now!

Peter
<= /div> --000000000000d0e02305fc694082--