projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b684054
)
* lisp/frame.el (display-planes): Use logb over truncate + log
author
Alexander Gramiak
<agrambot@gmail.com>
Tue, 2 Apr 2019 17:14:18 +0000
(11:14 -0600)
committer
Alexander Gramiak
<agrambot@gmail.com>
Sun, 7 Apr 2019 04:43:59 +0000
(22:43 -0600)
Suggested by Basil L. Contovounesios:
https://lists.gnu.org/archive/html/bug-gnu-emacs/2019-03/msg01052.html
lisp/frame.el
patch
|
blob
|
history
diff --git
a/lisp/frame.el
b/lisp/frame.el
index aa14e87d7b8cb51b53dbb247392707c991d695e4..b39891cd14269847cb1819c1cbae4d2771340947 100644
(file)
--- a/
lisp/frame.el
+++ b/
lisp/frame.el
@@
-2093,7
+2093,7
@@
If DISPLAY is omitted or nil, it defaults to the selected frame's display."
((eq frame-type 'pc)
4)
(t
- (
truncate (log (length (tty-color-alist)) 2
))))))
+ (
logb (length (tty-color-alist)
))))))
(declare-function x-display-color-cells "xfns.c" (&optional terminal))