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: Wed, 24 May 2023 18:14:08 -0700 Message-ID: References: <83ilcing54.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000fd90b305fc7a5694" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24551"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 63676@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu May 25 03:15:30 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 1q1zZi-0006Cy-GP for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 25 May 2023 03:15:30 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q1zZI-0002Ae-Kx; Wed, 24 May 2023 21:15:04 -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 1q1zZG-0002A0-Uq for bug-gnu-emacs@gnu.org; Wed, 24 May 2023 21:15:02 -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 1q1zZG-0003gW-LS for bug-gnu-emacs@gnu.org; Wed, 24 May 2023 21:15:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1q1zZG-0002n0-Fk for bug-gnu-emacs@gnu.org; Wed, 24 May 2023 21:15: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: Thu, 25 May 2023 01:15:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63676 X-GNU-PR-Package: emacs Original-Received: via spool by 63676-submit@debbugs.gnu.org id=B63676.168497726810643 (code B ref 63676); Thu, 25 May 2023 01:15:02 +0000 Original-Received: (at 63676) by debbugs.gnu.org; 25 May 2023 01:14:28 +0000 Original-Received: from localhost ([127.0.0.1]:45499 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q1zYh-0002la-Gt for submit@debbugs.gnu.org; Wed, 24 May 2023 21:14:27 -0400 Original-Received: from mail-lj1-f181.google.com ([209.85.208.181]:56640) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q1zYf-0002lO-JY for 63676@debbugs.gnu.org; Wed, 24 May 2023 21:14:26 -0400 Original-Received: by mail-lj1-f181.google.com with SMTP id 38308e7fff4ca-2af278ca45eso49831fa.1 for <63676@debbugs.gnu.org>; Wed, 24 May 2023 18:14:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684977259; x=1687569259; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=zSR/v3MbcanIPdytHRmqR9XRC+nE7hNzu0eQMB7sK+Q=; b=UXp3HUGADd9siLcwFQigGa55q/br5bb3dvjoZ01/u3a9vCs3DMDQdGHvf1RX+uhcmW 3ZbqX2+Lw8HUqMZIBMq3T4cTTGMF9ZI5cuvxcJcgpNmhD2jfr/Fd+3wTdbDNXJJVxAVV Tfuv/yX7o8VCrG+Jkir9LNX3Lm7LMfpa6syMLDSmXa0u+prtMwRKdCn2biQpc7mhvQAd Bu/WUAi46x255ag2s0/tIaH5Wm39iWcSrRhaOF1aJfcxG+CKx2Wq7GWt40Dl9Kw6k5i4 DQF8xhloWBuWS13k8U5pjB3SwKxkEXHx4gvg67pAREmXgtnye0YzZxauxH22tkRi+BrN 8+vA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684977259; x=1687569259; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=zSR/v3MbcanIPdytHRmqR9XRC+nE7hNzu0eQMB7sK+Q=; b=LioFGpP7PmUsdS9HDhtXo0UOkp8IRa1xzzwcgrHNt9joi2ZOE67Uw3M6lQhQmbVcLX /gQ/R2jiUkpSxnDIHldaSzMVXMMLBlJt495Hql0do4oTd5+DvYrVdS82339ML+D8e3vc 6z4psFfHKowM1/2URzvpn7m5D9fdgzeAYDN67NvwmgNLxUsyX9k4OMUjs5eWhgUXksyU dt9S1DcGcHF8vzKj81lwmSMM4aA4mInVbMoIUwPRWPfCxOC9i47SVP7gxM//Mev3rnSt VVwQRXSNW7x2Ztm+c30tTdk8GDzlVt/xtCtikXfvhsaRs3ZoCKhoAZU4iK7vqNMw4z4s K3lw== X-Gm-Message-State: AC+VfDy4t3KbFi6DY0tlhnJne37A4IGQC0uz/EjmgzIBZ59qXyQo5xod ullAfV2W41w5IiP3sN9Ye6zBGVaauh2byqgHYws= X-Google-Smtp-Source: ACHHUZ6lbMejjJKXRn0r3pjvWb6sLk9jv6ALfZf8IWf2/OOkcMXNrW+UXyBk1LHfa7edX4L3krKQ6HFm9kAhIJAI5hI= X-Received: by 2002:a05:6512:259:b0:4eb:1048:1285 with SMTP id b25-20020a056512025900b004eb10481285mr6098229lfo.47.1684977259219; Wed, 24 May 2023 18:14:19 -0700 (PDT) In-Reply-To: <83ilcing54.fsf@gnu.org> 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:262325 Archived-At: --000000000000fd90b305fc7a5694 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable (btw -- I did try this with "emacs -Q" and it did reproduce for me) 5. Try to fold the subdir with "$". Instead of folding the subdir, everything folds. 6. Try to kill the subdir with "C-u k" with point on the line with the path, message: "Can only kill file lines" (expected inserted subdir to be removed from buffer) 7. refresh buffer with "g" -- normal operations resume. On Wed, May 24, 2023 at 4:05=E2=80=AFAM Eli Zaretskii wrote: > > From: Peter Mao > > Date: Tue, 23 May 2023 21:51:01 -0700 > > > > 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 remove= d > with "C-u k" and the top dir files > > can no longer be accessed. > > I seem to be unable to reproduce this. But your recipe lack some > details, so I'm unsure. Would you please describe exactly what to > type after "C-c ESC" to demonstrate that some commands don't work, and > what did you expect those command to do? > > Thanks. > --000000000000fd90b305fc7a5694 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
(btw -- I did try this with "emacs -Q" and = it did reproduce for me)

5. Try to fold the subdir= with "$". Instead of folding the subdir, everything folds.
=
6. Try to kill the subdir with "C-u k" with point on the lin= e with the path, message: "Can only kill file lines" (expected in= serted subdir to be removed from buffer)
7. refresh buffer wi= th "g" -- normal operations resume.

On Wed, May 24, 2023= at 4:05=E2=80=AFAM Eli Zaretskii <eliz@= gnu.org> wrote:
> From: Peter Mao <peter.mao@gmail.com>
> Date: Tue, 23 May 2023 21:51:01 -0700
>
> I'm testing: GNU Emacs 29.0.91 (build 1, x86_64-pc-linux-gnu, GTK+= Version 3.24.33, cairo
>=C2=A0 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 r= emoved with "C-u k" and=C2=A0 the top dir files
> can no longer be accessed.

I seem to be unable to reproduce this.=C2=A0 But your recipe lack some
details, so I'm unsure.=C2=A0 Would you please describe exactly what to=
type after "C-c ESC" to demonstrate that some commands don't = work, and
what did you expect those command to do?

Thanks.
--000000000000fd90b305fc7a5694--