aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/erc/erc.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/erc/erc.el')
-rw-r--r--lisp/erc/erc.el39
1 files changed, 23 insertions, 16 deletions
diff --git a/lisp/erc/erc.el b/lisp/erc/erc.el
index 4317b831d56..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.
@@ -822,7 +822,8 @@ See `erc-server-flood-margin' for other flood-related parameters.")
822;; Script parameters 822;; Script parameters
823 823
824(defcustom erc-startup-file-list 824(defcustom erc-startup-file-list
825 '("~/.ercrc.el" "~/.ercrc" ".ercrc.el" ".ercrc") 825 '("~/.emacs.d/.ercrc.el" "~/.emacs.d/.ercrc"
826 "~/.ercrc.el" "~/.ercrc" ".ercrc.el" ".ercrc")
826 "List of files to try for a startup script. 827 "List of files to try for a startup script.
827The first existent and readable one will get executed. 828The first existent and readable one will get executed.
828 829
@@ -2362,6 +2363,8 @@ See also `erc-format-message' and `erc-display-line'."
2362 msg))) 2363 msg)))
2363 (setq string 2364 (setq string
2364 (cond 2365 (cond
2366 ((null type)
2367 string)
2365 ((listp type) 2368 ((listp type)
2366 (mapc (lambda (type) 2369 (mapc (lambda (type)
2367 (setq string 2370 (setq string
@@ -2374,7 +2377,7 @@ See also `erc-format-message' and `erc-display-line'."
2374 (if (not (erc-response-p parsed)) 2377 (if (not (erc-response-p parsed))
2375 (erc-display-line string buffer) 2378 (erc-display-line string buffer)
2376 (unless (member (erc-response.command parsed) erc-hide-list) 2379 (unless (member (erc-response.command parsed) erc-hide-list)
2377 (erc-put-text-property 0 (length string) 'erc-parsed parsed string) 2380 (erc-put-text-property 0 (length string) 'erc-parsed parsed string)
2378 (erc-put-text-property 0 (length string) 'rear-sticky t string) 2381 (erc-put-text-property 0 (length string) 'rear-sticky t string)
2379 (erc-display-line string buffer))))) 2382 (erc-display-line string buffer)))))
2380 2383
@@ -5241,13 +5244,11 @@ If FILE is found, return the path to it."
5241(defun erc-select-startup-file () 5244(defun erc-select-startup-file ()
5242 "Select an ERC startup file. 5245 "Select an ERC startup file.
5243See also `erc-startup-file-list'." 5246See also `erc-startup-file-list'."
5244 (let ((l erc-startup-file-list) 5247 (catch 'found
5245 (f nil)) 5248 (dolist (f erc-startup-file-list)
5246 (while (and (not f) l) 5249 (setq f (convert-standard-filename f))
5247 (if (file-readable-p (car l)) 5250 (when (file-readable-p f)
5248 (setq f (car l))) 5251 (throw 'found f)))))
5249 (setq l (cdr l)))
5250 f))
5251 5252
5252(defun erc-find-script-file (file) 5253(defun erc-find-script-file (file)
5253 "Search for FILE in `default-directory', and any in `erc-script-path'." 5254 "Search for FILE in `default-directory', and any in `erc-script-path'."
@@ -5894,7 +5895,8 @@ All windows are opened in the current frame."
5894 (setq bufs (cdr bufs)) 5895 (setq bufs (cdr bufs))
5895 (while bufs 5896 (while bufs
5896 (split-window) 5897 (split-window)
5897 (switch-to-buffer-other-window (car bufs)) 5898 (other-window 1)
5899 (switch-to-buffer (car bufs))
5898 (setq bufs (cdr bufs)) 5900 (setq bufs (cdr bufs))
5899 (balance-windows))))) 5901 (balance-windows)))))
5900 5902
@@ -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")