From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.bugs Subject: bug#16433: 24.3.50; find_newline screws up in Rmail buffers Date: Wed, 15 Jan 2014 07:29:05 -0500 Message-ID: References: <83r48b62ut.fsf@gnu.org> <837ga25uum.fsf@gnu.org> Reply-To: rms@gnu.org NNTP-Posting-Host: plane.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: ger.gmane.org 1389789005 22364 80.91.229.3 (15 Jan 2014 12:30:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 15 Jan 2014 12:30:05 +0000 (UTC) Cc: 16433@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jan 15 13:30:11 2014 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 1W3Pbn-0004Hv-G2 for geb-bug-gnu-emacs@m.gmane.org; Wed, 15 Jan 2014 13:30:11 +0100 Original-Received: from localhost ([::1]:54256 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W3Pbn-0001Vo-2K for geb-bug-gnu-emacs@m.gmane.org; Wed, 15 Jan 2014 07:30:11 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56965) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W3Pbg-0001Or-Ct for bug-gnu-emacs@gnu.org; Wed, 15 Jan 2014 07:30:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W3Pbf-000761-5W for bug-gnu-emacs@gnu.org; Wed, 15 Jan 2014 07:30:04 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:37105) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W3Pbf-00075q-37 for bug-gnu-emacs@gnu.org; Wed, 15 Jan 2014 07:30:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1W3Pbe-0006gH-BX for bug-gnu-emacs@gnu.org; Wed, 15 Jan 2014 07:30:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Richard Stallman Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 15 Jan 2014 12:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16433 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 16433-submit@debbugs.gnu.org id=B16433.138978895125578 (code B ref 16433); Wed, 15 Jan 2014 12:30:02 +0000 Original-Received: (at 16433) by debbugs.gnu.org; 15 Jan 2014 12:29:11 +0000 Original-Received: from localhost ([127.0.0.1]:51124 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W3Pao-0006eU-KR for submit@debbugs.gnu.org; Wed, 15 Jan 2014 07:29:10 -0500 Original-Received: from fencepost.gnu.org ([208.118.235.10]:49666) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W3Pal-0006eI-VG for 16433@debbugs.gnu.org; Wed, 15 Jan 2014 07:29:08 -0500 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1W3Paj-0006bR-W9; Wed, 15 Jan 2014 07:29:06 -0500 In-reply-to: <837ga25uum.fsf@gnu.org> (message from Eli Zaretskii on Tue, 14 Jan 2014 19:36:17 +0200) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:83528 Archived-At: [[[ To any NSA and FBI agents reading my email: please consider ]]] [[[ whether defending the US Constitution against all enemies, ]]] [[[ foreign or domestic, requires you to follow Snowden's example. ]]] > Sorry, no, I don't have a recipe. It was reproducible for the same > message, at that time, but I don't know a way to make it fail again. To reproduce it at that time, do you happen to remember what sequence of commands was needed? (mail-fetch-field "X-RMAIL-ATTRIBUTES") reproduced the bug, when it was happening. If and when it happens again, please try to look for editing operations that change buffer text (insert or delete characters), but do not invalidate the cache for the region where characters were inserted or deleted. I had not done any manual editing on the RMAIL buffer. It was operated on by Rmail commands. If you see what editing functions they call, you will see what I did to the RMAIL buffer. It's possible I decrypted it with rmail-epa-decrypt. > Perhaps buffer-swap-text should simply invalidate the cache. Could be, but just by looking at the code, it seems like buffer-swap-text does TRT, i.e. it swaps also the pointers to the cache. So maybe my guess was wrong, and some other factor is at work here. If it isn't obvious what is wrong, we need to fix this bug somehow. I am thinking of turning off the newline cache in Rmail mode. -- Dr Richard Stallman President, Free Software Foundation 51 Franklin St Boston MA 02110 USA www.fsf.org www.gnu.org Skype: No way! That's nonfree (freedom-denying) software. Use Ekiga or an ordinary phone call.