From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#46933: Possible bugs in filepos-to-bufferpos / bufferpos-to-filepos Date: Tue, 21 Jun 2022 12:40:15 +0200 Message-ID: <877d5a1er4.fsf@gnus.org> References: <9cff0f8894f167925251@heytings.org> <87im53ny95.fsf@gnu.org> <87r13kqhdj.fsf@gnus.org> <838rprmu1f.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9894"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: handa@gnu.org, gregory@heytings.org, 46933@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jun 21 12:41:28 2022 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 1o3bK4-0002Oq-MB for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 21 Jun 2022 12:41:28 +0200 Original-Received: from localhost ([::1]:36424 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o3bK3-0001UP-1s for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 21 Jun 2022 06:41:27 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54944) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o3bJe-0001T2-B1 for bug-gnu-emacs@gnu.org; Tue, 21 Jun 2022 06:41:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:37059) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o3bJd-0007nF-Py for bug-gnu-emacs@gnu.org; Tue, 21 Jun 2022 06:41:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1o3bJd-0008Uc-O0 for bug-gnu-emacs@gnu.org; Tue, 21 Jun 2022 06:41:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 21 Jun 2022 10:41:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 46933 X-GNU-PR-Package: emacs Original-Received: via spool by 46933-submit@debbugs.gnu.org id=B46933.165580802732589 (code B ref 46933); Tue, 21 Jun 2022 10:41:01 +0000 Original-Received: (at 46933) by debbugs.gnu.org; 21 Jun 2022 10:40:27 +0000 Original-Received: from localhost ([127.0.0.1]:59189 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o3bJ4-0008TZ-Us for submit@debbugs.gnu.org; Tue, 21 Jun 2022 06:40:27 -0400 Original-Received: from quimby.gnus.org ([95.216.78.240]:43442) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o3bJ3-0008TM-Dt for 46933@debbugs.gnu.org; Tue, 21 Jun 2022 06:40:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=sS8HSj7+PCwTLrspGekm6T1yt4Q3gS34hJOsIRSAvSI=; b=Tscb5ZRz/3Dx4IbPdTcTmz0IdP Eijgk5vc9vtKEyJ5/sFtkRnKO82Zz4PySc5li915lDKTKY1vfsUguajb2UqDCwt1IUFy8kShELebS 0vv9wm55WXT9ZZd2cSqAOolCFDkoAjJ7MwcKyF8apZCQKMxyweguO6BAay6/zVSI8FbU=; Original-Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1o3bIt-00049Y-Nu; Tue, 21 Jun 2022 12:40:18 +0200 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAGFBMVEVYQzpmXViKe3BK LB8tIBqtnZQtGQ/////WlcnBAAAAAWJLR0QHFmGI6wAAAAd0SU1FB+YGFQomACoHBsAAAAGtSURB VDjLZVLLjoQgEGyXzZ6FZO4riXeTNtw3Eu87yXwBhP//hO0HIM52HEe7uooqEIDLWv4N5TxscJXl gQkmKw+mdmfgzlwnZtgQzcBSgGiA3MV/CPUYMYyYjVSnee6A3A0NTH2aFzaCIMa4iSfxoAwqoP7R kkxWgIh7pDYRADRBTUPt/cB4sOKYXVwJhJXgK1DDsa2upGpNAW59C2/vFzBXgltufcmqFO/8MgK3 01lugPN+fXF574c16F3bWs/lAmo1uOox4Flk9fRnPbVVD56vp33YeWVo5elV7hYsSTwWI5YdrVFd eLELHwaFv/rmzMkOfrhv8yNBWqLF8ul+Pl6/JfNuckTHHAIKVYKvohV7Qeuc5Sp+huGZ6kh8mDE2 IOkdk3wzMZ6ZgYT7KVhKgdq7LJHhLDnwONKVCmKIBxFilUKkK6G4yNyPJ3T1ELrBy24gfWwech4A ZmBBBa6AqQQWK2FIr0DgAEEZeQSKAEGAdA4A6VA4lcrvUiGNSzQpSt1j3LYdGQgyk+teKUNMDSkG KQ1XQt55u66AlUFHQJxMjqEenXhKZ+JtE6k/GJPjGhYGkLAAAAAldEVYdGRhdGU6Y3JlYXRlADIw MjItMDYtMjFUMTA6Mzg6MDArMDA6MDDSfmK0AAAAJXRFWHRkYXRlOm1vZGlmeQAyMDIyLTA2LTIx VDEwOjM4OjAwKzAwOjAwoyPaCAAAAABJRU5ErkJggg== X-Now-Playing: Depeche Mode's _A Broken Frame_: "Leaving In Silence" In-Reply-To: <838rprmu1f.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 20 Jun 2022 14:52:12 +0300") 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:234936 Archived-At: Eli Zaretskii writes: >> If I understand correctly, the suggestion here is to use this function >> in Info-find-node-2 instead of `filepos-to-bufferpos'? > > "Unless it's too slow". Let's see... > The original (and so far the only) use case was an Info manual > separated into several files, where the tag table at the end of the > main file specifies offsets in bytes. See the function > Info-find-node-2 in info.el. We no longer split up .info files into several files, so that's a bit difficult to test. But there's one new in-tree usage for this -- in hexl.el. (In hexl-mode-exit and hexl-maybe-dehexlify-buffer.) I don't know whether that has the problem described in this bug report, though (I'm not familiar with hexl.el at all). -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no