X-Face
Face
Favicon

patch for rudybot @ #emacs


Hi!

I want to ignore certain users only in certain channels.  Yes, it's
specifically targetting rudybot in #emacs.  (rudybot is useful in
#scheme, but it's a PITA in #emacs).

So here is a "patch":

------------------------------------------------------------------------
(defcustom erc-ignore-per-channel-alist nil
  "*A-List of regexps matching user identifiers to ignore, for each channel.

Some users are obnoxious only in some channels (eg. rudybot on #emacs).

A user identifier has the form \"nick!login <at> host\".  If an
identifier matches, the message from the person will not be
processed."
  :group 'erc-ignore
  :type '(repeat (cons string regexp)))

(defcustom erc-ignore-per-channel-reply-alist nil
  "*A-List of regexps matching user identifiers to ignore completely, for each channel.

Some users are obnoxious only in some channels (eg. rudybot on #emacs).

This differs from `erc-ignore-list' in that it also ignores any
messages directed at the user.

A user identifier has the form \"nick!login <at> host\".
(Continue reading)

Sascha Wilde | 15 May 18:15
Picon

erc-cmd-LIST always sends an option

Hi *,

erc-cmd-LIST always sends LIST with an option.  If the user did not
specify an option an empty option is send.  To my understanding this is
standard conferment (though ugly).  But at least one widely used ircd
get confused by this behavior, see:
https://github.com/inspircd/inspircd/issues/120

So I propose the following patch:

--- erc-list.el Mon May 14 22:39:14 2012 +0200
+++ erc-list.el Tue May 15 18:10:26 2012 +0200
@@ -209,8 +209,10 @@
      321
      (list 'progn
         (list 'erc-list-install-322-handler (current-buffer)))))
-  (erc-server-send (concat "LIST :" (or (and line (substring line 1))
-                                    ""))))
+  (erc-server-send (concat "LIST" (or (and line 
+                                         (> (length (substring line 1)) 0)
+                                          (concat " :" (substring line 1)))
+                                     ""))))
 (put 'erc-cmd-LIST 'do-not-parse-args t)

This is erc v5.3 from GNU Emacs HEAD.

cheers
sascha
--

-- 
Sascha Wilde 
(Continue reading)

Sascha Wilde | 15 May 17:59
Picon

/list produces incomplete output: analysis and workaround

Hi *,

I discovered, that erc /list does not display all channels the server
announces: it turns out that visited and even channels already parted
are omitted.

The reason is, that the function to display the channels is added as
hook to erc-server-322-functions after erc-server-322.  But
erc-server-322 returns a non-NIL value when erc-update-channel-topic
succeeds on a channel -- which in turn leads to the following hook
functions not being called.

I'm not deep enough into the code to call it a solution -- but the
following simple workaround (which simply makes sure that erc-server-322
always returns NIL) seems to work:

--- erc-backend.el           2012-05-14    03:00:11.666556805 +0200
+++ erc-backend.el_patched   2012-05-15    17:48:13.064059897 +0200
@@ -1696,7 +1696,8 @@
     (multiple-value-bind (channel num-users)
         (values-list (cdr (erc-response.command-args parsed)))
       (add-to-list 'erc-channel-list (list channel))
-      (erc-update-channel-topic channel topic))))
+      (erc-update-channel-topic channel topic)))
+  nil)

 (defun erc-server-322-message (proc parsed)
   "Display a message for the 322 event."

cheers
(Continue reading)

jary_p | 14 Apr 10:08
Picon
Gravatar

handle urls like urlview

I want view the last 5 links in this buffer on another window and choose which to open
with firefox.

Can anyone help me complete this function, I'm don't know lisp and also
a Emacs newbie...

(defun my-urlview ()
  (interactive)
  (set-buffer (get-buffer-create "*urlview*"))
  (buffer-disable-undo)
  (erase-buffer)
  ...
  ...
  (switch-to-buffer-other-window "*urlview*")
  (local-set-key (kbd "q") (lambda ()
                             (interactive)
                             (bury-buffer)
                             (unless (null (cdr (window-list))) ; only one window
                               (delete-window)))))
Teemu Likonen | 10 Feb 15:20
Picon
Picon
Favicon

Make server response timestamp format customizable (patch)

ERC displays various server response messages with timestamps. The
timestamp formats that are hard-coded to ERC code have some unnecessary
variation. Also, it's sometimes even unclear what is the day component
and what is the month component (due to YY/MM or MM/YY differences).

I suggest making those server response timestamp formats customizable
and having the default value in international "%Y-%m-%d %T" format (as
parsed by `format-time-string' function).

This message includes a patch that fully implements this (I believe).

I have also filed this to Emacs bug tracking system:
http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10779

_______________________________________________
Erc-discuss mailing list
Erc-discuss <at> gnu.org
https://lists.gnu.org/mailman/listinfo/erc-discuss
Jim Meyering | 3 Feb 15:10

getting new-window/query indication in "ERC messages to you" window?

Hello,

Thank you for tending ERC.
I am a happy user, with one niggling request:

Is there a way to make it so when someone does the equivalent
of "/q <my_nick>" (which creates a new window for me), that I also
get some sort of notification in my "ERC messages to you" window?

I've had a few queries like that that I've missed, because while
I take care to keep the "ERC messages to you" window visible,
there may be many other sub-windows that are hidden.

Jim
Joseph Gay | 1 Feb 09:45
Picon

[PATCH 2/2] response handlers needed for SASL PLAIN authentication


---
 erc-sasl.el |   67 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 67 insertions(+), 0 deletions(-)
 create mode 100644 erc-sasl.el

diff --git a/erc-sasl.el b/erc-sasl.el
new file mode 100644
index 0000000..002be15
--- /dev/null
+++ b/erc-sasl.el
@@ -0,0 +1,67 @@
+;; erc-sasl.el -- handle SASL PLAIN authentication
+
+;; Copyright (C) 2001, 2002, 2003, 2004, 2006,
+;;   2007, 2008, 2009 Free Software Foundation, Inc.
+
+;; Author: Joseph Gay <joseph.gay <at> psy.ai>
+;; Keywords: comm
+
+;; This file is part of GNU Emacs.
+
+;; GNU Emacs is free software: you can redistribute it and/or modify
+;; it under the terms of the GNU General Public License as published by
+;; the Free Software Foundation, either version 3 of the License, or
+;; (at your option) any later version.
+
+;; GNU Emacs is distributed in the hope that it will be useful,
+;; but WITHOUT ANY WARRANTY; without even the implied warranty of
+;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
(Continue reading)

Peter Baranyi | 26 Nov 12:07
Picon

Re: buffer local erc-hide-list ?

On Wed, 2011-11-23 at 13:07 +0100, Giorgos Keramidas wrote:
> On Sun, Nov 20, 2011 at 5:08 PM, Peter Baranyi <peter.baranyi <at> gmail.com> wrote:
> > Hi,
> >
> > I'd like to use different erc-hide-list values for different channels.
> > If I'm on a public channel like #debian or #emacs, I don't want to see
> > any join/part/quit messages, while on a private channel with 2-3 people
> > it's good to see when someone leaves/joins.
> >
> > I tried to (make-variable-buffer-local 'erc-hide-list), but it does not
> > work, erc uses the global value.
> >
> > How can I accomplish this?
> 
> It probably requires modifying (erc-display-message) in erc.el.  The
> current function checks erc-hide-list but without making the target
> buffer the currently active buffer, so the buffer-local value of
> erc-hide-list is not taken into account:
> 
> ,-----------------------------------------------------------------------
> | (defun erc-display-message (parsed type buffer msg &rest args)
> |   "Display MSG in BUFFER.
> |
> | ARGS, PARSED, and TYPE are used to format MSG sensibly.
> |
> | See also ‘erc-format-message’ and ‘erc-display-line’."
> |   (let ((string (if (symbolp msg)
> |                     (apply ’erc-format-message msg args)
> |                   msg)))
> |     (setq string
(Continue reading)

Edward O'Connor | 25 Nov 18:29
Gravatar

Re: <space> to scroll to next page?

> I'm using erc on a linux text console. From Gnus and other emacs
> programs my fingers are used to scroll to the next page while reading
> by pressing <space>.
>
> Unfortunately I have to press <PageDown> when reading through an
> high traffic erc buffer.
>
> I would like the space bar to go down to next page unless the point
> is in the writable area of an erc buffer, where it should insert a space
> char.
>
> How do I do that?

This is how I do it:

(defun ted-erc-spc-dwim ()
  "DWIMmy behavior for the SPC key in ERC."
  (interactive)
  (condition-case nil (insert " ")
    (text-read-only
     (condition-case nil (scroll-up)
       (end-of-buffer (recenter 0))))))

(define-key erc-mode-map (kbd "SPC") 'ted-erc-spc-dwim)
Robert Epprecht | 24 Nov 14:24
Picon
Favicon

<space> to scroll to next page?

Hello

I'm using erc on a linux text console. From Gnus and other emacs
programs my fingers are used to scroll to the next page while reading
by pressing <space>.

Unfortunately I have to press <PageDown> when reading through an
high traffic erc buffer.

I would like the space bar to go down to next page unless the point
is in the writable area of an erc buffer, where it should insert a space
char.

How do I do that?

Thanks a lot,
Robert.
Peter Baranyi | 20 Nov 17:08
Picon

buffer local erc-hide-list ?

Hi,

I'd like to use different erc-hide-list values for different channels.
If I'm on a public channel like #debian or #emacs, I don't want to see
any join/part/quit messages, while on a private channel with 2-3 people
it's good to see when someone leaves/joins.

I tried to (make-variable-buffer-local 'erc-hide-list), but it does not
work, erc uses the global value.

How can I accomplish this?

Thanks.

Gmane