X-Git-Url: https://cgit.sxemacs.org/?p=riece;a=blobdiff_plain;f=lisp%2Friece-filter.el;h=6c5f44cc587f6c47db970190ce5b54837f52a578;hp=5dc9cf6e11537ae7fdd32b7ddbfd12bc4b300e75;hb=2f2db64d1382fb55b259d09e8bb31de623c7832a;hpb=d06f349b14128ae644776614761512aded21f9a1 diff --git a/lisp/riece-filter.el b/lisp/riece-filter.el index 5dc9cf6..6c5f44c 100644 --- a/lisp/riece-filter.el +++ b/lisp/riece-filter.el @@ -87,29 +87,27 @@ (goto-char (prog1 riece-read-point (setq riece-read-point (point)))) (beginning-of-line) - (catch 'contiguous - (while (not (eobp)) - (save-excursion - (if (looking-at - ":\\([^ ]+\\) +\\([0-5][0-9][0-9]\\) +\\([^ ]+\\) +\\(.*\\)\r\n") - (riece-handle-numeric-reply - (match-string 1) ;prefix - (string-to-number (match-string 2)) ;number - (match-string 3) ;name - (match-string 4)) ;reply string - (if (looking-at "\\(:\\([^ ]+\\) +\\)?\\([^ ]+\\) +\\(.*\\)\r\n") - (riece-handle-message - (match-string 2) ;optional prefix - (match-string 3) ;command - (match-string 4)) ;params & trailing - (if (looking-at ".*\r\n") - (if riece-debug - (message "Weird message from server: %s" - (buffer-substring (point) (progn - (end-of-line) - (point))))) - (throw 'contiguous nil))))) - (forward-line))))) + (while (and (not (eobp)) + (looking-at ".*\r\n")) ;the input line is not finished + (save-excursion + (if (looking-at + ":\\([^ ]+\\) +\\([0-5][0-9][0-9]\\) +\\([^ ]+\\) +\\(.*\\)\r\n") + (riece-handle-numeric-reply + (match-string 1) ;prefix + (string-to-number (match-string 2)) ;number + (match-string 3) ;name + (match-string 4)) ;reply string + (if (looking-at "\\(:\\([^ ]+\\) +\\)?\\([^ ]+\\) +\\(.*\\)\r\n") + (riece-handle-message + (match-string 2) ;optional prefix + (match-string 3) ;command + (match-string 4)) ;params & trailing + (if riece-debug + (message "Weird message from server: %s" + (buffer-substring (point) (progn + (end-of-line) + (point)))))))) + (forward-line)))) (eval-when-compile (autoload 'riece-exit "riece"))