projects
/
gnus
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use bg/gfcolor specs on tables.
[gnus]
/
lisp
/
gnus-picon.el
diff --git
a/lisp/gnus-picon.el
b/lisp/gnus-picon.el
index
2f70eae
..
d24f04e
100644
(file)
--- a/
lisp/gnus-picon.el
+++ b/
lisp/gnus-picon.el
@@
-38,7
+38,7
@@
;;
;;; Code:
;;
;;; Code:
-;; For Emacs <
22.2
.
+;; For Emacs <
22.2 and XEmacs
.
(eval-and-compile
(unless (fboundp 'declare-function) (defmacro declare-function (&rest r))))
(eval-and-compile
(unless (fboundp 'declare-function) (defmacro declare-function (&rest r))))
@@
-85,8
+85,10
@@
added right to the textual representation."
(const right))
:group 'gnus-picon)
(const right))
:group 'gnus-picon)
-(defface gnus-picon '((t (:foreground "black" :background "white")))
- "Face to show picon in."
+(defcustom gnus-picon-inhibit-top-level-domains t
+ "If non-nil, don't piconify top-level domains.
+These are often not very interesting."
+ :type 'boolean
:group 'gnus-picon)
;;; Internal variables:
:group 'gnus-picon)
;;; Internal variables:
@@
-151,13
+153,13
@@
replacement is added."
(insert glyph)
(gnus-add-wash-type category)
(gnus-add-image category (car glyph))
(insert glyph)
(gnus-add-wash-type category)
(gnus-add-image category (car glyph))
- (let ((start (point)))
- (gnus-put-image (car glyph) (unless nostring (cdr glyph)) category)
- (put-text-property start (point) 'face 'gnus-picon))))
+ (gnus-put-image (car glyph) (unless nostring (cdr glyph)) category)))
(defun gnus-picon-create-glyph (file)
(or (cdr (assoc file gnus-picon-glyph-alist))
(defun gnus-picon-create-glyph (file)
(or (cdr (assoc file gnus-picon-glyph-alist))
- (cdar (push (cons file (gnus-create-image file))
+ (cdar (push (cons file (gnus-create-image
+ file nil nil
+ :color-symbols '(("None" . "white"))))
gnus-picon-glyph-alist))))
;;; Functions that does picon transformations:
gnus-picon-glyph-alist))))
;;; Functions that does picon transformations:
@@
-192,7
+194,9
@@
replacement is added."
(setcar spec (cons (gnus-picon-create-glyph file)
(car spec))))
(setcar spec (cons (gnus-picon-create-glyph file)
(car spec))))
- (dotimes (i (1- (length spec)))
+ (dotimes (i (- (length spec)
+ (if gnus-picon-inhibit-top-level-domains
+ 2 1)))
(when (setq file (gnus-picon-find-face
(concat "unknown@"
(mapconcat
(when (setq file (gnus-picon-find-face
(concat "unknown@"
(mapconcat