From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: ynyaaa@gmail.com Newsgroups: gmane.emacs.bugs Subject: bug#48805: 27.2; dired-mode moves point to wrong positions while deleting non-empty directories Date: Thu, 03 Jun 2021 16:20:24 +0900 Message-ID: <868s3rv2h3.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19138"; mail-complaints-to="usenet@ciao.gmane.io" To: 48805@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jun 03 09:21:14 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 1lohfF-0004tZ-VG for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 03 Jun 2021 09:21:14 +0200 Original-Received: from localhost ([::1]:32916 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lohfF-0003Wh-19 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 03 Jun 2021 03:21:13 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55622) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lohf4-0003Tr-Cw for bug-gnu-emacs@gnu.org; Thu, 03 Jun 2021 03:21:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:58655) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lohf4-0001G1-57 for bug-gnu-emacs@gnu.org; Thu, 03 Jun 2021 03:21:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lohf4-0007MY-1d for bug-gnu-emacs@gnu.org; Thu, 03 Jun 2021 03:21:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: ynyaaa@gmail.com Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 03 Jun 2021 07:21:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 48805 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.162270483928252 (code B ref -1); Thu, 03 Jun 2021 07:21:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 3 Jun 2021 07:20:39 +0000 Original-Received: from localhost ([127.0.0.1]:41968 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1loheg-0007Lb-Ku for submit@debbugs.gnu.org; Thu, 03 Jun 2021 03:20:38 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:48098) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lohef-0007LV-Vb for submit@debbugs.gnu.org; Thu, 03 Jun 2021 03:20:38 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55572) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lohef-00034t-JZ for bug-gnu-emacs@gnu.org; Thu, 03 Jun 2021 03:20:37 -0400 Original-Received: from mail-pg1-x52f.google.com ([2607:f8b0:4864:20::52f]:39906) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lohed-00010h-HE for bug-gnu-emacs@gnu.org; Thu, 03 Jun 2021 03:20:37 -0400 Original-Received: by mail-pg1-x52f.google.com with SMTP id v14so4442714pgi.6 for ; Thu, 03 Jun 2021 00:20:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:mime-version; bh=H3vmNxyDiulU2BchRWhNDp5iudFY7/wXnCxpOOLpDwM=; b=iAqx5v9IudGxml4msvxPrA7ghg8jCKRDwlS0ZuXdzYFizz3KQfrfphd/k7a+STMnuD 0QhUPI+n6dEjL4FUqTPtPj0NjjnsyZ1ctskwQqSPQqw9UstJSpvlR9lVA/lIRYv7oBRn EuJIVa04/LIkVlzNr7tV9MEjoGF3nKOyZqA5YN6L7GFZUJkeUh857FdImTZB8qzOZ2/5 w2W2Ww27fKBK6ioyo5BYIlLq+n1ipfjafGNamuVcIuBnprPFVAdzNybBq4Z2aMRiEVnS +3MGMs9K/Z1C8BXfnWRH5lfpZw+IR1dXiIDlF7MHsMFAysfLm4FgowqPWOkruSAQdtnR rfew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version; bh=H3vmNxyDiulU2BchRWhNDp5iudFY7/wXnCxpOOLpDwM=; b=q4CgIzASNi5fPFTyBBBRFEXkQnhEV/ehWmX9X/A6jK6bY4pTTVaZUozuT4AD8jP22V Oj5SGz9eGcOwwnP3tkKTA/vmVGkKGsK6/XXHHZBeWEViUsx0ONkdj+e/5Jo0d1CBPVIs 7Jr7iwdQawfXDLVnePOdZ5yiCTuNPoPNbinjTRPPSfZd4F/sm5PFnQQsB1vATFhNdeOo z0600nOs0VMJTcaKWzzmDk06aeu14q0apI1UKVN5+OL3/IZ+b3JjTAnGwc4ruVH8SHm3 XOrrz9i+t2nzjkvahCDtslW6toOhpO+rUVG0FcrD0SlwzmeWvOnNwTG6xCOfJoDy7fRC hjpg== X-Gm-Message-State: AOAM530rh+/kdqijGKQMR5YiDrg/EN5ii3ctK4z7zb9MOizcpxQ0fe1A IVe9GUwKG5wSKlUWrTIP1as1FzH0cVA= X-Google-Smtp-Source: ABdhPJyId1sQ/hWsXoofSIkjGHjdFev/voV/gE/Z1ZKCNEtRFrC9HITA+vb/LTtu+txIw6M97AHdUA== X-Received: by 2002:a63:6f8e:: with SMTP id k136mr38813626pgc.326.1622704832522; Thu, 03 Jun 2021 00:20:32 -0700 (PDT) Original-Received: from HP (east42-p109.eaccess.hi-ho.ne.jp. [219.121.173.110]) by smtp.gmail.com with ESMTPSA id d8sm392279pfq.198.2021.06.03.00.20.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Jun 2021 00:20:32 -0700 (PDT) Received-SPF: pass client-ip=2607:f8b0:4864:20::52f; envelope-from=ynyaaa@gmail.com; helo=mail-pg1-x52f.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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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" Xref: news.gmane.io gmane.emacs.bugs:207896 Archived-At: The form below creates a working directory and generate many non-empty directories under the working directory, then displaye the working directory in a dired-mode buffer. (let ((dir (make-temp-file "dir" t))) (dotimes (i 100) (let ((d (expand-file-name (format "d%03d" i) dir))) (make-directory d) (write-region "" nil (expand-file-name "file" d)) )) (dired dir)) Mark all subdirectories to be deleted with typing 'C-u 100 d'. Tell emacs to delete all marked directories with typing 'x'. Emacs asks 'Delete D [100 files] (yes or no) ', and answer yes. Then emacs asks like 'Recursively delete d000? (yes, no, all, quit, help) ' for each directory, and answer yes for each confirmation. While these confirmations, emacs tries to move point to the 'D' marker of the line of the asked directory. But the real position of the point is different from the line. Perhaps because the goal point value is changed with the deletion of the lines of the directories which has been deleted. Also, I think the point should be moved to the directory name, not marker. Directory names are much more important than marker types and there is a long distance between the marker and the name. In GNU Emacs 27.2 (build 1, x86_64-w64-mingw32) of 2021-03-26 built on CIRROCUMULUS Repository revision: deef5efafb70f4b171265b896505b92b6eef24e6 Repository branch: HEAD Windowing system distributor 'Microsoft Corp.', version 10.0.19043 System Description: Microsoft Windows 10 Pro (v10.0.2009.19043.1023) Recent messages: Configured using: 'configure --without-dbus --host=x86_64-w64-mingw32 --without-compress-install 'CFLAGS=-O2 -static'' Configured features: XPM JPEG TIFF GIF PNG RSVG SOUND NOTIFY W32NOTIFY ACL GNUTLS LIBXML2 HARFBUZZ ZLIB TOOLKIT_SCROLL_BARS MODULES THREADS JSON PDUMPER LCMS2 GMP Important settings: value of $LANG: JPN locale-coding-system: cp932 Major mode: Emacs-Lisp Minor modes in effect: tooltip-mode: t global-eldoc-mode: t eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr term/bobcat emacsbug message rmc puny format-spec rfc822 mml mml-sec password-cache epa derived epg epg-config gnus-util rmail rmail-loaddefs text-property-search mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils dired dired-loaddefs cl-print debug backtrace find-func mule-util info apropos goto-addr thingatpt noutline outline easy-mmode view misearch multi-isearch cl-extra seq byte-opt gv bytecomp byte-compile cconv help-fns radix-tree help-mode easymenu time-date subr-x cl-loaddefs cl-lib japan-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel dos-w32 ls-lisp disp-table term/w32-win w32-win w32-vars term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame minibuffer cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads w32notify w32 lcms2 multi-tty make-network-process emacs) Memory information: ((conses 16 73546 10832) (symbols 48 8298 1) (strings 32 24697 1901) (string-bytes 1 692843) (vectors 16 13822) (vector-slots 8 265412 15684) (floats 8 37 270) (intervals 56 1015 643) (buffers 1000 17))