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, 31 Aug 2024 13:27:59 +0300 Message-ID: <86plppaswg.fsf@gnu.org> References: <86o75im5vz.fsf@gnu.org> <864j79madn.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="3731"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 72788@debbugs.gnu.org To: Jean Louis , Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Aug 31 12:29:24 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 1skLMB-0000nH-VB for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 31 Aug 2024 12:29:24 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1skLLy-0000yb-UK; Sat, 31 Aug 2024 06:29:10 -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 1skLLs-0000yC-On for bug-gnu-emacs@gnu.org; Sat, 31 Aug 2024 06:29:05 -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 1skLLs-0003FN-GA for bug-gnu-emacs@gnu.org; Sat, 31 Aug 2024 06:29: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:References:In-Reply-To:From:Date:To:Subject; bh=VkLA8oYr0eig49xBV6o68u3+wlYYzV7TRUEkOWdEfm4=; b=ZNplNVVNzL4V/dkmXqIlf0xyZdTLrWqSlRcD7eNdLlU6HQmhgzepcu63MiMSJVS0CC8UA9SxYMYM+nOBG9hwrDreEAqkcHXgbqs2IQO/GYE4950scEHRnRihoVXVlwSptSUO0yJybEx9QPazFgRGzZGVofv85SNfgoVf83oPQvf7cEZerRGsFrNFnVIsBMm8SQIC7+d25zGom38UaOQxI9Jnd+vBXKNidPXTPxTHWagZezB5CI3oHIHUwWiCoaKiMQfk98XPj71/OGkXMiZ/+FSdHJrm4c2K7b7Kw4GLpXKWXbZN8L5lh+Q++/3ptkfP4egyB2JAuJYcQ4WUmR0N4A==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1skLMo-00026J-CW for bug-gnu-emacs@gnu.org; Sat, 31 Aug 2024 06:30:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 31 Aug 2024 10:30:02 +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.17251001517964 (code B ref 72788); Sat, 31 Aug 2024 10:30:02 +0000 Original-Received: (at 72788) by debbugs.gnu.org; 31 Aug 2024 10:29:11 +0000 Original-Received: from localhost ([127.0.0.1]:54026 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1skLLz-00024N-65 for submit@debbugs.gnu.org; Sat, 31 Aug 2024 06:29:11 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:58908) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1skLLx-00024A-86 for 72788@debbugs.gnu.org; Sat, 31 Aug 2024 06:29:09 -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 1skLKv-00035F-KZ; Sat, 31 Aug 2024 06:28:05 -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=VkLA8oYr0eig49xBV6o68u3+wlYYzV7TRUEkOWdEfm4=; b=GafUpFwUFJKQE6vXduQ1 DmFUZJeBJir7gJoF/zT1s6/ZrCqSeMaoqTxq/edJ1Z7bSF5Ab46+VUhKJj1O9Eilk4cTACkQaSK4B 0qt7UiII2PsvyMvkq8UR+fKPZaMBNpzqlXjZNMgKJttU6zdgFZlKezPy6LQ8O9o37zsxDOryRCVIC Dtk8KSFO4eCPT3RtiLeqF8z3GJVjY1XzaStobQvmC1auNXRncDe/RU/4dALRPCSDbvo45X+KQcIXr lPZVaXMWl3TrVcfeZQt+YNDK1jQpqHMZQTTb8TTyCf4hgQNlFOnyFVP3nmc5JqmANR1ahoX0GUM09 4VUqpzIG5ms+9w==; In-Reply-To: (message from Jean Louis on Mon, 26 Aug 2024 10:57:43 +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:291004 Archived-At: > Date: Mon, 26 Aug 2024 10:57:43 +0300 > From: Jean Louis > Cc: 72788@debbugs.gnu.org > > * Eli Zaretskii [2024-08-25 08:38]: > > Did you customize multisession-storage to the value 'sqlite? The > > default is 'files. You cannot customize it to use 'sqlite if your > > Emacs doesn't have sqlite support (as it seems to be the case). > > Yes, it was customized that way. When I changed the operating system, > then the sqlite development library was not there. > > But if Emacs is trying to use sqlite functions, then it would be > better that program verifies if sqlite functions are there, and then > use default "files" as option. > > I have now compiled it with development libraries and it works again. 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? Btw, it looks like it's okay to have cl-defmethod without a cl-defgeneric for the same method? is that expected?