diff options
| author | Basil L. Contovounesios | 2018-04-17 21:42:04 +0200 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2018-04-17 21:42:04 +0200 |
| commit | 3dfec182d25ed438dc6d4a91f4201e2f7e0c99ec (patch) | |
| tree | 9ddb618acb52545337b3a3a5e1b82b895560f82d | |
| parent | c99ba231602a40792317976149500120c4959d1c (diff) | |
| download | emacs-3dfec182d25ed438dc6d4a91f4201e2f7e0c99ec.tar.gz emacs-3dfec182d25ed438dc6d4a91f4201e2f7e0c99ec.zip | |
Modernise face specs and set version tags in eww/shr
* lisp/net/shr.el (shr-strike-through, shr-link, shr-selected-link):
Set :version tag (bug#31200).
* lisp/net/eww.el (eww-form-text, eww-form-textarea):
* lisp/net/shr.el (shr-strike-through, shr-link, shr-selected-link):
Use (DISPLAY . PLIST) face spec syntax as recommended in
'(elisp) Defining Faces'.
| -rw-r--r-- | lisp/net/eww.el | 12 | ||||
| -rw-r--r-- | lisp/net/shr.el | 6 |
2 files changed, 9 insertions, 9 deletions
diff --git a/lisp/net/eww.el b/lisp/net/eww.el index f7371896120..e74f661ac75 100644 --- a/lisp/net/eww.el +++ b/lisp/net/eww.el | |||
| @@ -186,17 +186,17 @@ See also `eww-form-checkbox-selected-symbol'." | |||
| 186 | :group 'eww) | 186 | :group 'eww) |
| 187 | 187 | ||
| 188 | (defface eww-form-text | 188 | (defface eww-form-text |
| 189 | '((t (:background "#505050" | 189 | '((t :background "#505050" |
| 190 | :foreground "white" | 190 | :foreground "white" |
| 191 | :box (:line-width 1)))) | 191 | :box (:line-width 1))) |
| 192 | "Face for eww text inputs." | 192 | "Face for eww text inputs." |
| 193 | :version "24.4" | 193 | :version "24.4" |
| 194 | :group 'eww) | 194 | :group 'eww) |
| 195 | 195 | ||
| 196 | (defface eww-form-textarea | 196 | (defface eww-form-textarea |
| 197 | '((t (:background "#C0C0C0" | 197 | '((t :background "#C0C0C0" |
| 198 | :foreground "black" | 198 | :foreground "black" |
| 199 | :box (:line-width 1)))) | 199 | :box (:line-width 1))) |
| 200 | "Face for eww textarea inputs." | 200 | "Face for eww textarea inputs." |
| 201 | :version "24.4" | 201 | :version "24.4" |
| 202 | :group 'eww) | 202 | :group 'eww) |
diff --git a/lisp/net/shr.el b/lisp/net/shr.el index 0fc7ccf9582..ca70c5c656c 100644 --- a/lisp/net/shr.el +++ b/lisp/net/shr.el | |||
| @@ -135,17 +135,17 @@ cid: URL as the argument.") | |||
| 135 | (defvar shr-put-image-function 'shr-put-image | 135 | (defvar shr-put-image-function 'shr-put-image |
| 136 | "Function called to put image and alt string.") | 136 | "Function called to put image and alt string.") |
| 137 | 137 | ||
| 138 | (defface shr-strike-through '((t (:strike-through t))) | 138 | (defface shr-strike-through '((t :strike-through t)) |
| 139 | "Font for <s> elements." | 139 | "Font for <s> elements." |
| 140 | :group 'shr) | 140 | :group 'shr) |
| 141 | 141 | ||
| 142 | (defface shr-link | 142 | (defface shr-link |
| 143 | '((t (:inherit link))) | 143 | '((t :inherit link)) |
| 144 | "Font for link elements." | 144 | "Font for link elements." |
| 145 | :group 'shr) | 145 | :group 'shr) |
| 146 | 146 | ||
| 147 | (defface shr-selected-link | 147 | (defface shr-selected-link |
| 148 | '((t (:inherit shr-link :background "red"))) | 148 | '((t :inherit shr-link :background "red")) |
| 149 | "Font for link elements." | 149 | "Font for link elements." |
| 150 | :group 'shr) | 150 | :group 'shr) |
| 151 | 151 | ||