From b121b322379bc9a025d1d9add1f6033842a56fd1 Mon Sep 17 00:00:00 2001 From: ueno Date: Fri, 30 May 2003 06:04:51 +0000 Subject: [PATCH] * riece-message.el (riece-message-make-bracket): Abolish. * riece-highlight.el (riece-highlight-font-lock-keywords): Give up to fontify "-nick-" or "-nick server-". --- lisp/ChangeLog | 4 ++++ lisp/riece-highlight.el | 2 +- lisp/riece-message.el | 35 +++++++++++++++-------------------- 3 files changed, 20 insertions(+), 21 deletions(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 295536f..dd14f0c 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,5 +1,9 @@ 2003-05-30 Daiki Ueno + * riece-message.el (riece-message-make-bracket): Abolish. + * riece-highlight.el (riece-highlight-font-lock-keywords): + Give up to fontify "-nick-" or "-nick server-". + * riece-highlight.el (riece-highlight-font-lock-keywords): Simplified regexp. diff --git a/lisp/riece-highlight.el b/lisp/riece-highlight.el index a9715ef..3c3536d 100644 --- a/lisp/riece-highlight.el +++ b/lisp/riece-highlight.el @@ -163,7 +163,7 @@ (defcustom riece-highlight-font-lock-keywords (append (list (list (concat "^" riece-time-prefix-regexp - "\\(<[^>]+>\\|>[^<]+<\\|([^)]+)\\|-[^ ]+ [^-]+-\\|=[^ ]+ [^=]+=\\|\\([+-]\\)[^ ]+\\2\\)") + "\\(<[^>]+>\\|>[^<]+<\\|([^)]+)\\|{[^}]+}\\|=[^=]+=\\)") '(1 riece-prefix-face append t))) ;; set property to the whole line (mapcar diff --git a/lisp/riece-message.el b/lisp/riece-message.el index f2312ad..2bef9f6 100644 --- a/lisp/riece-message.el +++ b/lisp/riece-message.el @@ -63,32 +63,27 @@ (defun riece-message-make-open-bracket (message) "Makes `open-bracket' string for MESSAGE." - (riece-message-make-bracket message t)) + (if (riece-message-own-p message) + ">" + (if (eq (riece-message-type message) 'notice) + "{" + (if (riece-message-private-p message) + "=" + (if (riece-message-external-p message) + "(" + "<"))))) (defun riece-message-make-close-bracket (message) "Makes `close-bracket' string for MESSAGE." - (riece-message-make-bracket message nil)) - -(defun riece-message-make-bracket (message open-p) - (if (eq open-p (riece-message-own-p message)) - (if (eq (riece-message-type message) 'notice) - "-" - (if (riece-message-private-p message) - (if (riece-message-own-p message) - ">" - "=") - (if (riece-message-external-p message) - ")" - ">"))) + (if (riece-message-own-p message) + "<" (if (eq (riece-message-type message) 'notice) - "-" + "}" (if (riece-message-private-p message) - (if (riece-message-own-p message) - "<" - "=") + "=" (if (riece-message-external-p message) - "(" - "<"))))) + ")" + ">"))))) (defun riece-message-make-name (message) "Makes local identity for MESSAGE." -- 1.7.10.4