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-backend.el

    r4111 r4140  
    494494      ;; normal quit 
    495495      (progn 
    496         (let ((string "\n\n*** ERC finished ***\n") 
    497               (inhibit-read-only t)) 
    498           (erc-put-text-property 0 (length string) 
    499                                  'face 'erc-error-face string) 
    500           (insert string)) 
     496        (erc-display-message nil 'error (current-buffer) 'finished) 
    501497        (when erc-kill-server-buffer-on-quit 
    502498          (set-buffer-modified-p nil) 
     
    520516             erc-session-user-full-name t erc-session-password) 
    521517      ;; terminate, do not reconnect 
    522       (let ((string (concat "\n\n*** ERC terminated: " event 
    523                             "\n")) 
    524             (inhibit-read-only t)) 
    525         (erc-put-text-property 0 (length string) 
    526                                'face 'erc-error-face string) 
    527         (insert string))))) 
     518      (erc-display-message nil 'error (current-buffer) 
     519                           'terminated ?e event)))) 
    528520 
    529521(defun erc-process-sentinel (cproc event) 
     
    546538                            (erc-current-nick) (system-name) "") 
    547539        ;; Remove the prompt 
     540        (goto-char (or (marker-position erc-input-marker) (point-max))) 
    548541        (forward-line 0) 
    549542        (erc-remove-text-properties-region (point) (point-max)) 
     
    564557This is determined via `erc-encoding-coding-alist' or 
    565558`erc-server-coding-system'." 
    566   (or (let ((case-fold-search t)) 
    567         (catch 'match 
    568           (dolist (pat erc-encoding-coding-alist) 
    569             (when (string-match (car pat) target) 
    570               (throw 'match (cdr pat)))))) 
     559  (or (when target 
     560        (let ((case-fold-search t)) 
     561          (catch 'match 
     562            (dolist (pat erc-encoding-coding-alist) 
     563              (when (string-match (car pat) target) 
     564                (throw 'match (cdr pat))))))) 
    571565      (and (functionp erc-server-coding-system) 
    572566           (funcall erc-server-coding-system))