erc-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Erc-discuss] Re: autoconnecting to servers


From: Michael Olson
Subject: [Erc-discuss] Re: autoconnecting to servers
Date: Sun, 14 Jan 2007 20:25:17 -0500
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.92 (gnu/linux)

Angelina Carlton <address@hidden> writes:

> Michael Olson <address@hidden> writes:
>> I've checked in my changes to the Emacs arch tree, so they should hit
>> CVS soon.
>
> Hi again,
> I saw a new snapshot arrive today so I attempted to use the new changes
> in backend.el.
> The connection to Ars still crashed emacs but I had set:
>       erc-server-auto-reconnect t
>       erc-server-reconnect-timeout 5
>       erc-server-reconnect-attempts 2
> in my-erc.el (http://bzgirl.org/conf/my-erc.el)

I'm not sure why this is happening, because I can't replicate the
behavior here.  There are a couple of issues with your config that
might be causing it.  If these don't help, please describe in more
detail what is meant by "crashed emacs" -- do you mean that Emacs
locks up?  Can it be interrupted with C-g?  Is something being
displayed on the screen in the "irc.arstechnica.org" buffer? etc.

1. Don't do:

;; freenode
(setq erc-server              "chat.freenode.net"
      erc-port                "6667"
      erc-user-full-name      "http://bzgirl.org";
      erc-nick                "orchid"
      erc-email-userid        "address@hidden")

for each channel.  This has no effect.  Do the following instead.

;; applies to call IRC connections
(setq erc-email-userid "bzgirl"
      ;; see point #2 below for an explanation of erc-system-name
      erc-system-name "gmail.com")

(defun my-erc ()
  "Connect to IRC."
  (interactive)
  (when (y-or-n-p "waste some time? ")
     (erc :server "chat.freenode.net" :port "6667"
          :nick "orchid" :full-name "http://bzgirl.org";)
     ... ; and so on, for each connection
  ))

2. Putting a hostname (the @gmail.com part) in erc-email-userid is
invalid.  Put just the "bzgirl" part in there.  I've checked in some
changes to Emacs 22 recently that allow you to specify the machine
name with (setq erc-system-name "gmail.com"), so use that instead.

> When I tried C-h v erc-server-reconnect-timeout, the help for the
> variable was displayed, but clicking on `backend.el' with the intent to
> read it gave me: Can't find library erc-backend.el
>
> Is it possible backend.el is not being loaded?

I don't think that it's possible.

-- 
Michael Olson -- FSF Associate Member #652 -- http://www.mwolson.org/
Interests: Lisp, text markup, protocols -- Jabber: mwolson_at_hcoop.net
  /` |\ | | | Projects: Emacs, Muse, ERC, EMMS, Planner, ErBot, DVC
 |_] | \| |_| Reclaim your digital rights by eliminating DRM.
      See http://www.defectivebydesign.org/what_is_drm for details.

Attachment: pgp2h6Vyqvs7C.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]