projects
/
riece
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed.
[riece]
/
lisp
/
riece-highlight.el
diff --git
a/lisp/riece-highlight.el
b/lisp/riece-highlight.el
index
a0bc93c
..
3057747
100644
(file)
--- a/
lisp/riece-highlight.el
+++ b/
lisp/riece-highlight.el
@@
-19,8
+19,8
@@
;; 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
;; 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., 5
9 Temple Place - Suite 330
,
-;; Boston, MA 0211
1-1307
, USA.
+;; Free Software Foundation, Inc., 5
1 Franklin Street, Fifth Floor
,
+;; Boston, MA 0211
0-1301
, USA.
;;; Commentary:
;;; Commentary:
@@
-201,8
+201,6
@@
(set-face-foreground 'riece-modeline-current-face
(face-foreground 'riece-channel-list-current-face)))
(set-face-foreground 'riece-modeline-current-face
(face-foreground 'riece-channel-list-current-face)))
-(defvar riece-highlight-enabled nil)
-
(defconst riece-highlight-description
"Highlight IRC buffers.")
(defconst riece-highlight-description
"Highlight IRC buffers.")
@@
-219,7
+217,7
@@
(make-local-hook 'after-change-functions)
(add-hook 'after-change-functions
'riece-highlight-hide-prefix nil t)
(make-local-hook 'after-change-functions)
(add-hook 'after-change-functions
'riece-highlight-hide-prefix nil t)
- (if
riece-highlight-enabled
+ (if
(get 'riece-highlight 'riece-addon-enabled)
(font-lock-mode 1)))
(defun riece-highlight-setup-channel-list ()
(font-lock-mode 1)))
(defun riece-highlight-setup-channel-list ()
@@
-228,7
+226,7
@@
;; In XEmacs, auto-initialization of font-lock is not affective
;; when buffer-file-name is not set.
(font-lock-set-defaults)
;; In XEmacs, auto-initialization of font-lock is not affective
;; when buffer-file-name is not set.
(font-lock-set-defaults)
- (if
riece-highlight-enabled
+ (if
(get 'riece-highlight 'riece-addon-enabled)
(font-lock-mode 1)))
(defun riece-highlight-hide-prefix (start end length)
(font-lock-mode 1)))
(defun riece-highlight-hide-prefix (start end length)
@@
-238,7
+236,7
@@
(put-text-property (match-beginning 1) (match-end 1) 'invisible t))))
(defun riece-highlight-put-overlay-faces (start end)
(put-text-property (match-beginning 1) (match-end 1) 'invisible t))))
(defun riece-highlight-put-overlay-faces (start end)
- (if
riece-highlight-enabled
+ (if
(get 'riece-highlight 'riece-addon-enabled)
(riece-scan-property-region
'riece-overlay-face
start end
(riece-scan-property-region
'riece-overlay-face
start end
@@
-249,7
+247,7
@@
(defun riece-highlight-format-identity-for-channel-list-indicator (index
identity)
(defun riece-highlight-format-identity-for-channel-list-indicator (index
identity)
- (if (and
riece-highlight-enabled
+ (if (and
(get 'riece-highlight 'riece-addon-enabled)
(riece-identity-equal identity riece-current-channel))
(let ((string (riece-format-identity identity))
(start 0))
(riece-identity-equal identity riece-current-channel))
(let ((string (riece-format-identity identity))
(start 0))
@@
-311,8
+309,7
@@
'(riece-dialogue-mode riece-channel-list-mode))
(with-current-buffer (car buffers)
(font-lock-mode 1)))
'(riece-dialogue-mode riece-channel-list-mode))
(with-current-buffer (car buffers)
(font-lock-mode 1)))
- (setq buffers (cdr buffers))))
- (setq riece-highlight-enabled t))
+ (setq buffers (cdr buffers)))))
(defun riece-highlight-disable ()
(let ((buffers riece-buffer-list))
(defun riece-highlight-disable ()
(let ((buffers riece-buffer-list))
@@
-323,8
+320,7
@@
'(riece-dialogue-mode riece-channel-list-mode))
(with-current-buffer (car buffers)
(font-lock-mode 0)))
'(riece-dialogue-mode riece-channel-list-mode))
(with-current-buffer (car buffers)
(font-lock-mode 0)))
- (setq buffers (cdr buffers))))
- (setq riece-highlight-enabled nil))
+ (setq buffers (cdr buffers)))))
(provide 'riece-highlight)
(provide 'riece-highlight)