riece-filter-semaphore.
* riece-globals.el (riece-filter-semaphore): Define here.
2005-02-07 Daiki Ueno <ueno@unixuser.org>
- * riece-filter.el (riece-filter-semaphore): New variable.
- (riece-get-semaphore): New function.
+ * riece-server.el (riece-reset-process-buffer): Reset
+ riece-filter-semaphore.
+ * riece-globals.el (riece-filter-semaphore): Define here.
+
+ * riece-filter.el (riece-get-semaphore): New function.
(riece-release-semaphore): New function.
(riece-filter-with-semaphore): New macro.
(riece-filter): Use it.
(require 'riece-identity)
(require 'riece-debug)
-(defvar riece-filter-semaphore '(nil))
-
(defun riece-handle-numeric-reply (prefix number name string)
(let ((base-number (* (/ number 100) 100))
function)
(defvar riece-coding-system nil
"Coding system for process I/O.
Local to the server buffers.")
+(defvar riece-filter-semaphore nil
+ "Semaphore for riece-filter.
+Local to the server buffers.")
;;; Variables local to the channel buffers:
(defvar riece-freeze nil
(make-local-variable 'riece-obarray)
(setq riece-obarray (make-vector riece-obarray-size 0))
(make-local-variable 'riece-coding-system)
+ (make-local-variable 'riece-filter-semaphore)
+ (setq riece-filter-semaphore '(nil))
(buffer-disable-undo)
(erase-buffer)))