Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
888d644f
Commit
888d644f
authored
Sep 29, 2015
by
Katsumi Yamaoka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* net/shr.el (shr-colorize-region):
Don't do it on a system not supporting 256 above colors (bug#21557).
parent
166a6556
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
lisp/net/shr.el
lisp/net/shr.el
+1
-1
No files found.
lisp/net/shr.el
View file @
888d644f
...
...
@@ -1042,7 +1042,7 @@ ones, in case fg and bg are nil."
(
shr-color-visible
bg
fg
)))))))
(
defun
shr-colorize-region
(
start
end
fg
&optional
bg
)
(
when
(
or
fg
bg
)
(
when
(
and
(
or
fg
bg
)
(
>=
(
display-color-cells
)
256
))
(
let
((
new-colors
(
shr-color-check
fg
bg
)))
(
when
new-colors
(
when
fg
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment