unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Vladimir Kazanov <vekazanov@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: [PATCH] Support for Sqlite Archive files
Date: Fri, 21 Jun 2024 20:42:07 +0100	[thread overview]
Message-ID: <CAAs=0-2zoNXreK5XD8bRLz8cfh92wD_rqGsJdRSOFZvPbUZ71g@mail.gmail.com> (raw)
In-Reply-To: <86ed8qlepr.fsf@gnu.org>

Thanks for looking into this!

On Fri, 21 Jun 2024 at 12:26, Eli Zaretskii <eliz@gnu.org> wrote:

> Thanks, but why do we need a cli utility when we have built-in SQLite
> support?  Can't we access the SQLite Archive files via that built-in
> support?  I'd prefer to have that instead of relying on external
> utility.

That's what I thought. I began exploring SQLite Archives in the
context of some other idea of mine related to buffers backed by
databases instead of files
(https://mail.gnu.org/archive/html/emacs-devel/2024-06/msg00344.html).

But it turns out that archive-mode has rather strong assumptions about
having to run external utilities. Nothing impossible but code-wise it
is just easier.

> In any case, the code you posted should at least bind
> coding-system-for-read and coding-system-for-write to utf-8 (and
> perhaps also file-name-coding-system if necessary), since AFAIU SQLite
> databases use UTF-8 encoding for text.  Suggest to try your code in a
> non-UTF-8 locale to see if it works or not.
>

Well, it works on all Linux flavours :-) Archive-mode expects default
system-wide file name encoding. I found a problem with archive file
names by forcing non utf-8 encodings.

Anyways, will fix it and try to come up with a test for the case.

>
> The doc string seems like a copy/paste mistake.

Got it.

> The version should be 31.1, I think (as Emacs 30 will start its
> release cycle very soon).

Can I make it in time for Emacs 30 by any chance?

-- 
Regards,

Vladimir Kazanov



  reply	other threads:[~2024-06-21 19:42 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-21 11:12 [PATCH] Support for Sqlite Archive files Vladimir Kazanov
2024-06-21 11:25 ` Eli Zaretskii
2024-06-21 19:42   ` Vladimir Kazanov [this message]
2024-06-21 19:48     ` Eli Zaretskii
2024-06-22  9:59       ` Vladimir Kazanov
2024-06-22 10:44         ` Eli Zaretskii
2024-06-22 15:05   ` Madhu
2024-06-22 16:23     ` Eli Zaretskii
2024-06-22 23:50       ` Björn Bidar
     [not found]       ` <877cegilkh.fsf@>
2024-06-23  5:15         ` Eli Zaretskii
2024-06-23  7:10           ` Madhu
2024-06-28  3:58           ` Richard Stallman
2024-06-28  4:24             ` tomas
2024-07-01  3:48               ` Richard Stallman
2024-06-28  4:37             ` Collin Funk

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAAs=0-2zoNXreK5XD8bRLz8cfh92wD_rqGsJdRSOFZvPbUZ71g@mail.gmail.com' \
    --to=vekazanov@gmail.com \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).