From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of text editors" 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, 31 Aug 2024 10:09:05 -0400 Message-ID: References: <86o75im5vz.fsf@gnu.org> <864j79madn.fsf@gnu.org> <86plppaswg.fsf@gnu.org> Reply-To: Stefan Monnier Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39660"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 72788@debbugs.gnu.org, Jean Louis To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Aug 31 16:10:26 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 1skOo5-000A2q-LW for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 31 Aug 2024 16:10:25 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1skOnm-0003n8-3v; Sat, 31 Aug 2024 10:10:06 -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 1skOnk-0003mw-BY for bug-gnu-emacs@gnu.org; Sat, 31 Aug 2024 10:10:04 -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 1skOnj-0007bx-UV for bug-gnu-emacs@gnu.org; Sat, 31 Aug 2024 10:10:04 -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:Date:References:In-Reply-To:From:To:Subject; bh=1AhyCU7Njgku/JgbRyxkzI7CdWc8i6RDm5psjBWda8E=; b=iQy95ciWKwt6W71T9eRUgmWi/dGWmepcu02bhPn2x4ygMm6RT6aZF0xbqwhbKYt8hfbgHwfdDvnKnElVjWKarICjIovNVpicpldT+C+Nb9MARbtowRAaOUgwfuIPlkI5dOcyBMIL+7wpwJ+qY/yEDWZ09D4xNytJ7MdV3rJAvIDxxsV3X7xujbWcbHcv0qG2BQAYb2rpnO86Q9JWT6vGvCevjyze5FONNnW3g2/PJxX0KZb2hq/q10hH2P/HiySK5sOXmADvia6WlrFhz518s7/uu6Bv+tRHorCQTM1DdpoSxdYpxY4OYHfQcr2Z/OIm2favOdj08vQRqlrgG/wTbA==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1skOog-0000TZ-1a for bug-gnu-emacs@gnu.org; Sat, 31 Aug 2024 10:11:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 31 Aug 2024 14:11:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 72788 X-GNU-PR-Package: emacs Original-Received: via spool by 72788-submit@debbugs.gnu.org id=B72788.17251134151751 (code B ref 72788); Sat, 31 Aug 2024 14:11:01 +0000 Original-Received: (at 72788) by debbugs.gnu.org; 31 Aug 2024 14:10:15 +0000 Original-Received: from localhost ([127.0.0.1]:55344 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1skOnv-0000SB-3u for submit@debbugs.gnu.org; Sat, 31 Aug 2024 10:10:15 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:25061) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1skOnt-0000Ru-3I for 72788@debbugs.gnu.org; Sat, 31 Aug 2024 10:10:13 -0400 Original-Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 66D5C442473; Sat, 31 Aug 2024 10:09:09 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1725113347; bh=ouzqnGy7j4n2sbyN4HdSM8AvDawKGG3BZlZ7AwJkEuU=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=ahZ/3tOiHD+sTR3f1Wfh37tDFcSpIkzHMuDp3uhfGMfZfYqcjnIgUs2bi7ba1D+lG O6/3RJRAfPoH5rs1nfWkLi5jvORclRCrrLLOP+xucXYfPvlN99hSFYc1nj/9mwZZpj i5u4HPUWKYEGm/Cg9iIgq9C/d/vMStFZAeM03Z/mfCGb57AzTuHJCybceIZqa483yi tHKrRLlhx9HXbIK7dLmp885t7TxtaDxAo/2f1b+p8HBmEmUfrTjQgFgCHGaZtC3RG2 PFw9HmpH0EbKtLg/5G8lpEDuBVjOu3Qd3troQwlq8tbqi7Z+vhZqnoR7rlYt1z0Tf+ Th7wYtbDg6IeQ== Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 7EB7A442234; Sat, 31 Aug 2024 10:09:07 -0400 (EDT) Original-Received: from pastel (unknown [216.154.9.87]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 4B6591202C3; Sat, 31 Aug 2024 10:09:07 -0400 (EDT) In-Reply-To: <86plppaswg.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 31 Aug 2024 13:27:59 +0300") 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:291019 Archived-At: > 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...)) > Btw, it looks like it's okay to have cl-defmethod without a > cl-defgeneric for the same method? Is that expected? Yes. It's a bit like having a `setq` on a global var without a matching `defvar`. Stefan