Show
Ignore:
Timestamp:
08/10/06 11:19:54 (2 years ago)
Author:
miyoshi
Message:

Sync up with Emacs CVS HEAD.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/lisp/erc/erc.el

    r4111 r4140  
    6868;;; Code: 
    6969 
    70 (defconst erc-version-string "Version 5.1.3
     70(defconst erc-version-string "Version 5.1.4
    7171  "ERC version.  This is used by function `erc-version'.") 
    7272 
     
    158158  :group 'erc 
    159159  :type '(choice (const :tag "None" nil) 
    160                  (const :tag "Port number" number
    161                  (const :tag "Port string" string))) 
     160                 (integer :tag "Port number"
     161                 (string :tag "Port string"))) 
    162162 
    163163(defcustom erc-nick nil 
     
    823823 
    824824(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") 
    826827  "List of files to try for a startup script. 
    827828The first existent and readable one will get executed. 
     
    12441245                        (downcase (symbol-name alias))))) 
    12451246             (quote 
    1246               ,mode)))))) 
     1247              ,mode))) 
     1248       ;; For find-function and find-variable. 
     1249       (put ',mode    'definition-name ',name) 
     1250       (put ',enable  'definition-name ',name) 
     1251       (put ',disable 'definition-name ',name)))) 
    12471252 
    12481253(put 'define-erc-module 'doc-string-elt 3) 
     
    13891394  (with-current-buffer (erc-server-buffer) 
    13901395    (if (buffer-live-p erc-active-buffer) 
    1391         erc-active-buffer) 
    1392     (setq erc-active-buffer (current-buffer)))) 
     1396        erc-active-buffer 
     1397      (setq erc-active-buffer (current-buffer))))) 
    13931398 
    13941399(defun erc-set-active-buffer (buffer) 
     
    23592364    (setq string 
    23602365          (cond 
     2366           ((null type) 
     2367            string) 
    23612368           ((listp type) 
    23622369            (mapc (lambda (type) 
     
    23712378        (erc-display-line string buffer) 
    23722379      (unless (member (erc-response.command parsed) erc-hide-list) 
    2373       (erc-put-text-property 0 (length string) 'erc-parsed parsed string) 
     2380       (erc-put-text-property 0 (length string) 'erc-parsed parsed string) 
    23742381        (erc-put-text-property 0 (length string) 'rear-sticky t string) 
    23752382        (erc-display-line string buffer))))) 
     
    52385245  "Select an ERC startup file. 
    52395246See also `erc-startup-file-list'." 
    5240   (let ((l erc-startup-file-list) 
    5241         (f nil)) 
    5242     (while (and (not f) l) 
    5243       (if (file-readable-p (car l)) 
    5244           (setq f (car l))) 
    5245       (setq l (cdr l))) 
    5246     f)) 
     5247  (catch 'found 
     5248    (dolist (f erc-startup-file-list) 
     5249      (setq f (convert-standard-filename f)) 
     5250      (when (file-readable-p f) 
     5251        (throw 'found f))))) 
    52475252 
    52485253(defun erc-find-script-file (file) 
     
    58915896      (while bufs 
    58925897        (split-window) 
    5893         (switch-to-buffer-other-window (car bufs)) 
     5898        (other-window 1) 
     5899        (switch-to-buffer (car bufs)) 
    58945900        (setq bufs (cdr bufs)) 
    58955901        (balance-windows))))) 
     
    59435949   (ctcp-too-many . "Too many CTCP queries in single message. Ignoring") 
    59445950   (flood-ctcp-off . "FLOOD PROTECTION: Automatic CTCP responses turned off.") 
    5945    (flood-strict-mode . "FLOOD PROTECTION: Switched to Strict Flood Control mode.") 
    5946    (disconnected . "Connection failed!  Re-establishing connection...") 
    5947    (disconnected-noreconnect . "Connection failed!  Not re-establishing connection.") 
     5951   (flood-strict-mode 
     5952    . "FLOOD PROTECTION: Switched to Strict Flood Control mode.") 
     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") 
    59485958   (login . "Logging in as \'%n\'...") 
    59495959   (nick-in-use . "%n is in use. Choose new nickname: ") 
    5950    (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") 
    59515962   (no-default-channel . "No default channel") 
    59525963   (no-invitation . "You've got no invitation")