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.bugs Subject: bug#72788: 30.0.50; multisession--ensure-db: =?UTF-8?Q?Symbol=E2=80=99s?= function definition is void: sqlite-open [2 times] Date: Sat, 07 Sep 2024 10:43:55 +0300 Message-ID: <868qw3zz5w.fsf@gnu.org> References: <86o75im5vz.fsf@gnu.org> <864j79madn.fsf@gnu.org> <86plppaswg.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3029"; mail-complaints-to="usenet@ciao.gmane.io" Cc: bugs@gnu.support, 72788-done@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Sep 07 09:45:14 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1smq89-0000dA-CE for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 07 Sep 2024 09:45:13 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1smq7z-0008Jg-RA; Sat, 07 Sep 2024 03:45:03 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1smq7y-0008Io-2Z for bug-gnu-emacs@gnu.org; Sat, 07 Sep 2024 03:45:02 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1smq7x-0008VQ-PT for bug-gnu-emacs@gnu.org; Sat, 07 Sep 2024 03:45:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-version:References:In-Reply-To:From:Date:To:Subject; bh=qVgkul3j/OslBZkkU8ziaJ5u7g/MwyseZt50rAV8eiE=; b=AZj2eZ5ykryNG/vh7p90cw8RwH750n3QNNWx91WzFSaHWB86uIRsFdi6ttfwcbIw5w7PIyucle1ShGaxkzALPUw+UNJxpGfXcJhrKH9Jrv50olglFKQZ6ozrB7Q3/Jc02aKyki2NZVmpgrhFtvarIaN/0eHKuO40PCoiX5kNdIiXmvgRu5VblKBlnFr2bMx3xhv6FxgM5H0fVPBxxEEZ4c/hjDI3xpS6HUh8gdboJRBa/ovMAzeC1NKyhZ1MmDX6AQc5wKQhE1DgQ3ucTDR0jBN4/6KA4jb1JUVSFI0yYuQEQCe2fST3orM1Foz9NErnB7H8c64foGil5P3dbHQGKQ==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1smq7y-0001mt-6k for bug-gnu-emacs@gnu.org; Sat, 07 Sep 2024 03:45:02 -0400 Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Sat, 07 Sep 2024 07:45:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 72788 X-GNU-PR-Package: emacs Mail-Followup-To: 72788@debbugs.gnu.org, eliz@gnu.org, bugs@gnu.support Original-Received: via spool by 72788-done@debbugs.gnu.org id=D72788.17256950456759 (code D ref 72788); Sat, 07 Sep 2024 07:45:01 +0000 Original-Received: (at 72788-done) by debbugs.gnu.org; 7 Sep 2024 07:44:05 +0000 Original-Received: from localhost ([127.0.0.1]:54715 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1smq73-0001kv-6P for submit@debbugs.gnu.org; Sat, 07 Sep 2024 03:44:05 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:52246) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1smq70-0001kK-F5 for 72788-done@debbugs.gnu.org; Sat, 07 Sep 2024 03:44:03 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1smq6u-0008SO-K5; Sat, 07 Sep 2024 03:43:56 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=qVgkul3j/OslBZkkU8ziaJ5u7g/MwyseZt50rAV8eiE=; b=a2wpHaOeOnK4d8wpbPfL Jmhx7twMbt2sqo07D66itLwHGtZiOLqvTOVZSTvSLYOoZXDYoBMigVBdHarsVGeYalSf3IAJaCHvj sDJ8JuwfuwXD50r9n9E5DTCOJfocYp7tmKHfju27AUbKZ4ta8ySLtk7AwA+2kb5UZbg/ZyMz1+lx3 3zdIwHgU8FP6VycrBJRILl8nKnUS/1sNPuRSqpQ4kTkiKZL4VcH+Ri92BoClyB2Qn9lPHNa0PZ/dO JNhiEm3eckPsrqCmMMkLVuWnyDHRmh25hH+Iqv8+tMs4Ln9mHUQHl1P1jrs+4lUqXRQURwaJu1qvC ggNBtB7PBdRUEg==; In-Reply-To: (message from Stefan Monnier on Sat, 31 Aug 2024 10:09:05 -0400) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:291360 Archived-At: > From: Stefan Monnier > Cc: Jean Louis , 72788@debbugs.gnu.org > Date: Sat, 31 Aug 2024 10:09:05 -0400 > > > Stefan, do we have a way of causing the cl-defmethod dispatch reject a > > method due to a failed predicate? The relevant method of > > multisession.el says: > > > > (cl-defmethod multisession-backend-value ((_type (eql 'sqlite)) object) > > > > How can I modify this (or its callers?) to make this implementation be > > called only if sqlite-available-p returns non-nil? > > AFAIK, the standard way to do that is: > > (cl-defmethod multisession-backend-value ((_type (eql 'sqlite)) object) > (if (not (sqlite-available-p)) > (cl-call-next-method) > ...do the usual thing...)) Thanks, now done on master, and closing the bug.