From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: v88m@posteo.net Newsgroups: gmane.emacs.bugs Subject: bug#33458: 27.0.50; dired loses position when reverted from outside place Date: Wed, 21 Nov 2018 23:40:09 +0300 Message-ID: <87k1l6f9li@posteo.net> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1542833046 18639 195.159.176.226 (21 Nov 2018 20:44:06 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 21 Nov 2018 20:44:06 +0000 (UTC) To: 33458@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Nov 21 21:44:02 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gPZLt-0004hX-9G for geb-bug-gnu-emacs@m.gmane.org; Wed, 21 Nov 2018 21:44:01 +0100 Original-Received: from localhost ([::1]:42266 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gPZNz-0000Tk-NR for geb-bug-gnu-emacs@m.gmane.org; Wed, 21 Nov 2018 15:46:11 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56971) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gPZNt-0000Te-6G for bug-gnu-emacs@gnu.org; Wed, 21 Nov 2018 15:46:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gPZNq-0006ff-07 for bug-gnu-emacs@gnu.org; Wed, 21 Nov 2018 15:46:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:35956) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gPZNp-0006fV-TA for bug-gnu-emacs@gnu.org; Wed, 21 Nov 2018 15:46:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gPZNp-0001qD-Pw for bug-gnu-emacs@gnu.org; Wed, 21 Nov 2018 15:46:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: v88m@posteo.net Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 21 Nov 2018 20:46:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 33458 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.15428331357035 (code B ref -1); Wed, 21 Nov 2018 20:46:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 21 Nov 2018 20:45:35 +0000 Original-Received: from localhost ([127.0.0.1]:40213 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gPZNO-0001pP-KA for submit@debbugs.gnu.org; Wed, 21 Nov 2018 15:45:35 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:46818) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gPZLb-0001lr-NE for submit@debbugs.gnu.org; Wed, 21 Nov 2018 15:43:44 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gPZLV-0003jb-Iq for submit@debbugs.gnu.org; Wed, 21 Nov 2018 15:43:38 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:46220) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gPZLV-0003jN-G9 for submit@debbugs.gnu.org; Wed, 21 Nov 2018 15:43:37 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56416) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gPZLU-0000Hq-9g for bug-gnu-emacs@gnu.org; Wed, 21 Nov 2018 15:43:37 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gPZLR-0003fe-3F for bug-gnu-emacs@gnu.org; Wed, 21 Nov 2018 15:43:36 -0500 Original-Received: from mout01.posteo.de ([185.67.36.65]:41499) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gPZLQ-0003ci-Jd for bug-gnu-emacs@gnu.org; Wed, 21 Nov 2018 15:43:33 -0500 Original-Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 9CE23160061 for ; Wed, 21 Nov 2018 21:43:27 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1542833007; bh=jd5h/TtTeT+6e4AaG/dxX+vTVLhE+VSqJYnnt9r+RsQ=; h=From:To:Subject:Date:From; b=CcxcZ1T4/Z7HE3ZNDeBMxLjivqQ8LhqBEyCP3AiNV5Ooh8Z7M10FaXd9FFwF+AhQm M7rPyzRUZ9pCqGg7y2/zwYWNFoOi4Dl5qYQOlv66BQRsIlhss0gL51sVIEaErJ453k r6giWTxPe3+0yozhC3lgc0b6PEh19it47FNwFpxIVN7FeN5bwLux1YrwqGH2fg/KXM sgvwqW6AUffP638q0aaIvkKXLyrkWWOQivSK/V8z/Lhtgk8ko/M8QFSVq5/dUW70vu plkVm5VqN0qSmdpD/oNPrtT1M1jjXsyuwur2MJXwPitNe72gvYQ5f1WBHgT4qBPfhB G2FduIf/lU4Ew== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 430ZHf3lM0z6tmQ for ; Wed, 21 Nov 2018 21:41:50 +0100 (CET) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Mailman-Approved-At: Wed, 21 Nov 2018 15:45:31 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:152646 Archived-At: If dired buffer reverted from outside it, cursor jumps to begin of the buffer once this buffer becomes current again. How to reproduce: 0. emacs -Q 1. Open some directory, say "DIR-A" in dired. 2. Move cursor to subdirectory, say "DIR-B", M-: (point) ;=> e.g. 225. 3. Dive into subdirectory "DIR-B". 4. Let's check position: M-: (with-current-buffer "DIR-A" (point)) ;=> 225, so cursor in the right place. 5. Revert original buffer: M-: (with-current-buffer "DIR-A" (dired-revert)) 6. Check position again: M-: (with-current-buffer "DIR-A" (point)) ;=> 225, seems right here... 7. Switch back from the buffer with "DIR-B" to the buffer with "DIR-A". 8. Position lost! M-: (point) ;=> 1, but 225 expected. The issue very spunky if auto-revert-mode is used. Can't reproduce this issue with regular buffer, so it seems dired-specific. In GNU Emacs 27.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.22.29) of 2018-11-21 built on pinball Repository revision: e01d030723aef2f90a2fc53a0b5251f29df94527 Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.11905000 System Description: Gentoo/Linux Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. nil Configured using: 'configure --prefix=/usr --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --disable-silent-rules --docdir=/usr/share/doc/emacs-vcs-27.0.9999 --htmldir=/usr/share/doc/emacs-vcs-27.0.9999/html --libdir=/usr/lib64 --program-suffix=-emacs-27-vcs --infodir=/usr/share/info/emacs-27-vcs --localstatedir=/var --enable-locallisppath=/etc/emacs:/usr/share/emacs/site-lisp --without-compress-install --without-hesiod --without-pop --with-file-notification=inotify --enable-acl --with-dbus --without-modules --without-gameuser --with-gpm --without-json --without-kerberos --without-kerberos5 --with-lcms2 --without-xml2 --without-mailutils --without-selinux --with-gnutls --without-libsystemd --with-threads --without-wide-int --with-zlib --with-sound=alsa --with-x --without-ns --with-gconf --with-libgmp --without-gsettings --without-toolkit-scroll-bars --with-gif --with-jpeg --with-png --with-rsvg --with-tiff --with-xpm --with-imagemagick --without-xft --without-cairo --without-libotf --without-m17n-flt --with-x-toolkit=gtk3 --without-xwidgets --build=x86_64-pc-linux-gnu 'CFLAGS=-O2 -march=native' CPPFLAGS= 'LDFLAGS=-Wl,-O1 -Wl,--as-needed'' Configured features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GCONF GLIB NOTIFY INOTIFY ACL GNUTLS ZLIB GTK3 X11 XDBE XIM THREADS LCMS2 GMP Important settings: value of $LC_ALL: value of $LC_COLLATE: C value of $LC_CTYPE: ru_RU.UTF-8 value of $LC_MESSAGES: en_US.UTF-8 value of $LC_NUMERIC: en_US.UTF-8 value of $LC_TIME: en_US.UTF-8 value of $LANG: ru_RU.UTF-8 value of $XMODIFIERS: @im=fcitx locale-coding-system: utf-8-unix Major mode: Dired by name Minor modes in effect: tooltip-mode: t global-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 buffer-read-only: t line-number-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rmc puny seq byte-opt gv bytecomp byte-compile cconv format-spec rfc822 mml mml-sec password-cache epa derived epg epg-config gnus-util rmail rmail-loaddefs time-date mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils help-fns radix-tree cl-print debug backtrace help-mode easymenu find-func cl-loaddefs cl-lib dired dired-loaddefs linum elec-pair mule-util cyril-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame 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 minibuffer 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 dbusbind inotify lcms2 dynamic-setting move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 106382 7985) (symbols 48 20662 1) (strings 32 30146 2249) (string-bytes 1 804766) (vectors 16 15988) (vector-slots 8 521603 19532) (floats 8 51 206) (intervals 56 1248 14) (buffers 992 17)) -- WBR, Yuri