From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?UTF-8?Q?=C3=93scar?= Fuentes Newsgroups: gmane.emacs.bugs Subject: bug#24094: 25.1.50; revert-buffer error in CC mode Date: Fri, 29 Jul 2016 21:01:34 +0200 Message-ID: <87fuqs2rqp.fsf@wanadoo.es> References: <20160729175924.11811.qmail@mail.muc.de> <87r3ac2t7m.fsf@wanadoo.es> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1469818956 15870 80.91.229.3 (29 Jul 2016 19:02:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 29 Jul 2016 19:02:36 +0000 (UTC) Cc: Alan Mackenzie , 24094@debbugs.gnu.org, 24074@debbugs.gnu.org To: Richard Copley Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jul 29 21:02:22 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1bTD36-0002Wb-VN for geb-bug-gnu-emacs@m.gmane.org; Fri, 29 Jul 2016 21:02:21 +0200 Original-Received: from localhost ([::1]:32929 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bTD31-0004Yr-1Y for geb-bug-gnu-emacs@m.gmane.org; Fri, 29 Jul 2016 15:02:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41553) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bTD2u-0004Y9-Pm for bug-gnu-emacs@gnu.org; Fri, 29 Jul 2016 15:02:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bTD2p-0001hj-8w for bug-gnu-emacs@gnu.org; Fri, 29 Jul 2016 15:02:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:53676) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bTD2p-0001hf-61; Fri, 29 Jul 2016 15:02:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bTD2o-0002Dj-Uf; Fri, 29 Jul 2016 15:02:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?=C3=93scar?= Fuentes Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bug-cc-mode@gnu.org Resent-Date: Fri, 29 Jul 2016 19:02:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24094 X-GNU-PR-Package: emacs,cc-mode X-GNU-PR-Keywords: Original-Received: via spool by 24094-submit@debbugs.gnu.org id=B24094.14698189028501 (code B ref 24094); Fri, 29 Jul 2016 19:02:02 +0000 Original-Received: (at 24094) by debbugs.gnu.org; 29 Jul 2016 19:01:42 +0000 Original-Received: from localhost ([127.0.0.1]:50972 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bTD2U-0002Cy-FI for submit@debbugs.gnu.org; Fri, 29 Jul 2016 15:01:42 -0400 Original-Received: from relaycp01.dominioabsoluto.net ([217.116.26.68]:42633) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bTD2T-0002Ch-7X; Fri, 29 Jul 2016 15:01:41 -0400 Original-Received: from smtp.movistar.es (smtp10.acens.net [86.109.99.134]) by relaycp01.dominioabsoluto.net (Postfix) with ESMTP id 886E342A0; Fri, 29 Jul 2016 21:01:35 +0200 (CEST) X-Junkmail-Premium-Raw: score=8/50, refid=2.7.2:2016.7.29.130618:17:8.317, ip=, rules=__HAS_FROM, __FRAUD_WEBMAIL_FROM, __TO_MALFORMED_2, __TO_NAME, __TO_NAME_DIFF_FROM_ACC, __HAS_CC_HDR, __MULTIPLE_RCPTS_CC_X2, __CC_NAME, __CC_NAME_DIFF_FROM_ACC, __BOUNCE_CHALLENGE_SUBJ, __BOUNCE_NDR_SUBJ_EXEMPT, __SUBJ_ALPHA_END, __REFERENCES, __IN_REP_TO, __HAS_MSGID, __SANE_MSGID, __USER_AGENT, __MIME_VERSION, __CT, __CT_TEXT_PLAIN, __UNUSABLE_MSGID, __ANY_URI, __FRAUD_BODY_WEBMAIL, __URI_NO_WWW, __SUBJ_ALPHA_NEGATE, __FORWARDED_MSG, BODY_SIZE_700_799, BODYTEXTP_SIZE_3000_LESS, __MIME_TEXT_ONLY, __URI_NS, HTML_00_01, HTML_00_10, BODY_SIZE_5000_LESS, __FRAUD_WEBMAIL, MULTIPLE_RCPTS, __PHISH_SPEAR_STRUCTURE_1, BODY_SIZE_1000_LESS, BODY_SIZE_2000_LESS, IN_REP_TO, REFERENCES, BODY_SIZE_7000_LESS, NO_URI_HTTPS, MSG_THREAD, __TO_REAL_NAMES, __CC_REAL_NAMES, LEGITIMATE_SIGNS, LEGITIMATE_NEG Original-Received: from qcore (83.58.75.30) by smtp.movistar.es (8.6.122.03) (authenticated as 981711563$telefonica.net) id 5746394E0336C775; Fri, 29 Jul 2016 19:01:36 +0000 In-Reply-To: (Richard Copley's message of "Fri, 29 Jul 2016 19:41:39 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) 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:121696 Archived-At: Richard Copley writes: > Here is a recipe. > > Prepare a file "test0.cpp" as follows: (< int main () { > int a = 0; > int b = 1; > int c = 2; > int d = 3; > } > END > > In a shell: cp test0.cpp test.cpp > In Emacs: visit test.cpp, transpose "line b" and "line c", save the > buffer, and put point between the transposed lines (i.e., at the > beginning of "line b"). > In the shell: cp test0.cpp test.cpp > In Emacs: revisit test.cpp (C-x f M-n RET). Great! I can reproduce here with `emacs -Q'. It is important to note that the `transpose' step above means `M-x transpose-lines' (or its corresponding shorcut). Transposing with C-k C-y invalidates the recipe.