Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
b94a5a43
Commit
b94a5a43
authored
Oct 26, 2010
by
Glenn Morris
Browse files
* lisp/term/common-win.el (xw-defined-colors): Simplify the 'ns case.
parent
fc3eda04
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
10 deletions
+14
-10
lisp/ChangeLog
lisp/ChangeLog
+4
-0
lisp/term/common-win.el
lisp/term/common-win.el
+10
-10
No files found.
lisp/ChangeLog
View file @
b94a5a43
2010-10-26 Glenn Morris <rgm@gnu.org>
* term/common-win.el (xw-defined-colors): Simplify the 'ns case.
2010-10-26 Adrian Robert <Adrian.B.Robert@gmail.com>
* term/ns-win.el (ns-new-frame, ns-show-prefs): Don't add to
...
...
lisp/term/common-win.el
View file @
b94a5a43
...
...
@@ -463,15 +463,15 @@ the operating system.")
(
defun
xw-defined-colors
(
&optional
frame
)
"Internal function called by `defined-colors', which see."
(
or
frame
(
setq
frame
(
selected-frame
))
)
;; FIXME for ns, this is just...
x-colors
.
(
let
(
defined-colors
)
(
dolist
(
this-color
(
if
(
eq
system-type
'windows-nt
)
(
or
(
mapcar
'car
w32-color-map
)
x-colors
)
x-colors
)
)
(
and
(
or
(
color-supported-p
this-color
frame
t
)
(
featurep
'ns
)
)
(
setq
defined-colors
(
cons
this-color
defined-colors
))))
defined-colors
))
(
if
(
featurep
'ns
)
x-colors
(
or
frame
(
setq
frame
(
selected-frame
))
)
(
let
(
defined-colors
)
(
dolist
(
this-color
(
if
(
eq
system-type
'windows-nt
)
(
or
(
mapcar
'car
w32-color-map
)
x-colors
)
x-colors
)
)
(
and
(
color-supported-p
this-color
frame
t
)
(
setq
defined-colors
(
cons
this-color
defined-colors
))))
defined-colors
))
)
;;; common-win.el ends here
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