From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#36573: 26.1; bufferpos-to-filepos assumes coding-system-eol-type gives integer Date: Thu, 12 Aug 2021 16:08:05 +0300 Message-ID: <83pmuidd56.fsf@gnu.org> References: <877e8q2mc7.fsf@halibut> <87o91zs2sm.fsf@halibut> <87eeazq0vz.fsf@gnus.org> <831r6zdqfg.fsf@gnu.org> <878s16n7qc.fsf@gnus.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2610"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 36573@debbugs.gnu.org, rswarbrick@gmail.com To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Aug 12 15:09:24 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 1mEAST-0000L5-Og for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 12 Aug 2021 15:09:17 +0200 Original-Received: from localhost ([::1]:47484 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mEASS-0001Mk-Pl for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 12 Aug 2021 09:09:16 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34678) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mEASH-0001LB-Jn for bug-gnu-emacs@gnu.org; Thu, 12 Aug 2021 09:09:06 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:54469) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mEASE-0007kg-7o for bug-gnu-emacs@gnu.org; Thu, 12 Aug 2021 09:09:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mEASD-0000iU-VR for bug-gnu-emacs@gnu.org; Thu, 12 Aug 2021 09:09: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: Thu, 12 Aug 2021 13:09:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 36573 X-GNU-PR-Package: emacs Original-Received: via spool by 36573-submit@debbugs.gnu.org id=B36573.16287737142718 (code B ref 36573); Thu, 12 Aug 2021 13:09:01 +0000 Original-Received: (at 36573) by debbugs.gnu.org; 12 Aug 2021 13:08:34 +0000 Original-Received: from localhost ([127.0.0.1]:37782 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mEARi-0000hj-F9 for submit@debbugs.gnu.org; Thu, 12 Aug 2021 09:08:34 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:54036) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mEARd-0000hP-JW for 36573@debbugs.gnu.org; Thu, 12 Aug 2021 09:08:29 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:36558) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mEARY-0007TY-D6; Thu, 12 Aug 2021 09:08:20 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:2637 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mEARX-0006Nw-VQ; Thu, 12 Aug 2021 09:08:20 -0400 In-Reply-To: <878s16n7qc.fsf@gnus.org> (message from Lars Ingebrigtsen on Thu, 12 Aug 2021 14:54:51 +0200) 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:211668 Archived-At: > From: Lars Ingebrigtsen > Cc: rswarbrick@gmail.com, 36573@debbugs.gnu.org > Date: Thu, 12 Aug 2021 14:54:51 +0200 > > Eli Zaretskii writes: > > > I think, since these cases are very rare, it should be okay to assume > > the -unix EOL type when this happens, and document that if this is the > > case, the result could be an approximation even if the exact result > > was requested. > > It is a rare odd corner case, but I think erroring out is a better > solution here than having to document this. :-) `exact' meaning > "exact" is easier conceptually. Fine with me, but I think we will still need to say in the doc string something like It is an error to request the `exact' method when the buffer's EOL format is not yet decided.