aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiles Bader2006-04-11 22:09:49 +0000
committerMiles Bader2006-04-11 22:09:49 +0000
commit21bc768b9b693f97940c56b9f4e80b9a7f486e34 (patch)
treea6d7a3291d08d2e4428ae1ef39b6eed9288037e1
parente2db3e59a8b85158ad7740d01c8c47fe9a16bdf1 (diff)
downloademacs-21bc768b9b693f97940c56b9f4e80b9a7f486e34.tar.gz
emacs-21bc768b9b693f97940c56b9f4e80b9a7f486e34.zip
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-208
Creator: Michael Olson <mwolson@gnu.org> Sync from erc--emacs--0
-rw-r--r--lisp/erc/ChangeLog20
-rw-r--r--lisp/erc/erc-backend.el14
-rw-r--r--lisp/erc/erc-ezbounce.el2
-rw-r--r--lisp/erc/erc-join.el4
-rw-r--r--lisp/erc/erc-netsplit.el5
-rw-r--r--lisp/erc/erc.el12
6 files changed, 36 insertions, 21 deletions
diff --git a/lisp/erc/ChangeLog b/lisp/erc/ChangeLog
index 67799d73049..49b274b5149 100644
--- a/lisp/erc/ChangeLog
+++ b/lisp/erc/ChangeLog
@@ -1,3 +1,23 @@
12006-04-05 Diane Murray <disumu@x3y2z1.net>
2
3 * erc.el (erc-cmd-SV): Removed the exclamation point. Show the
4 build date as it's shown in `emacs-version'.
5
6 * erc-capab.el (erc-capab-identify-add-prefix): Insert the prefix
7 with the same face property as the previous character.
8
92006-04-02 Michael Olson <mwolson@gnu.org>
10
11 * erc-backend.el, erc-ezbounce.el, erc-join.el, erc-netsplit.el,
12 erc.el: Make sure to include a newline inside of negated classes,
13 so that a newline is not matched.
14
152006-04-01 Michael Olson <mwolson@gnu.org>
16
17 * erc-backend.el (erc-server-connect-function): Don't try to
18 detect the existence of the `open-network-stream-nowait' function,
19 since I can't find it in Emacs21, XEmacs21, or Emacs22.
20
12006-03-26 Michael Olson <mwolson@gnu.org> 212006-03-26 Michael Olson <mwolson@gnu.org>
2 22
3 * erc.el (erc-header-line): New face that will be used to colorize 23 * erc.el (erc-header-line): New face that will be used to colorize
diff --git a/lisp/erc/erc-backend.el b/lisp/erc/erc-backend.el
index a99af9dea64..3ea0f74eed7 100644
--- a/lisp/erc/erc-backend.el
+++ b/lisp/erc/erc-backend.el
@@ -312,13 +312,7 @@ alist."
312 :type '(repeat (cons (string :tag "Target") 312 :type '(repeat (cons (string :tag "Target")
313 coding-system))) 313 coding-system)))
314 314
315(defcustom erc-server-connect-function 315(defcustom erc-server-connect-function 'open-network-stream
316 (if (and (fboundp 'open-network-stream-nowait)
317 ;; CVS Emacs claims to define open-network-stream-nowait on
318 ;; windows, however, it does, in fact, not work.
319 (not (memq system-type '(windows-nt cygwin ms-dos darwin))))
320 'open-network-stream-nowait
321 'open-network-stream)
322 "Function used to initiate a connection. 316 "Function used to initiate a connection.
323It should take same arguments as `open-network-stream' does." 317It should take same arguments as `open-network-stream' does."
324 :group 'erc-server 318 :group 'erc-server
@@ -762,10 +756,10 @@ PROCs `process-buffer' is `current-buffer' when this function is called."
762 (substring string 1 posn))) 756 (substring string 1 posn)))
763 757
764 (setf (erc-response.command msg) 758 (setf (erc-response.command msg)
765 (let* ((bposn (string-match "[^ ]" string posn)) 759 (let* ((bposn (string-match "[^ \n]" string posn))
766 (eposn (string-match " " string bposn))) 760 (eposn (string-match " " string bposn)))
767 (setq posn (and eposn 761 (setq posn (and eposn
768 (string-match "[^ ]" string eposn))) 762 (string-match "[^ \n]" string eposn)))
769 (substring string bposn eposn))) 763 (substring string bposn eposn)))
770 764
771 (while (and posn 765 (while (and posn
@@ -773,7 +767,7 @@ PROCs `process-buffer' is `current-buffer' when this function is called."
773 (push (let* ((bposn posn) 767 (push (let* ((bposn posn)
774 (eposn (string-match " " string bposn))) 768 (eposn (string-match " " string bposn)))
775 (setq posn (and eposn 769 (setq posn (and eposn
776 (string-match "[^ ]" string eposn))) 770 (string-match "[^ \n]" string eposn)))
777 (substring string bposn eposn)) 771 (substring string bposn eposn))
778 (erc-response.command-args msg))) 772 (erc-response.command-args msg)))
779 (when posn 773 (when posn
diff --git a/lisp/erc/erc-ezbounce.el b/lisp/erc/erc-ezbounce.el
index 48395bf1dab..d04fe782f7e 100644
--- a/lisp/erc/erc-ezbounce.el
+++ b/lisp/erc/erc-ezbounce.el
@@ -139,7 +139,7 @@ in the alist is `nil', prompt for the appropriate values."
139(defun erc-ezb-add-session (message) 139(defun erc-ezb-add-session (message)
140 "Add an EZBounce session to the session list." 140 "Add an EZBounce session to the session list."
141 (when (and erc-ezb-inside-session-listing 141 (when (and erc-ezb-inside-session-listing
142 (string-match "^\\([^ ]+\\) +\\([^ ]+\\) +\\([^ ]+\\) +\\([^ ]+\\)$" message)) 142 (string-match "^\\([^ \n]+\\) +\\([^ \n]+\\) +\\([^ \n]+\\) +\\([^ \n]+\\)$" message))
143 (let ((id (match-string 1 message)) 143 (let ((id (match-string 1 message))
144 (nick (match-string 2 message)) 144 (nick (match-string 2 message))
145 (to (match-string 3 message))) 145 (to (match-string 3 message)))
diff --git a/lisp/erc/erc-join.el b/lisp/erc/erc-join.el
index 0d2c1f98706..86b79c538f1 100644
--- a/lisp/erc/erc-join.el
+++ b/lisp/erc/erc-join.el
@@ -92,7 +92,7 @@ servers, presumably in the same domain."
92 (or erc-server-announced-name erc-session-server)))) 92 (or erc-server-announced-name erc-session-server))))
93 (when (erc-current-nick-p nick) 93 (when (erc-current-nick-p nick)
94 (when (and erc-autojoin-domain-only 94 (when (and erc-autojoin-domain-only
95 (string-match "[^.]+\\.\\([^.]+\\.[^.]+\\)$" server)) 95 (string-match "[^.\n]+\\.\\([^.\n]+\\.[^.\n]+\\)$" server))
96 (setq server (match-string 1 server))) 96 (setq server (match-string 1 server)))
97 (let ((elem (assoc server erc-autojoin-channels-alist))) 97 (let ((elem (assoc server erc-autojoin-channels-alist)))
98 (if elem 98 (if elem
@@ -115,7 +115,7 @@ servers, presumably in the same domain."
115 (or erc-server-announced-name erc-session-server)))) 115 (or erc-server-announced-name erc-session-server))))
116 (when (erc-current-nick-p nick) 116 (when (erc-current-nick-p nick)
117 (when (and erc-autojoin-domain-only 117 (when (and erc-autojoin-domain-only
118 (string-match "[^.]+\\.\\([^.]+\\.[^.]+\\)$" server)) 118 (string-match "[^.\n]+\\.\\([^.\n]+\\.[^.\n]+\\)$" server))
119 (setq server (match-string 1 server))) 119 (setq server (match-string 1 server)))
120 (let ((elem (assoc server erc-autojoin-channels-alist))) 120 (let ((elem (assoc server erc-autojoin-channels-alist)))
121 (when elem 121 (when elem
diff --git a/lisp/erc/erc-netsplit.el b/lisp/erc/erc-netsplit.el
index a982b5e7c7e..72e7b8bbd7f 100644
--- a/lisp/erc/erc-netsplit.el
+++ b/lisp/erc/erc-netsplit.el
@@ -64,7 +64,8 @@ sever buffer."
64 :group 'erc-netsplit 64 :group 'erc-netsplit
65 :type 'boolean) 65 :type 'boolean)
66 66
67(defcustom erc-netsplit-regexp "^[^ @!\"]+\\.[^ @!]+ [^ @!]+\\.[^ @!\"]+$" 67(defcustom erc-netsplit-regexp
68 "^[^ @!\"\n]+\\.[^ @!\n]+ [^ @!\n]+\\.[^ @!\"\n]+$"
68 "This regular expression should match quit reasons produced 69 "This regular expression should match quit reasons produced
69by netsplits." 70by netsplits."
70 :group 'erc-netsplit 71 :group 'erc-netsplit
@@ -131,7 +132,7 @@ join from that split has been detected or not.")
131(defun erc-netsplit-MODE (proc parsed) 132(defun erc-netsplit-MODE (proc parsed)
132 "Hide mode changes from servers." 133 "Hide mode changes from servers."
133 ;; regexp matches things with a . in them, and no ! or @ in them. 134 ;; regexp matches things with a . in them, and no ! or @ in them.
134 (when (string-match "^[^@!]+\\.[^@!]+$" (erc-response.sender parsed)) 135 (when (string-match "^[^@!\n]+\\.[^@!\n]+$" (erc-response.sender parsed))
135 (and erc-netsplit-debug 136 (and erc-netsplit-debug
136 (erc-display-message 137 (erc-display-message
137 parsed 'notice (process-buffer proc) 138 parsed 'notice (process-buffer proc)
diff --git a/lisp/erc/erc.el b/lisp/erc/erc.el
index 63aac8a625e..1baede01259 100644
--- a/lisp/erc/erc.el
+++ b/lisp/erc/erc.el
@@ -3132,7 +3132,7 @@ the message given by REASON."
3132 3132
3133(defun erc-cmd-SV () 3133(defun erc-cmd-SV ()
3134 "Say the current ERC and Emacs version into channel." 3134 "Say the current ERC and Emacs version into channel."
3135 (erc-send-message (format "I'm using ERC %s with %s %s (%s%s%s)!" 3135 (erc-send-message (format "I'm using ERC %s with %s %s (%s%s) of %s."
3136 erc-version-string 3136 erc-version-string
3137 (if (featurep 'xemacs) "XEmacs" "GNU Emacs") 3137 (if (featurep 'xemacs) "XEmacs" "GNU Emacs")
3138 emacs-version 3138 emacs-version
@@ -3155,7 +3155,7 @@ the message given by REASON."
3155 x-toolkit-scroll-bars))) 3155 x-toolkit-scroll-bars)))
3156 "") 3156 "")
3157 (if (featurep 'multi-tty) ", multi-tty" "")) 3157 (if (featurep 'multi-tty) ", multi-tty" ""))
3158 (concat ", built " erc-emacs-build-time))) 3158 erc-emacs-build-time))
3159 t) 3159 t)
3160 3160
3161(defun erc-cmd-SM () 3161(defun erc-cmd-SM ()
@@ -3490,7 +3490,7 @@ If FACE is non-nil, it will be used to propertize the prompt. If it is nil,
3490If `point' is at the beginning of a channel name, use that as default." 3490If `point' is at the beginning of a channel name, use that as default."
3491 (interactive 3491 (interactive
3492 (list 3492 (list
3493 (let ((chnl (if (looking-at "\\([&#+!][^ ]+\\)") (match-string 1) "")) 3493 (let ((chnl (if (looking-at "\\([&#+!][^ \n]+\\)") (match-string 1) ""))
3494 (table (when (erc-server-buffer-live-p) 3494 (table (when (erc-server-buffer-live-p)
3495 (set-buffer (process-buffer erc-server-process)) 3495 (set-buffer (process-buffer erc-server-process))
3496 erc-channel-list))) 3496 erc-channel-list)))
@@ -4734,12 +4734,12 @@ EmacsSpeak support."
4734 4734
4735Return a list of the three separate tokens." 4735Return a list of the three separate tokens."
4736 (cond 4736 (cond
4737 ((string-match "^\\([^!]*\\)!\\([^@]*\\)@\\(.*\\)$" string) 4737 ((string-match "^\\([^!\n]*\\)!\\([^@\n]*\\)@\\(.*\\)$" string)
4738 (list (match-string 1 string) 4738 (list (match-string 1 string)
4739 (match-string 2 string) 4739 (match-string 2 string)
4740 (match-string 3 string))) 4740 (match-string 3 string)))
4741 ;; Some bogus bouncers send Nick!(null), try to live with that. 4741 ;; Some bogus bouncers send Nick!(null), try to live with that.
4742 ((string-match "^\\([^!]*\\)!\\(.*\\)$" string) 4742 ((string-match "^\\([^!\n]*\\)!\\(.*\\)$" string)
4743 (list (match-string 1 string) 4743 (list (match-string 1 string)
4744 "" 4744 ""
4745 (match-string 2 string))) 4745 (match-string 2 string)))
@@ -5053,7 +5053,7 @@ user matches any regexp in `erc-ignore-reply-list'."
5053 "Return the addressed target in MSG. 5053 "Return the addressed target in MSG.
5054 5054
5055The addressed target is the string before the first colon in MSG." 5055The addressed target is the string before the first colon in MSG."
5056 (if (string-match "^\\([^: ]*\\):" msg) 5056 (if (string-match "^\\([^: \n]*\\):" msg)
5057 (match-string 1 msg) 5057 (match-string 1 msg)
5058 nil)) 5058 nil))
5059 5059