From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: sqlite3 Date: Sun, 19 Dec 2021 13:20:38 +0200 Message-ID: <83v8zk96yh.fsf@gnu.org> References: <87tufmjyai.fsf@gnus.org> <87mtl13vz2.fsf@gnus.org> <87ilvp3tzo.fsf@gnus.org> <83wnk5gduf.fsf@gnu.org> <87r1ab1y0r.fsf@gnus.org> <83sfurejs6.fsf@gnu.org> <871r2b1vu8.fsf@gnus.org> <83o85feitv.fsf@gnu.org> <87lf0jzifm.fsf@gnus.org> <83a6gze705.fsf@gnu.org> <87k0g2xsu9.fsf@gnus.org> <871r2axqp4.fsf@gnus.org> <83sfuqb5yo.fsf@gnu.org> <87fsqoyiao.fsf@gnus.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25059"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Lars Ingebrigtsen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Dec 19 12:22:21 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 1myuGi-0006HI-Pu for ged-emacs-devel@m.gmane-mx.org; Sun, 19 Dec 2021 12:22:20 +0100 Original-Received: from localhost ([::1]:36192 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1myuGh-0001Gy-6V for ged-emacs-devel@m.gmane-mx.org; Sun, 19 Dec 2021 06:22:19 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:47210) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1myuFK-0000TD-W7 for emacs-devel@gnu.org; Sun, 19 Dec 2021 06:20:55 -0500 Original-Received: from [2001:470:142:3::e] (port=58858 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1myuFK-0006iT-My; Sun, 19 Dec 2021 06:20:54 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=CeSc9wmuysA4yvceLDYYHHjBpMr34vCOy3m8y4Ze/j0=; b=nKEtsWSwq0fg w1AwXpkTgCnFss6Ab2DSbN22hCdYPO+a5smSkkRuZ2mBtCDhEa/RpNO1f+Nvh+lCne5fcOO7BmsAl DFD3TstqWA+GKWXGa8VI35dj3QhHh/0lWXQ7kD3eq5ctegqP+8prXDfjiRD7PY4RyvKalRHT5u+ao bByYZ8Fe4pHm6S+gYfaG9jJSt94t6yF3LvZSMoxjyvC9fezanT1qVlTSzquJfZ3QfTUS3j6a6MgM1 9IeWmHW4StLt+X86ka4+OROq/2XXTjjdkFJ8ZamwdWX461eyBesr62JPY8zF/qULdZ8fWTODQoHiE chRQmcBRpyi8qMgVj5j8Zw==; Original-Received: from [87.69.77.57] (port=2694 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1myuFD-0005z3-G1; Sun, 19 Dec 2021 06:20:51 -0500 In-Reply-To: <87fsqoyiao.fsf@gnus.org> (message from Lars Ingebrigtsen on Sun, 19 Dec 2021 11:56:31 +0100) 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:282410 Archived-At: > From: Lars Ingebrigtsen > Cc: emacs-devel@gnu.org > Date: Sun, 19 Dec 2021 11:56:31 +0100 > > >> Also -- it would be better to catch just the "Permission denied" error > >> instead of all file errors in the `condition-case' -- but I guess we > >> don't signal a more specific error for that? > > > > Yes, we do: write-region calls report_file_errno, which includes the > > specific error in the error data. > > You mean in the string "Permission denied"? Can we rely on that not > being localised? (Looking at the Windows code, it seems like we're > making the string ourselves, but is that also the case on other systems?) We could invent a new symbol for EACCES (like 'file-missing' for ENOENT we already have), and return that instead in this case, instead of the general 'file-error'.