X-Git-Url: https://cgit.sxemacs.org/?p=riece;a=blobdiff_plain;f=lisp%2Friece-globals.el;h=c49590da9adeeb9c371c28ac244c3a308be4a7a4;hp=852426a4f0e7dbd7d25717016281d01281b452c4;hb=ce6d7f3e5ad810b0f72c81b8e2a4c3d7ce078a7a;hpb=2dfe0101ccd973cb006b0038e5225ef6bf201943 diff --git a/lisp/riece-globals.el b/lisp/riece-globals.el index 852426a..c49590d 100644 --- a/lisp/riece-globals.el +++ b/lisp/riece-globals.el @@ -27,15 +27,24 @@ (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.") @@ -108,22 +117,33 @@ Local to the server buffers.") ;;; Variables local to the channel buffers: (defvar riece-freeze nil - "If t, channel window is not scrolled. -If 'own, channel window is not scrolled until you speak. + "If t, channel window is locked and will not be scrolled. +If 'own, channel window is locked until the user begins to speak. +Local to the channel buffers.") + +(defvar riece-freeze-indicator nil + "String displayed on the modeline to allow the user to tell if the +channel buffer is locked. Local to the channel buffers.") ;;; Modeline indicators: (defvar riece-channel-indicator "None" - "A modeline indicator of the current channel.") + "String displayed on the modeline to indicate the current channel.") (defvar riece-long-channel-indicator "None" - "A modeline indicator of the current channel.") + "String displayed on the modeline to indicate the current channel. +Generally, this string will contain more information than +riece-channel-indicator.") (defvar riece-channel-list-indicator "No channel" - "A modeline indicator of the current joined channels.") -(defvar riece-user-indicator nil) - -(defvar riece-away-indicator "-") -(defvar riece-operator-indicator "-") -(defvar riece-freeze-indicator "-") + "String displayed on the modeline to show the joined channels.") +(defvar riece-user-indicator nil + "String displayed on the modeline to show the current nickname.") + +(defvar riece-away-indicator "-" + "String displayed on the modeline to allow the user to tell if the +user is away.") +(defvar riece-operator-indicator "-" + "String displayed on the modeline to allow the user to tell if the +user is a operator.") ;;; Buffers: (defvar riece-command-buffer nil