From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.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: Fri, 12 Jul 2019 21:17:47 +0300 Message-ID: <837e8n2k38.fsf@gnu.org> References: <877e8q2mc7.fsf@halibut> <87o91zs2sm.fsf@halibut> Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="182795"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 36573@debbugs.gnu.org To: Rupert Swarbrick Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jul 12 20:18:09 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hm07V-000lQ1-Oq for geb-bug-gnu-emacs@m.gmane.org; Fri, 12 Jul 2019 20:18:09 +0200 Original-Received: from localhost ([::1]:51726 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hm07U-0003jk-Iw for geb-bug-gnu-emacs@m.gmane.org; Fri, 12 Jul 2019 14:18:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52467) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hm07Q-0003jM-8p for bug-gnu-emacs@gnu.org; Fri, 12 Jul 2019 14:18:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hm07P-0008Sq-5D for bug-gnu-emacs@gnu.org; Fri, 12 Jul 2019 14:18:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:60123) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hm07O-0008SV-MR for bug-gnu-emacs@gnu.org; Fri, 12 Jul 2019 14:18:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hm07O-00014h-GV for bug-gnu-emacs@gnu.org; Fri, 12 Jul 2019 14:18:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 12 Jul 2019 18:18:02 +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.15629554814124 (code B ref 36573); Fri, 12 Jul 2019 18:18:02 +0000 Original-Received: (at 36573) by debbugs.gnu.org; 12 Jul 2019 18:18:01 +0000 Original-Received: from localhost ([127.0.0.1]:40711 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hm07N-00014S-1c for submit@debbugs.gnu.org; Fri, 12 Jul 2019 14:18:01 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:40070) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hm07M-00014H-2q for 36573@debbugs.gnu.org; Fri, 12 Jul 2019 14:18:00 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:45378) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hm07G-0008OW-Vu; Fri, 12 Jul 2019 14:17:55 -0400 Original-Received: from [176.228.60.248] (port=2103 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1hm07G-0006Y1-B5; Fri, 12 Jul 2019 14:17:54 -0400 In-reply-to: <87o91zs2sm.fsf@halibut> (message from Rupert Swarbrick on Fri, 12 Jul 2019 16:14:33 +0100) 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: 209.51.188.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:162796 Archived-At: > From: Rupert Swarbrick > Date: Fri, 12 Jul 2019 16:14:33 +0100 > > Thank you for the reply. I've now found the "culprit" (bisecting > my init.el starting with emacs -Q). The dubious setting was: > > '(file-coding-system-alist > (quote > (("\\.dz\\'" no-conversion . no-conversion) > ("\\.g?z\\(~\\|\\.~[0-9]+~\\)?\\'" no-conversion . > no-conversion) > ("\\.tgz\\'" no-conversion . no-conversion) > ("\\.tbz\\'" no-conversion . no-conversion) > ("\\.bz2\\(~\\|\\.~[0-9]+~\\)?\\'" no-conversion . > no-conversion) > ("\\.Z\\(~\\|\\.~[0-9]+~\\)?\\'" no-conversion . > no-conversion) > ("\\.elc\\'" emacs-mule . emacs-mule) > ("\\.utf\\(-8\\)?\\'" . utf-8) > ("\\(\\`\\|/\\)loaddefs.el\\'" raw-text . raw-text-unix) > ("\\.tar\\'" no-conversion . no-conversion) > ("\\.po[tx]?\\'\\|\\.po\\." . po-find-file-coding-system) > ("\\.lisp\\'" . utf-8-unix)))) Was the Info file compressed, i.e. did it have one of extensions that caused no-conversion to be used? > I think it probably still makes sense to add a note to the manual > for bufferpos-to-filepos and filepos-to-bufferpos to point out > that they don't work if the line ending convention is unknown. > > For bonus points, maybe it makes sense to add something to fail > earlier (and more understandably!) in the info reading code. I'm > not sure exactly where that would be, though. Yes, something should be done there, thanks.