all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Vladimir Kazanov <vekazanov@gmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: [PATCH] Support for Sqlite Archive files
Date: Fri, 21 Jun 2024 22:48:06 +0300	[thread overview]
Message-ID: <86o77ujcw9.fsf@gnu.org> (raw)
In-Reply-To: <CAAs=0-2zoNXreK5XD8bRLz8cfh92wD_rqGsJdRSOFZvPbUZ71g@mail.gmail.com> (message from Vladimir Kazanov on Fri, 21 Jun 2024 20:42:07 +0100)

> From: Vladimir Kazanov <vekazanov@gmail.com>
> Date: Fri, 21 Jun 2024 20:42:07 +0100
> Cc: emacs-devel@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.

Why do it via arc-mode at all? why not directly via sqlite.c?  Also,
arc-mode can use internal methods as well, not only external
utilities.

> > 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 :-)

Including when the locale has non-UTF-8 codeset?

> > 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?

Unlikely, since Emacs 30 will not get new features anymore.  Sorry.



  reply	other threads:[~2024-06-21 19:48 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
2024-06-21 19:48     ` Eli Zaretskii [this message]
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

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

  git send-email \
    --in-reply-to=86o77ujcw9.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=vekazanov@gmail.com \
    /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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.