From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#5440: 23.1; buffer-file-format encoding temp buffers not reentrant Date: Mon, 25 Jul 2016 19:35:41 +0300 Message-ID: <83shuxu142.fsf@gnu.org> References: <87sk9z3vt2.fsf@blah.blah> <838twvysl2.fsf@gnu.org> <83twfft8ny.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1469464653 4717 80.91.229.3 (25 Jul 2016 16:37:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 25 Jul 2016 16:37:33 +0000 (UTC) Cc: 5440@debbugs.gnu.org, user42@zip.com.au To: Andrew Hyatt Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jul 25 18:37:20 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 1bRisY-0000lU-40 for geb-bug-gnu-emacs@m.gmane.org; Mon, 25 Jul 2016 18:37:18 +0200 Original-Received: from localhost ([::1]:33494 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bRisU-0001ON-AN for geb-bug-gnu-emacs@m.gmane.org; Mon, 25 Jul 2016 12:37:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51819) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bRisL-0001MN-7h for bug-gnu-emacs@gnu.org; Mon, 25 Jul 2016 12:37:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bRisI-0006Ja-2L for bug-gnu-emacs@gnu.org; Mon, 25 Jul 2016 12:37:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:53022) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bRisH-0006JW-VD for bug-gnu-emacs@gnu.org; Mon, 25 Jul 2016 12:37:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bRisH-0002iX-Mg for bug-gnu-emacs@gnu.org; Mon, 25 Jul 2016 12:37:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 25 Jul 2016 16:37:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 5440 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 5440-submit@debbugs.gnu.org id=B5440.146946456810374 (code B ref 5440); Mon, 25 Jul 2016 16:37:01 +0000 Original-Received: (at 5440) by debbugs.gnu.org; 25 Jul 2016 16:36:08 +0000 Original-Received: from localhost ([127.0.0.1]:37125 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bRirP-0002hG-NO for submit@debbugs.gnu.org; Mon, 25 Jul 2016 12:36:07 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:60568) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bRirL-0002gk-MN for 5440@debbugs.gnu.org; Mon, 25 Jul 2016 12:36:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bRirD-00065z-Cg for 5440@debbugs.gnu.org; Mon, 25 Jul 2016 12:35:58 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:53130) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bRirD-00065t-9K; Mon, 25 Jul 2016 12:35:55 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:4842 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1bRirC-0005xa-9g; Mon, 25 Jul 2016 12:35:54 -0400 In-reply-to: (message from Andrew Hyatt on Mon, 25 Jul 2016 00:07:50 -0400) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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:121522 Archived-At: > From: Andrew Hyatt > Cc: user42@zip.com.au, 5440@debbugs.gnu.org > Date: Mon, 25 Jul 2016 00:07:50 -0400 > > diff --git a/doc/lispref/files.texi b/doc/lispref/files.texi > index f3650a4..5763380 100644 > --- a/doc/lispref/files.texi > +++ b/doc/lispref/files.texi Thanks. A couple of comments: > @@ -3238,7 +3238,9 @@ Format Conversion Round-Trip > > One responsibility of @var{from-fn} is to make sure that the beginning > of the file no longer matches @var{regexp}. Otherwise it is likely to > -get called again. > +get called again. Also, @var{from-fn} must not involve other buffers or > +files other than the one being decoded One of these 2 "others" should be deleted, I think. > or else formatting may happen > +during formatting, leading to incorrect results. I would say something like otherwise the internal buffer used for formatting might be overwritten. > +@var{to-fn} must not involve other buffers or files other than the one > +being encoded, or else formatting may happen during formatting, > +leading to incorrect results. Same here.