From: "J.P." <jp@neverwas.me>
To: 57955@debbugs.gnu.org
Cc: emacs-erc@gnu.org
Subject: bug#57955: 29.0.50; Allow session-local ERC modules
Date: Thu, 29 Feb 2024 16:25:08 -0800 [thread overview]
Message-ID: <87frxax0gr.fsf__42972.8047501825$1709252756$gmane$org@neverwas.me> (raw)
In-Reply-To: <87wmrcxdjf.fsf@neverwas.me> (J. P.'s message of "Sat, 10 Feb 2024 12:36:04 -0800")
"J.P." <jp@neverwas.me> writes:
> A new Emacs user recently complained about the lack of an example
> showing local modules being `let'-bound around calls to ERC's entry
> point functions in lisp code. Perhaps we should add such an example to
> the Modules chapter and also possibly update the "Multiple networks"
> example in Advanced > SASL to include a non-SASL connection:
>
> (defun my-erc-up (network)
> (interactive "Snetwork: ")
>
> (pcase network
> ('libera
> (let ((erc-modules (cons 'sasl erc-modules))
> (erc-sasl-mechanism 'external))
> (erc-tls :server "irc.libera.chat" :port 6697
> :client-certificate t)))
> ('example
> (let ((erc-modules (cons 'sasl erc-modules))
> (erc-sasl-auth-source-function
> #'erc-sasl-auth-source-password-as-host))
> (erc-tls :server "irc.example.net" :port 6697
> :user "alyssa"
> :password "Example.Net")))
> (_ (call-interactively #'erc-tls))))
I've added an example similar to this one.
next prev parent reply other threads:[~2024-03-01 0:25 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <8735cm2o2l.fsf@neverwas.me>
2022-10-26 13:16 ` bug#57955: 29.0.50; Allow session-local ERC modules J.P.
2022-11-15 15:07 ` J.P.
[not found] ` <877czww91p.fsf@neverwas.me>
2023-05-22 4:05 ` J.P.
2023-10-09 4:02 ` J.P.
[not found] ` <87o7h8jvet.fsf@neverwas.me>
2023-10-14 0:23 ` J.P.
[not found] ` <87edhy9hne.fsf@neverwas.me>
2023-10-18 13:36 ` J.P.
2024-02-10 20:36 ` J.P.
[not found] ` <87wmrcxdjf.fsf@neverwas.me>
2024-03-01 0:25 ` J.P. [this message]
2022-09-20 13:05 J.P.
2022-09-20 17:43 ` Michael Albinus
2022-09-21 13:15 ` J.P.
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='87frxax0gr.fsf__42972.8047501825$1709252756$gmane$org@neverwas.me' \
--to=jp@neverwas.me \
--cc=57955@debbugs.gnu.org \
--cc=emacs-erc@gnu.org \
/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).