From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: sqlite3 Date: Sun, 12 Dec 2021 11:02:02 -0500 Message-ID: References: <87tufmjyai.fsf@gnus.org> <877dcil2sj.fsf@ericabrahamsen.net> <87czm98qi1.fsf@gnu.org> <87o85tcwm0.fsf@ericabrahamsen.net> <874k7ljwkr.fsf@gnus.org> <87fsr5cuzq.fsf@ericabrahamsen.net> <878rwx8mdn.fsf@gnu.org> <87r1aphuei.fsf@gnus.org> <837dcex6ub.fsf@gnu.org> <83a6h9tu1c.fsf@gnu.org> <83mtl7r1c5.fsf@gnu.org> <87fsqzihsb.fsf@gnus.org> <87wnkah1zy.fsf@gnus.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="739"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: Eli Zaretskii , emacs-devel@gnu.org To: Lars Ingebrigtsen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Dec 12 17:03:58 2021 Return-path: Envelope-to: ged-emacs-devel@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 1mwRKP-000AYK-Jc for ged-emacs-devel@m.gmane-mx.org; Sun, 12 Dec 2021 17:03:57 +0100 Original-Received: from localhost ([::1]:52422 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mwRKO-0003KZ-2c for ged-emacs-devel@m.gmane-mx.org; Sun, 12 Dec 2021 11:03:56 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:59924) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mwRIq-0002bm-4f for emacs-devel@gnu.org; Sun, 12 Dec 2021 11:02:20 -0500 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:50216) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mwRIm-0004r7-V4; Sun, 12 Dec 2021 11:02:19 -0500 Original-Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 58C5C440B3E; Sun, 12 Dec 2021 11:02:14 -0500 (EST) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 1E3CE440671; Sun, 12 Dec 2021 11:02:13 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1639324933; bh=67RUbJIVu8UgpeaKynKMxgY+ptWkGSJVcg3298h/UGg=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=XM8se+ldtQj7QE6L0Dvb1RQ9MNRhy7CfN7AOQFt4225PZH/xU5IN88nor809TQKKB h42eBaqg484Vj2YlROgKLbAPNH2M2NHp2FcT9+/uR7H7+LNBADUw1qs48h/w1/i5Qb p17YB5EqMqqaAanNFkEwuFPy10neJUg/+rK5qcM64iv8DlOdjTKQ67E+PtmNgCNWPB PvO8a0VC8U/MgX0WHzz1wTzH1i/lONmJM3zx5NVvmdosK6p60M6m6NVz/pp+8xkADW yNNYGcLfP9tkAd/SLoIjkf0pMuZ0Mx/SfLXDolm7vF52V9sAfCzerKWxabgrZWFrLh RYQ+Dhn4+jzTA== Original-Received: from pastel (unknown [216.154.30.173]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id D3C9312019C; Sun, 12 Dec 2021 11:02:12 -0500 (EST) In-Reply-To: <87wnkah1zy.fsf@gnus.org> (Lars Ingebrigtsen's message of "Sun, 12 Dec 2021 05:37:53 +0100") Received-SPF: pass client-ip=132.204.25.50; envelope-from=monnier@iro.umontreal.ca; helo=mailscanner.iro.umontreal.ca X-Spam_score_int: -42 X-Spam_score: -4.3 X-Spam_bar: ---- X-Spam_report: (-4.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:281802 Archived-At: > So perhaps the way to make this workable, we should introduce a new > thing that short-circuits most of the logic in... `find-file-noselect'? > Like a `special-file-alist' (with the same syntax as `auto-mode-alist') > that calls out to functions to interpret the file and present us with a > buffer in the correct mode. Something like that, yes. Modulo visiting "literally", tho. And maybe it might be worthwhile to have a way for those special files to "fallthrough" to the usual behavior in case something happens. > The buffer returned shouldn't be visiting the file, I guess? I think it should. > Because we don't want to accidentally overwrite the file contents, > since what we're displaying in the buffer is just a view into the > file, and not the file itself. That's the responsibility of the special handler. Stefan