From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#25626: 25.1; doc of `bufferpos-to-filepos' for type `exact' Date: Sun, 05 Feb 2017 20:34:02 +0200 Message-ID: <83tw887ahx.fsf@gnu.org> References: <8d705983-882e-48fb-a171-3fa9f025ac4f@default> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1486319716 31418 195.159.176.226 (5 Feb 2017 18:35:16 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 5 Feb 2017 18:35:16 +0000 (UTC) Cc: 25626@debbugs.gnu.org To: Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Feb 05 19:35:09 2017 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 1caReX-0007nX-0I for geb-bug-gnu-emacs@m.gmane.org; Sun, 05 Feb 2017 19:35:09 +0100 Original-Received: from localhost ([::1]:44114 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1caRea-00014B-Nk for geb-bug-gnu-emacs@m.gmane.org; Sun, 05 Feb 2017 13:35:12 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53953) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1caReU-00012f-VJ for bug-gnu-emacs@gnu.org; Sun, 05 Feb 2017 13:35:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1caReQ-00059y-34 for bug-gnu-emacs@gnu.org; Sun, 05 Feb 2017 13:35:07 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:58664) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1caReQ-00059S-03 for bug-gnu-emacs@gnu.org; Sun, 05 Feb 2017 13:35:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1caReP-0000DW-QR for bug-gnu-emacs@gnu.org; Sun, 05 Feb 2017 13:35:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 05 Feb 2017 18:35:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25626 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 25626-submit@debbugs.gnu.org id=B25626.1486319663785 (code B ref 25626); Sun, 05 Feb 2017 18:35:01 +0000 Original-Received: (at 25626) by debbugs.gnu.org; 5 Feb 2017 18:34:23 +0000 Original-Received: from localhost ([127.0.0.1]:56863 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1caRdn-0000Cb-Dm for submit@debbugs.gnu.org; Sun, 05 Feb 2017 13:34:23 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:34695) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1caRdm-0000CP-98 for 25626@debbugs.gnu.org; Sun, 05 Feb 2017 13:34:22 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1caRdc-0004qP-7v for 25626@debbugs.gnu.org; Sun, 05 Feb 2017 13:34:17 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:37837) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1caRdc-0004qI-4z; Sun, 05 Feb 2017 13:34:12 -0500 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:3758 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1caRda-0008Bz-SR; Sun, 05 Feb 2017 13:34:11 -0500 In-reply-to: <8d705983-882e-48fb-a171-3fa9f025ac4f@default> (message from Drew Adams on Sun, 5 Feb 2017 09:20:13 -0800 (PST)) 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:128992 Archived-At: > Date: Sun, 5 Feb 2017 09:20:13 -0800 (PST) > From: Drew Adams > > The doc string says this: > > ‘exact’, in which case we may end up re-(en/de)coding a large > part of the file/buffer. > > And (elisp) `Text Representations' says this: > > ‘exact’ > The result must be accurate. The function may need to encode > and decode a large part of the buffer. > > If I understand the code right, I think both of these are misleading. > They can give the impression that the text in the region can have its > encoding changed in its buffer. I don't understand how you get that impression. You do know that encoding text and then decoding it back produces the same text as was there originally, right? This text simply says that this option might be computationally expensive.