[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: sqlite3
From: |
Eli Zaretskii |
Subject: |
Re: sqlite3 |
Date: |
Sat, 11 Dec 2021 13:33:45 +0200 |
> From: Lars Ingebrigtsen <larsi@gnus.org>
> Cc: emacs-devel@gnu.org
> Date: Sat, 11 Dec 2021 10:59:16 +0100
>
> I've added a `sqlite-mode-open-file' command, but perhaps it'd be nice
> to make `C-x C-f foo.sqlite3 RET' call that automatically?
Probably. But is .sqlite3 indeed the extension to use? I don't have
even a single .sqlite3 file on my system here, but gobs of *.sqlite
files.
> `auto-mode-alist' wouldn't be appropriate, I guess, since we don't want
> to load the files into Emacs... So is `file-name-handler-alist' still
> the way to handle stuff like that? I thought I vaguely remembered there
> being a simpler thing to handle just `find-file*' and friends, but
> grepping around, I can't see anything obvious.
AFAIK, all our auto-mode facilities assume we visit the file first.
I won't recommend using file-name handlers for this, as it could be
problematic for local files. How about reading just the few first
bytes of the file and recognizing its magic signature instead?
- Re: sqlite3, (continued)
- Re: sqlite3, tomas, 2021/12/10
- Re: sqlite3, Richard Stallman, 2021/12/10
- Re: sqlite3, Lars Ingebrigtsen, 2021/12/10
- Re: sqlite3, Richard Stallman, 2021/12/11
- Re: sqlite3, Lars Ingebrigtsen, 2021/12/11
- Re: sqlite3, Richard Stallman, 2021/12/12
- Re: sqlite3, Lars Ingebrigtsen, 2021/12/12
- Re: sqlite3, Georges Ko, 2021/12/12
- Re: sqlite3, Eli Zaretskii, 2021/12/11
- Re: sqlite3, Lars Ingebrigtsen, 2021/12/11
- Re: sqlite3,
Eli Zaretskii <=
- Re: sqlite3, Lars Ingebrigtsen, 2021/12/11
- Re: sqlite3, Pip Cet, 2021/12/11
- Re: sqlite3, Lars Ingebrigtsen, 2021/12/11
- Re: sqlite3, Alexandre Garreau, 2021/12/12
- Re: sqlite3, Lars Ingebrigtsen, 2021/12/12
- Re: sqlite3, Stefan Monnier, 2021/12/11
- Re: sqlite3, Juri Linkov, 2021/12/11
- Re: sqlite3, Lars Ingebrigtsen, 2021/12/11
- Re: sqlite3, Lars Ingebrigtsen, 2021/12/11
- Re: sqlite3, Juri Linkov, 2021/12/12