unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: bugs@gnu.support, 72788-done@debbugs.gnu.org
Subject: bug#72788: 30.0.50; multisession--ensure-db: Symbol’s function definition is void: sqlite-open [2 times]
Date: Sat, 07 Sep 2024 10:43:55 +0300	[thread overview]
Message-ID: <868qw3zz5w.fsf@gnu.org> (raw)
In-Reply-To: <jwv5xrgrdku.fsf-monnier+emacs@gnu.org> (message from Stefan Monnier on Sat, 31 Aug 2024 10:09:05 -0400)

> From: Stefan Monnier <monnier@iro.umontreal.ca>
> Cc: Jean Louis <bugs@gnu.support>,  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.





  reply	other threads:[~2024-09-07  7:43 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-08-24  8:54 bug#72788: 30.0.50; multisession--ensure-db: Symbol’s function definition is void: sqlite-open [2 times] Jean Louis
2024-08-24 13:01 ` Eli Zaretskii
2024-08-24 21:59   ` Jean Louis
2024-08-25  5:36     ` Eli Zaretskii
2024-08-26  7:57       ` Jean Louis
2024-08-31 10:27         ` Eli Zaretskii
2024-08-31 14:09           ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-09-07  7:43             ` Eli Zaretskii [this message]
2024-08-26  7:57       ` Jean Louis
2024-08-31 10:28         ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=868qw3zz5w.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=72788-done@debbugs.gnu.org \
    --cc=bugs@gnu.support \
    --cc=monnier@iro.umontreal.ca \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).