From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Rupert Swarbrick Newsgroups: gmane.emacs.bugs Subject: bug#36573: 26.1; bufferpos-to-filepos assumes coding-system-eol-type gives integer Date: Fri, 12 Jul 2019 16:14:33 +0100 Message-ID: <87o91zs2sm.fsf@halibut> References: <877e8q2mc7.fsf@halibut> Mime-Version: 1.0 Content-Type: text/plain; format=flowed Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="204312"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: mu4e 1.2.0; emacs 26.1 To: 36573@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jul 12 17:19:43 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 1hlxKh-000qhB-T7 for geb-bug-gnu-emacs@m.gmane.org; Fri, 12 Jul 2019 17:19:36 +0200 Original-Received: from localhost ([::1]:50468 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hlxGQ-0002pj-3W for geb-bug-gnu-emacs@m.gmane.org; Fri, 12 Jul 2019 11:15:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57742) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hlxGL-0002nF-FZ for bug-gnu-emacs@gnu.org; Fri, 12 Jul 2019 11:15:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hlxGK-0002p3-GC for bug-gnu-emacs@gnu.org; Fri, 12 Jul 2019 11:15:05 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:59972) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hlxGK-0002ox-CA for bug-gnu-emacs@gnu.org; Fri, 12 Jul 2019 11:15:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hlxGK-0002ke-4m for bug-gnu-emacs@gnu.org; Fri, 12 Jul 2019 11:15:04 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: <877e8q2mc7.fsf@halibut> Resent-From: Rupert Swarbrick Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 12 Jul 2019 15:15:04 +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.156294448510481 (code B ref 36573); Fri, 12 Jul 2019 15:15:04 +0000 Original-Received: (at 36573) by debbugs.gnu.org; 12 Jul 2019 15:14:45 +0000 Original-Received: from localhost ([127.0.0.1]:40559 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hlxG1-0002iy-1d for submit@debbugs.gnu.org; Fri, 12 Jul 2019 11:14:45 -0400 Original-Received: from mail-wr1-f67.google.com ([209.85.221.67]:41268) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hlxFx-0002ik-Ni for 36573@debbugs.gnu.org; Fri, 12 Jul 2019 11:14:42 -0400 Original-Received: by mail-wr1-f67.google.com with SMTP id c2so7161236wrm.8 for <36573@debbugs.gnu.org>; Fri, 12 Jul 2019 08:14:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=user-agent:from:to:subject:date:message-id:mime-version; bh=TvjAGjYa5rJS0NM7xKqYQ+z6WnLdt8iavxLguCIyPZA=; b=bN/EkNGMMwXXJ7voYathZ8ixqHwq2XrbBEFdCnCVp5GYKhwd59RUo2IfiiBM+jWK6T r4B0whQjlW6M0PsLu+Aows4lZ2EhQEpJ6LxbvgEVcE3FtzPpzyevvXsuaPKXROUgee7e S/CLXrMtWzKjF/WbBdsSO7W17D6zhxWUn+IEi525utIQR0xc3DaOdq/d3ClydibFlC0P 5npM8S1PLU0lk0b7Ed0wZ1pKRCA9LWIP2w/RkBhJ+XBexkx9GxqdM9dugECd645OQdXM y3fjSLRToXbESWzed1zQGkNfepTDEIRqg3wXmelINr8cAnuYqcIFqkAgXNqz2EW3Csee rarg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:user-agent:from:to:subject:date:message-id :mime-version; bh=TvjAGjYa5rJS0NM7xKqYQ+z6WnLdt8iavxLguCIyPZA=; b=l/vg9m1grkP0uLNUcnr3d62F9dPniXqwHDo58goEnScP/VnaB74hSRE9/z8VwHDQrj 0tBMAI0ly+WSUsAnHem6L9ZJbu9v6N6zPUHqkHFLL0d4wfz4WZkPuTxNv14d3lif/Zbz dy6K/uUvLBfIv3GtBDArKZDrGgnekRXrkYBuuai5Z7YdfxJgK/zG/X7LMKyjtSxJB4AG iMYDlAJeB0rbeml8K6FBNCegVlPLGtmH+AGiWThgreguyK1v7cGigExQk/gP2NRSNonm wmQRr2oJBb+FKWLwJ0vIeXD92Y9mHmzbN2HwSPbiMYV6xodlax2wSSm8zPJaDp4LrPaQ maPA== X-Gm-Message-State: APjAAAW6MGxgVhjNMMPvMzXZu6kvk1nzZYFmekuH2xpVetH3DzYiBW3R erj4FP/TuByuuNlcJGkogSqOOyU1 X-Google-Smtp-Source: APXvYqwoUhI6qwNu1huLT2tYfT9ms5Yc9ngQvlOIoDGLvyotJk2Edvk52kUZMNnnQeRGk7jJbhpUNQ== X-Received: by 2002:adf:cc85:: with SMTP id p5mr11590669wrj.47.1562944475685; Fri, 12 Jul 2019 08:14:35 -0700 (PDT) Original-Received: from halibut (static-87-74-63-74.vodafonexdsl.co.uk. [87.74.63.74]) by smtp.gmail.com with ESMTPSA id s10sm10701113wmf.8.2019.07.12.08.14.34 for <36573@debbugs.gnu.org> (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Fri, 12 Jul 2019 08:14:34 -0700 (PDT) Original-Received: from rupert by halibut with local (Exim 4.92) (envelope-from ) id 1hlxFp-00089S-A1 for 36573@debbugs.gnu.org; Fri, 12 Jul 2019 16:14:33 +0100 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:162785 Archived-At: 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)))) I can't remember why I had this setting, rather than the default value, but clearing it out means I can read the info manual again. 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. Rupert