aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiles Bader2006-08-07 07:43:48 +0000
committerMiles Bader2006-08-07 07:43:48 +0000
commitf2c056984949eb4f9be66ad05a9ad865752ffa06 (patch)
tree3f266b10e8640c9ad9eb808e4d69d04bd1d21697
parent26cced449af1c57c8a674aaafdbc6d57ef28cf57 (diff)
downloademacs-f2c056984949eb4f9be66ad05a9ad865752ffa06.tar.gz
emacs-f2c056984949eb4f9be66ad05a9ad865752ffa06.zip
Update from erc--emacs--22
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-388 Creator: Michael Olson <mwolson@gnu.org>
-rw-r--r--lisp/erc/ChangeLog15
-rw-r--r--lisp/erc/erc-backend.el15
-rw-r--r--lisp/erc/erc.el21
3 files changed, 33 insertions, 18 deletions
diff --git a/lisp/erc/ChangeLog b/lisp/erc/ChangeLog
index b495eda20f1..522e4623d63 100644
--- a/lisp/erc/ChangeLog
+++ b/lisp/erc/ChangeLog
@@ -1,3 +1,18 @@
12006-08-07 Michael Olson <mwolson@gnu.org>
2
3 * erc-backend.el (erc-process-sentinel-1): Use erc-display-message
4 in several places instead of inserting text.
5 (erc-process-sentinel): Move to the input-marker before removing
6 the prompt.
7
8 * erc.el (erc-port): Fix customization options.
9 (erc-display-message): Handle null type explicitly. Previously,
10 this was relying on a chance side-effect. Cosmetic indentation
11 tweak.
12 (english): Add 'finished and 'terminated entries to the catalog.
13 Add initial and terminal newlines to 'disconnected and
14 'disconnected-noreconnect entries. Avoid long lines.
15
12006-08-06 Michael Olson <mwolson@gnu.org> 162006-08-06 Michael Olson <mwolson@gnu.org>
2 17
3 * erc.el (erc-arrange-session-in-multiple-windows): Fix bug with 18 * erc.el (erc-arrange-session-in-multiple-windows): Fix bug with
diff --git a/lisp/erc/erc-backend.el b/lisp/erc/erc-backend.el
index 705ca7a9e63..5acbcb05ab8 100644
--- a/lisp/erc/erc-backend.el
+++ b/lisp/erc/erc-backend.el
@@ -493,11 +493,7 @@ action."
493 (if erc-server-quitting 493 (if erc-server-quitting
494 ;; normal quit 494 ;; normal quit
495 (progn 495 (progn
496 (let ((string "\n\n*** ERC finished ***\n") 496 (erc-display-message nil 'error (current-buffer) 'finished)
497 (inhibit-read-only t))
498 (erc-put-text-property 0 (length string)
499 'face 'erc-error-face string)
500 (insert string))
501 (when erc-kill-server-buffer-on-quit 497 (when erc-kill-server-buffer-on-quit
502 (set-buffer-modified-p nil) 498 (set-buffer-modified-p nil)
503 (kill-buffer (current-buffer)))) 499 (kill-buffer (current-buffer))))
@@ -519,12 +515,8 @@ action."
519 (erc erc-session-server erc-session-port erc-server-current-nick 515 (erc erc-session-server erc-session-port erc-server-current-nick
520 erc-session-user-full-name t erc-session-password) 516 erc-session-user-full-name t erc-session-password)
521 ;; terminate, do not reconnect 517 ;; terminate, do not reconnect
522 (let ((string (concat "\n\n*** ERC terminated: " event 518 (erc-display-message nil 'error (current-buffer)
523 "\n")) 519 'terminated ?e event))))
524 (inhibit-read-only t))
525 (erc-put-text-property 0 (length string)
526 'face 'erc-error-face string)
527 (insert string)))))
528 520
529(defun erc-process-sentinel (cproc event) 521(defun erc-process-sentinel (cproc event)
530 "Sentinel function for ERC process." 522 "Sentinel function for ERC process."
@@ -545,6 +537,7 @@ action."
545 (run-hook-with-args 'erc-disconnected-hook 537 (run-hook-with-args 'erc-disconnected-hook
546 (erc-current-nick) (system-name) "") 538 (erc-current-nick) (system-name) "")
547 ;; Remove the prompt 539 ;; Remove the prompt
540 (goto-char (or (marker-position erc-input-marker) (point-max)))
548 (forward-line 0) 541 (forward-line 0)
549 (erc-remove-text-properties-region (point) (point-max)) 542 (erc-remove-text-properties-region (point) (point-max))
550 (delete-region (point) (point-max)) 543 (delete-region (point) (point-max))
diff --git a/lisp/erc/erc.el b/lisp/erc/erc.el
index 726d02ed613..41d59576251 100644
--- a/lisp/erc/erc.el
+++ b/lisp/erc/erc.el
@@ -157,8 +157,8 @@ parameters and authentication."
157This can be either a string or a number." 157This can be either a string or a number."
158 :group 'erc 158 :group 'erc
159 :type '(choice (const :tag "None" nil) 159 :type '(choice (const :tag "None" nil)
160 (const :tag "Port number" number) 160 (integer :tag "Port number")
161 (const :tag "Port string" string))) 161 (string :tag "Port string")))
162 162
163(defcustom erc-nick nil 163(defcustom erc-nick nil
164 "Nickname to use if one is not provided. 164 "Nickname to use if one is not provided.
@@ -2363,6 +2363,8 @@ See also `erc-format-message' and `erc-display-line'."
2363 msg))) 2363 msg)))
2364 (setq string 2364 (setq string
2365 (cond 2365 (cond
2366 ((null type)
2367 string)
2366 ((listp type) 2368 ((listp type)
2367 (mapc (lambda (type) 2369 (mapc (lambda (type)
2368 (setq string 2370 (setq string
@@ -2375,7 +2377,7 @@ See also `erc-format-message' and `erc-display-line'."
2375 (if (not (erc-response-p parsed)) 2377 (if (not (erc-response-p parsed))
2376 (erc-display-line string buffer) 2378 (erc-display-line string buffer)
2377 (unless (member (erc-response.command parsed) erc-hide-list) 2379 (unless (member (erc-response.command parsed) erc-hide-list)
2378 (erc-put-text-property 0 (length string) 'erc-parsed parsed string) 2380 (erc-put-text-property 0 (length string) 'erc-parsed parsed string)
2379 (erc-put-text-property 0 (length string) 'rear-sticky t string) 2381 (erc-put-text-property 0 (length string) 'rear-sticky t string)
2380 (erc-display-line string buffer))))) 2382 (erc-display-line string buffer)))))
2381 2383
@@ -5946,12 +5948,17 @@ All windows are opened in the current frame."
5946 (ctcp-request-to . "==> CTCP request from %n (%u@%h) to %t: %r") 5948 (ctcp-request-to . "==> CTCP request from %n (%u@%h) to %t: %r")
5947 (ctcp-too-many . "Too many CTCP queries in single message. Ignoring") 5949 (ctcp-too-many . "Too many CTCP queries in single message. Ignoring")
5948 (flood-ctcp-off . "FLOOD PROTECTION: Automatic CTCP responses turned off.") 5950 (flood-ctcp-off . "FLOOD PROTECTION: Automatic CTCP responses turned off.")
5949 (flood-strict-mode . "FLOOD PROTECTION: Switched to Strict Flood Control mode.") 5951 (flood-strict-mode
5950 (disconnected . "Connection failed! Re-establishing connection...") 5952 . "FLOOD PROTECTION: Switched to Strict Flood Control mode.")
5951 (disconnected-noreconnect . "Connection failed! Not re-establishing connection.") 5953 (disconnected . "\n\nConnection failed! Re-establishing connection...\n")
5954 (disconnected-noreconnect
5955 . "\n\nConnection failed! Not re-establishing connection.\n")
5956 (finished . "\n\n*** ERC finished ***\n")
5957 (terminated . "\n\n*** ERC terminated: %e\n")
5952 (login . "Logging in as \'%n\'...") 5958 (login . "Logging in as \'%n\'...")
5953 (nick-in-use . "%n is in use. Choose new nickname: ") 5959 (nick-in-use . "%n is in use. Choose new nickname: ")
5954 (nick-too-long . "WARNING: Nick length (%i) exceeds max NICKLEN(%l) defined by server") 5960 (nick-too-long
5961 . "WARNING: Nick length (%i) exceeds max NICKLEN(%l) defined by server")
5955 (no-default-channel . "No default channel") 5962 (no-default-channel . "No default channel")
5956 (no-invitation . "You've got no invitation") 5963 (no-invitation . "You've got no invitation")
5957 (no-target . "No target") 5964 (no-target . "No target")