From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Gabriel do Nascimento Ribeiro Newsgroups: gmane.emacs.bugs Subject: bug#45999: 28.0.50; repeat does not work when saving files modified outside emacs Date: Tue, 19 Jan 2021 21:45:10 -0300 Message-ID: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38387"; mail-complaints-to="usenet@ciao.gmane.io" To: 45999@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jan 20 01:48:31 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 1l21fj-0009v0-Hf for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 20 Jan 2021 01:48:31 +0100 Original-Received: from localhost ([::1]:52900 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l21fi-0002aA-FO for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 19 Jan 2021 19:48:30 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51164) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l21dK-0001eC-Pi for bug-gnu-emacs@gnu.org; Tue, 19 Jan 2021 19:46:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:40614) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l21dK-00060A-Hc for bug-gnu-emacs@gnu.org; Tue, 19 Jan 2021 19:46:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1l21dK-0006ZC-FM for bug-gnu-emacs@gnu.org; Tue, 19 Jan 2021 19:46:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Gabriel do Nascimento Ribeiro Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 20 Jan 2021 00:46:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 45999 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.161110352525194 (code B ref -1); Wed, 20 Jan 2021 00:46:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 20 Jan 2021 00:45:25 +0000 Original-Received: from localhost ([127.0.0.1]:52160 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l21ci-0006YH-QE for submit@debbugs.gnu.org; Tue, 19 Jan 2021 19:45:25 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:43154) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l21ce-0006Y7-EL for submit@debbugs.gnu.org; Tue, 19 Jan 2021 19:45:23 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51070) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l21cd-0000qh-Sy for bug-gnu-emacs@gnu.org; Tue, 19 Jan 2021 19:45:20 -0500 Original-Received: from mail-bn8nam11olkn2034.outbound.protection.outlook.com ([40.92.20.34]:1121 helo=NAM11-BN8-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l21ca-0005s3-FZ for bug-gnu-emacs@gnu.org; Tue, 19 Jan 2021 19:45:19 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=VkyVFRZT2WDIjFB0VHtxTRoqFmu6XOosfUOx8ApA37CwB1A7E/TaLWWSyKHpImK757QQm4tewcxIltRY1Q6Z+wZs5ScRJDWXQWzfhbyCBZWVKqqUhyHbIotg2VVCEKrlU9JA4FDa5d0Mlst05Yec6n9HjaRa0gJymWGEnwO1mLIv5f4g9N3WoAICTk85ULNY0aIQNQblzyZ18I5/UO5ursVdVu3ZDkNwTJCkUT5FJmFQaytK+40Syp4YHKWuc3YX++P3krBDMOtUQlAM1GqtiFRkYNPG86v7a1nYzG1hdX5gA6ZDDhfzlvNlufY6bNmgLzZHltQoOtsy8ua/dN+jeQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=wAeubIkR6Om2r+OeHsRIlthYEfhKppM+pZDhYcOUnkM=; b=C71wm0ujeCxTayA5ZXD+goYcjr45DLbWSbzMJ7beADjz6bFNKPL1gRd44clIAp8whzpQD4Jz8xcYgT3iDAaeoPy5ZM2y/RshS0zgtwMdN5P4cQWXLIRDQUN624v9C/c8mB8BtQJ6tNA0rgQilCXucGd5Xqoy+OQdPw5tQgcaWg0MwV2aIeu9H0hvzxFS6kwFH8RxDthWfoHOSNTCV8Ns7yLrqXdlX6pvNuYGgyp21kxHC+AbTGH76//c7CCpHSUX+DrtMw4mOfNkSujma6QCmARxsGCG7cYDvacYmyAMyhVMtywcdljsX35M9JPztNjP7my02bStWwJ4owXsQbHZsA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=wAeubIkR6Om2r+OeHsRIlthYEfhKppM+pZDhYcOUnkM=; b=JQfj0pZ6DoZNs/QFbFAyEDDc6Lg+rNCrHdIgjMCNcEWnqSCcJV+dy0fgHUnzUeG51Y25Qxxg6clb5klpA3cVR7uLo6rBnLsAB61m+wIG+zRsg3jH0K6cWMUBr0DeuM1akv5R0mIOEGi77e79udrzSDf36iS9TgODFRScb9s2RS9viH0dH6tH6S5n5kDRt52BmWJb1iMFlHgO1rS6WA/hC9lCxVyyMTR/lyZCnBSfB6RCF7xVHiMLE04TiafoCjhhCa1naFJEOXSWshSlRLO80/EOt0NcC3YAnaFu+LU4xHy2Q4yL6vFlX9Y3BvTfS7rURkNjK+akVzWhRVz6N3E/DA== Original-Received: from DM6NAM11FT033.eop-nam11.prod.protection.outlook.com (2a01:111:e400:fc4d::47) by DM6NAM11HT022.eop-nam11.prod.protection.outlook.com (2a01:111:e400:fc4d::444) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3763.10; Wed, 20 Jan 2021 00:45:15 +0000 Original-Received: from CH2PR01MB5879.prod.exchangelabs.com (2a01:111:e400:fc4d::42) by DM6NAM11FT033.mail.protection.outlook.com (2a01:111:e400:fc4d::221) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3763.12 via Frontend Transport; Wed, 20 Jan 2021 00:45:14 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:C8B98027B969A23DB433BC8A89D28837A61DCD12AE1A2ABADCBA79ABAD64BB44; UpperCasedChecksum:28530BDBBCB89E42C92BD836A520750AF19373E83F89B92AE214CEE9DB800C14; SizeAsReceived:7237; Count:42 Original-Received: from CH2PR01MB5879.prod.exchangelabs.com ([fe80::d51d:8cbe:370a:39ac]) by CH2PR01MB5879.prod.exchangelabs.com ([fe80::d51d:8cbe:370a:39ac%7]) with mapi id 15.20.3763.014; Wed, 20 Jan 2021 00:45:14 +0000 X-TMN: [+BJKoOSFKF5Psy1S2FicZL4kJ75Abk3pkjf1yDDt+qiOzwySK2q2RIpsABxeARCo] X-ClientProxiedBy: CP5P284CA0021.BRAP284.PROD.OUTLOOK.COM (2603:10d6:103:94::8) To CH2PR01MB5879.prod.exchangelabs.com (2603:10b6:610:3c::12) X-Microsoft-Original-Message-ID: <87y2gojv1l.fsf@hotmail.com> X-MS-Exchange-MessageSentRepresentingType: 1 Original-Received: from precision5540 (2804:431:c7f3:76d5:3e02:7d4f:13b6:140c) by CP5P284CA0021.BRAP284.PROD.OUTLOOK.COM (2603:10d6:103:94::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3784.11 via Frontend Transport; Wed, 20 Jan 2021 00:45:13 +0000 X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 42 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: b45c5a74-ca2f-41b5-8740-08d8bcdca66d X-MS-TrafficTypeDiagnostic: DM6NAM11HT022: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: nfk6fwp4VBdT5Vcqf8RxJkh93tfN7rYVXfPTwXH+ScAceQWLd2mSjCNrBo/7pa/pfohBHRVl+6YkQCLB+/kVjpC88okOyFAVo5DeG5KfRn4RNI2n5wP8bpbdiFmg4Kg0VSr6e8bmHdGj9Wk6+f5GkYdnkPIOXpDOmDrXOo5QCGvpskeCI60wbvm5pSu5oKvrvY/RZXttDauF1ha9Z3PvtKARMBItQ6em8fePSQnuKPd14sqOcB2sIfLgFzeHNSU+RYeVzIDnQ2PIikg3JARtW/BL1MI99xueh++1uAl9A0Qq+GDiBm2sQ/vhHtNkcSgM03L0EGxaRkUrCb08PLBn1+ESENTtak+kZMjNRRT841MIJYiZus7smFLpiDiWSnEjnFS2mBds8kBRG60HVrz84Q== X-MS-Exchange-AntiSpam-MessageData: Q3NonFBGC0UBnZO8fb0H6DmfGJN6QTKqPF+4veKSuavNeQ0U0VWZzBbLzewJZoNIDUG6lOUw4CUpOdVjwZ8pcy9a0gc5vTMXhpdy+w4EbBq0U28kxgAPj+5v/Zf0AmSYyQ4X5yvATLOIch3BEPU+mJJmHxo9P0mH2uLoiISwCvS/sNQz8ErdSmmV8bzi02fUnnSbuXygIEyvZMfA8DUeDg== X-OriginatorOrg: hotmail.com X-MS-Exchange-CrossTenant-Network-Message-Id: b45c5a74-ca2f-41b5-8740-08d8bcdca66d X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Jan 2021 00:45:14.8365 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-AuthSource: DM6NAM11FT033.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: Internet X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6NAM11HT022 Received-SPF: pass client-ip=40.92.20.34; envelope-from=gabriel376@hotmail.com; helo=NAM11-BN8-obe.outbound.protection.outlook.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 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_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-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:198217 Archived-At: 1) Normal case: 1.1) Run 'emacs -q' 1.2) Open a file with 'C-x C-f' 1.3) Make some modification without saving the buffer 1.4) Save the buffer with 'C-x C-s' 1.5) Repeat last last command with 'C-x z'. You will see the message '(no changes need to be saved)' indicating that the 'save-buffer' command was repeated. 2) Problematic case: 2.1) Run 'emacs -q' 2.2) Open a file with 'C-x C-f' 2.3) Make some modification without saving the buffer 2.4) Edit the same file outside emacs (with another text editor or with shell command 'touch') 2.5) Save the buffer with 'C-x C-s'. You will see the message ' has changed since visited or saved. Save anyway ?'. Type 'yes' 2.6) Repeat last last command with 'C-x z'. You will see the message 'Repeating (find-file t)' indicating that the last command before 'save-buffer' was repeated, which in this case was 'find-file' command with 'C-x C-f'. It's possible to test with some other command before saving the buffer to see what happens with the '(repeat)' command. In GNU Emacs 28.0.50 (build 39, x86_64-pc-linux-gnu, GTK+ Version 3.24.23, cairo version 1.16.0) of 2021-01-16 built on precision5540 Repository revision: 25e1b732947bcba51e457a7168eba6608fb666c0 Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.12009000 System Description: Ubuntu 20.10 Configured features: ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GSETTINGS HARFBUZZ JPEG LCMS2 LIBSELINUX LIBXML2 MODULES NOTIFY INOTIFY PDUMPER PNG RSVG SOUND THREADS TIFF TOOLKIT_SCROLL_BARS X11 XDBE XIM XPM GTK3 ZLIB Important settings: value of $LC_CTYPE: pt_BR.UTF-8 value of $LC_MONETARY: pt_BR.UTF-8 value of $LC_NUMERIC: pt_BR.UTF-8 value of $LC_TIME: pt_BR.UTF-8 value of $LANG: en_US.UTF-8 value of $XMODIFIERS: @im=ibus locale-coding-system: utf-8-unix Major mode: Browse Server 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 emacsbug gnus-ml disp-table mail-extr cursor-sensor nndraft nnmh utf-7 gnutls network-stream nsm nnnil gnus-agent gnus-srvr gnus-score score-mode nnvirtual gnus-msg nntp gnus-cache smtpmail sendmail misearch multi-isearch rx org-element avl-tree generator ol-eww eww xdg url-queue mm-url ol-rmail ol-mhe ol-irc ol-info ol-gnus nnselect gnus-search eieio-opt speedbar ezimage dframe gnus-art mm-uu mml2015 mm-view mml-smime smime dig gnus-sum shr kinsoku svg dom browse-url url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util url-parse url-vars mailcap gnus-group gnus-undo gnus-start gnus-dbus dbus xml gnus-cloud nnimap nnmail mail-source utf7 netrc nnoo parse-time gnus-spec gnus-int gnus-range message rmc puny rfc822 mml mml-sec epa derived epg epg-config mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader gnus-win gnus nnheader gnus-util rmail rmail-loaddefs auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache json map rfc2047 rfc2045 ietf-drums text-property-search mail-utils mm-util mail-prsvr wid-edit ol-docview doc-view image-mode exif dired dired-loaddefs ol-bibtex bibtex iso8601 ol-bbdb ol-w3m org ob ob-tangle ob-ref ob-lob ob-table ob-exp org-macro org-footnote org-src ob-comint org-pcomplete pcomplete comint ansi-color ring org-list org-faces org-entities noutline outline org-version ob-emacs-lisp ob-core ob-eval org-table ol org-keys org-compat advice org-macs org-loaddefs format-spec find-func cal-menu calendar cal-loaddefs mule-util jka-compr info time-date subr-x cl-extra seq byte-opt gv bytecomp byte-compile cconv cl-print thingatpt help-fns radix-tree help-mode vc-git diff-mode easymenu easy-mmode cl-loaddefs cl-lib conf-mode iso-transl 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 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 button loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads dbusbind inotify lcms2 dynamic-setting system-font-setting font-render-setting cairo move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 295807 45058) (symbols 48 23424 1) (strings 32 114515 4556) (string-bytes 1 3691174) (vectors 16 37971) (vector-slots 8 463088 27462) (floats 8 266 124) (intervals 56 70122 0) (buffers 984 24))