GNU bug report logs - #78750
Add archive-visit-inner-file function

Previous Next

Package: emacs;

Reported by: Kenta USAMI <zonuexe <at> zonu.me>

Date: Tue, 10 Jun 2025 17:20:03 UTC

Severity: normal

Full log


View this message in rfc822 format

From: Eli Zaretskii <eliz <at> gnu.org>
To: zonuexe <at> zonu.me
Cc: 78750 <at> debbugs.gnu.org
Subject: bug#78750: Add archive-visit-inner-file function
Date: Sat, 26 Jul 2025 11:39:52 +0300
Ping! Ping! Ping! Kenta USAMI, are you there?

> Cc: 78750 <at> debbugs.gnu.org
> Date: Sat, 12 Jul 2025 09:56:19 +0300
> From: Eli Zaretskii <eliz <at> gnu.org>
> 
> Ping! Ping!  Kenta USAMI, could you please chime in?
> 
> > Cc: 78750 <at> debbugs.gnu.org
> > Date: Sat, 28 Jun 2025 12:11:44 +0300
> > From: Eli Zaretskii <eliz <at> gnu.org>
> > 
> > Ping!  Kenta USAMI, would you please respond, so we could make further
> > progress with this issue?
> > 
> > > Cc: 78750 <at> debbugs.gnu.org
> > > Date: Wed, 11 Jun 2025 15:13:36 +0300
> > > From: Eli Zaretskii <eliz <at> gnu.org>
> > > 
> > > > From: Kenta USAMI <zonuexe <at> zonu.me>
> > > > Date: Wed, 11 Jun 2025 02:18:42 +0900
> > > > 
> > > > Currently, a buffer for an archive file can be opened by selecting the
> > > > entry from archive-mode, but there is no way to access it from Lisp
> > > > without manually selecting the entry.
> > > > 
> > > > An API like archive-visit-inner-file, introduced in this patch, would be
> > > > useful to implement the ability to directly access an archive entry.
> > > 
> > > Thanks, sounds useful.  AFAIU, this will work with any archive
> > > supported by arc-mode.el?
> > > 
> > > > My use case is to be able to jump directly to classes and functions
> > > > defined in PHP scripts stored inside a Phar archive file.
> > > > 
> > > > - https://github.com/emacs-php/archive-phar.el
> > > > - https://www.php.net/manual/en/book.phar.php
> > > > 
> > > > I'm not hung up on the function names or detailed API of this patch.
> > > 
> > > Why do we need to have "inner" in the name?  Can we call this API
> > > archive-find-file instead?
> > > 
> > > Also, would you mind to add one or more tests for this API?
> > > 
> > > 
> > > 
> > > 
> > 
> > 
> > 
> > 
> 
> 
> 
> 




This bug report was last modified 41 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.