X-Git-Url: https://cgit.sxemacs.org/?a=blobdiff_plain;f=lisp%2Friece-globals.el;h=0b19e109447046505b9f9e9383994438b3217603;hb=bf3cea82e421d7bc2b717780c4d30805899847c0;hp=a1410a5b63c755bddb825490f5a7ede58a1eca8e;hpb=be2acc33c38d2001a6e0342de584dfb361bb4f65;p=riece diff --git a/lisp/riece-globals.el b/lisp/riece-globals.el index a1410a5..0b19e10 100644 --- a/lisp/riece-globals.el +++ b/lisp/riece-globals.el @@ -19,23 +19,32 @@ ;; You should have received a copy of the GNU General Public License ;; along with GNU Emacs; see the file COPYING. If not, write to the -;; Free Software Foundation, Inc., 59 Temple Place - Suite 330, -;; Boston, MA 02111-1307, USA. +;; Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, +;; Boston, MA 02110-1301, USA. ;;; Code: (require 'riece-compat) ;riece-make-interval-regexp ;;; Constants: -(defconst riece-channel-regexp +(defconst riece-strict-channel-regexp (concat "\\([+&#]\\|!" (riece-make-interval-regexp "[A-Z0-9]" 5) "\\|!!\\)[^\0\7\r\n ,:]*\\(:[^\0\7\r\n ,:]*\\)?")) -(defconst riece-user-regexp +(defconst riece-strict-user-regexp (concat "[][\\\\`_^{|}A-Za-z]" (riece-make-interval-regexp "[][\\\\`_^{|}A-Za-z0-9-]" 0 8))) +(defconst riece-laxed-channel-regexp + "[+&#!][^\0\7\r\n ,:]*\\(:[^\0\7\r\n ,:]*\\)?") + +(defconst riece-laxed-user-regexp + "[][\\\\`_^{|}A-Za-z][][\\\\`_^{|}A-Za-z0-9-]*") + +(defvar riece-channel-regexp riece-laxed-channel-regexp) +(defvar riece-user-regexp riece-laxed-user-regexp) + ;;; Global variables: (defvar riece-server-process-alist nil "An alist mapping server names to processes.") @@ -56,8 +65,13 @@ (defvar riece-reconnect-with-password nil "If non-nil, attempt to reconnect with password.") -(defvar riece-obarray-size 1327 - "The size of obarray used by riece on channelname and username space.") +(defvar riece-user-obarray-size 1327 + "The size of obarray used by riece on username space.") + +(defvar riece-channel-obarray-size 103 + "The size of obarray used by riece on channelname space.") + +(defvar riece-addon-dependencies nil) ;;; Variables local to the server buffers: (defvar riece-server-name nil @@ -99,12 +113,30 @@ Local to the server buffers.") (defvar riece-read-point nil "Point at the last input was seen. Local to the server buffers.") -(defvar riece-obarray nil - "Namespace of the IRC world. +(defvar riece-send-queue nil + "Send queue for avoiding client flood. +Local to the server buffers.") +(defvar riece-send-size nil + "Size of the last send. +Local to the server buffers.") +(defvar riece-last-send-time nil + "Timestamp of the last send. +Local to the server buffers.") +(defvar riece-user-obarray nil + "USER namespace of the IRC world. +Local to the server buffers.") +(defvar riece-channel-obarray nil + "Channel namespace of the IRC world. Local to the server buffers.") (defvar riece-coding-system nil "Coding system for process I/O. Local to the server buffers.") +(defvar riece-channel-cache nil + "Cache of channel names. +Local to the server buffers.") +(defvar riece-user-cache nil + "Cache of usernames. +Local to the server buffers.") ;;; Variables local to the channel buffers: (defvar riece-freeze nil @@ -117,7 +149,12 @@ Local to the channel buffers.") channel buffer is locked. Local to the channel buffers.") +(defvar riece-channel-buffer-window-point nil + "Last value of point in window which displayed the channel buffer. +Local to the channel buffers.") + ;;; Modeline indicators: +(defvar riece-mode-line-buffer-identification nil) (defvar riece-channel-indicator "None" "String displayed on the modeline to indicate the current channel.") (defvar riece-long-channel-indicator "None" @@ -134,7 +171,10 @@ riece-channel-indicator.") user is away.") (defvar riece-operator-indicator "-" "String displayed on the modeline to allow the user to tell if the -user is a operator.") +user is an operator.") +(defvar riece-channel-status-indicator "-" + "String displayed on the modeline to allow the user to tell if the +user's status on the current channel.") ;;; Buffers: (defvar riece-command-buffer nil @@ -147,9 +187,12 @@ user is a operator.") "Buffer for channel list.") (defvar riece-user-list-buffer nil "Buffer for user list.") - (defvar riece-channel-buffer nil "Buffer for messages arrived in the current channel.") +(defvar riece-temp-buffer nil + "Buffer for temporally use.") +(defvar riece-debug-buffer nil + "Buffer for debug output.") (defvar riece-buffer-list nil) (defvar riece-overriding-server-name nil)