unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#3207: 23.0.93; x-display-planes is incorrect in NS port
@ 2009-05-04 17:59 Ian Eure
  2009-05-04 19:18 ` Leo
  0 siblings, 1 reply; 5+ messages in thread
From: Ian Eure @ 2009-05-04 17:59 UTC (permalink / raw)
  To: emacs-pretest-bug

When starting up NextStep Emacs compiled from CVS HEAD, the old XPM  
splash image is used, rather than the new PNG.

This appears to be caused by (display-planes) reporting an eight-plane  
display. This is almost certainly incorrect.

Looking deeper, (display-planes) calls (x-display-planes), in nsfns.m.  
I don’t see anything obviously wrong, but it’s reporting that I have  
an 8-plane display when it’s 24-plane. Evaluating (x-display-color- 
cells) produces the correct value: 16777216, indicating a 24-bit  
display.

In GNU Emacs 23.0.93.1 (i386-apple-darwin9.6.0, NS apple-appkit-949.43)
  of 2009-05-04 on neutron.local
Windowing system distributor `Apple', version 10.3.949
configured using `configure  '--with-ns''

Important settings:
   value of $LC_ALL: nil
   value of $LC_COLLATE: nil
   value of $LC_CTYPE: nil
   value of $LC_MESSAGES: nil
   value of $LC_MONETARY: nil
   value of $LC_NUMERIC: nil
   value of $LC_TIME: nil
   value of $LANG: nil
   value of $XMODIFIERS: nil
   locale-coding-system: nil
   default-enable-multibyte-characters: t

Major mode: Lisp Interaction

Minor modes in effect:
   diff-auto-refine-mode: t
   erc-track-mode: t
   erc-track-minor-mode: t
   erc-spelling-mode: t
   erc-ring-mode: t
   erc-pcomplete-mode: t
   erc-netsplit-mode: t
   erc-match-mode: t
   erc-button-mode: t
   erc-fill-mode: t
   erc-autojoin-mode: t
   erc-irccontrols-mode: t
   erc-noncommands-mode: t
   erc-readonly-mode: t
   erc-scrolltobottom-mode: t
   goto-address-prog-mode: t
   light-symbol-mode: t
   hl-line-mode: t
   eldoc-mode: t
   which-function-mode: t
   yas/minor-mode: t
   ime-bindings: t
   shell-dirtrack-mode: t
   show-paren-mode: t
   recentf-mode: t
   iswitchb-mode: t
   cua-mode: t
   auto-insert-mode: t
   tooltip-mode: t
   mouse-wheel-mode: t
   menu-bar-mode: t
   file-name-shadow-mode: t
   global-font-lock-mode: t
   font-lock-mode: t
   blink-cursor-mode: t
   global-auto-composition-mode: t
   auto-composition-mode: t
   auto-encryption-mode: t
   auto-compression-mode: t
   size-indication-mode: t
   column-number-mode: t
   line-number-mode: t
   transient-mark-mode: t
   abbrev-mode: t

Recent input:
i s p l a y - l <backspace> p l a n e s C-e C-x C-e
C-x o C-n C-p C-p M-m C-p C-p M-m C-n C-n C-f C-f M-m
C-x o M-b M-d c o l o r - p C-e C-x C-e C-x o C-n C-n
M-m C-p C-f C-f C-f C-x o C-a C-k <down-mouse-1> <mouse-1>
<down-mouse-1> <mouse-1> <switch-frame> l e o <tab>
SPC L o o k s SPC l i k e SPC N S SPC g e t s SPC t
h e SPC X P M SPC b e c a u s e SPC M-( d s i a p l
y <M-backspace> d i s p l a M-b C-b C-b C-k SPC i t
SPC t h i n k s SPC i t SPC h o <backspace> <backspace>
o n l y SPC h a s SPC 9 <backspace> 8 - b i t SPC c
l o l C-x C-g <switch-frame> C-h f d i s p l <tab>
- l <backspace> <backspace> p l <tab> <return> <switch-frame>
<backspace> <backspace> <backspace> o l o r SPC f o
r SPC s o m e SPC r e a s o n , <return> <switch-frame>
<down-mouse-1> <mouse-movement> <mouse-1> <help-echo>
<help-echo> <down-mouse-1> <mouse-1> <down-mouse-1>
<mouse-1> <switch-frame> <switch-frame> <down-mouse-1>
<mouse-1> <help-echo> <switch-frame> <switch-frame>
C-x b <return> <help-echo> <down-mouse-1> <mouse-1>
<down-mouse-1> <mouse-1> <down-mouse-1> <mouse-1> <down-mouse-1>
<mouse-1> M-( l e t SPC M-( M-( f a n c e y <backspace>
<backspace> y M-/ M-/ SPC M-" s p l a s h . p n g C-e
C-b <return> C-x o C-x o M-( f a n c y - s p l a s
h - h e a d C-e C-x C-e <help-echo> <down-mouse-1>
<mouse-1> <menu-bar> <help-menu> <send-emacs-bug-r
eport>

Recent messages:
8
Evaluating...
Mark set
t
Type C-x 4 C-o RET to restore the other window.
Scanning for dabbrevs...100%
Expansion found in 'startup.el.gz'
Evaluating...
Mark set
nil





^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#3207: 23.0.93; x-display-planes is incorrect in NS port
  2009-05-04 17:59 Ian Eure
@ 2009-05-04 19:18 ` Leo
  0 siblings, 0 replies; 5+ messages in thread
From: Leo @ 2009-05-04 19:18 UTC (permalink / raw)
  To: bug-gnu-emacs; +Cc: emacs-pretest-bug

On 2009-05-04 18:59 +0100, Ian Eure wrote:
> When starting up NextStep Emacs compiled from CVS HEAD, the old XPM
> splash image is used, rather than the new PNG.

I can confirm this bug. Hope it is fixed before 23.1 is released.

Thank you.
-- 
.:  Leo  :.  [ sdl.web AT gmail.com ]  .: I use Emacs :.

               www.git-scm.com
    git - the one true version control system








^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#3207: 23.0.93; x-display-planes is incorrect in NS port
@ 2009-05-10 21:53 Chong Yidong
  2009-05-10 22:11 ` David Reitter
  0 siblings, 1 reply; 5+ messages in thread
From: Chong Yidong @ 2009-05-10 21:53 UTC (permalink / raw)
  To: Adrian Robert; +Cc: David Reitter, Ian Eure, 3207

Adrian, could you take a look at this bug?  Can you reproduce it?


Ian Eure <ian@digg.com> wrote:

> When starting up NextStep Emacs compiled from CVS HEAD, the old XPM  
> splash image is used, rather than the new PNG.
>
> This appears to be caused by (display-planes) reporting an eight-plane  
> display. This is almost certainly incorrect.
>
> Looking deeper, (display-planes) calls (x-display-planes), in nsfns.m.  
> I don’t see anything obviously wrong, but it’s reporting that I have  
> an 8-plane display when it’s 24-plane. Evaluating (x-display-color- 
> cells) produces the correct value: 16777216, indicating a 24-bit  
> display.






^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#3207: 23.0.93; x-display-planes is incorrect in NS port
  2009-05-10 21:53 bug#3207: 23.0.93; x-display-planes is incorrect in NS port Chong Yidong
@ 2009-05-10 22:11 ` David Reitter
  2009-05-10 22:21   ` Chong Yidong
  0 siblings, 1 reply; 5+ messages in thread
From: David Reitter @ 2009-05-10 22:11 UTC (permalink / raw)
  To: Chong Yidong; +Cc: Ian Eure, Adrian Robert, 3207

[-- Attachment #1: Type: text/plain, Size: 1348 bytes --]

On May 10, 2009, at 5:53 PM, Chong Yidong wrote:

> Adrian, could you take a look at this bug?  Can you reproduce it?
>
>
> Ian Eure <ian@digg.com> wrote:
>
>> When starting up NextStep Emacs compiled from CVS HEAD, the old XPM
>> splash image is used, rather than the new PNG.
>>
>> This appears to be caused by (display-planes) reporting an eight- 
>> plane
>> display. This is almost certainly incorrect.
>>
>> Looking deeper, (display-planes) calls (x-display-planes), in  
>> nsfns.m.
>> I don’t see anything obviously wrong, but it’s reporting that I have
>> an 8-plane display when it’s 24-plane. Evaluating (x-display-color-
>> cells) produces the correct value: 16777216, indicating a 24-bit
>> display.


Yeah, the x-display-planes implementation in nsfns.m should use  
NSBitsPerPixelFromDepth.
It reports 8 because this is 8 bits per color, and we have three  
colors.  Hence 24bit color depth.

- David



diff --git a/src/nsfns.m b/src/nsfns.m
index a6fb7f1..8b5c330 100644
--- a/src/nsfns.m
+++ b/src/nsfns.m
@@ -2486,7 +2486,7 @@ If omitted or nil, that stands for the selected  
frame's display.  */)
  {
    check_ns ();
    return make_number
-    (NSBitsPerSampleFromDepth ([ns_get_screen (display) depth]));
+    (NSBitsPerPixelFromDepth ([ns_get_screen (display) depth]));
  }




[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 2193 bytes --]

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* bug#3207: 23.0.93; x-display-planes is incorrect in NS port
  2009-05-10 22:11 ` David Reitter
@ 2009-05-10 22:21   ` Chong Yidong
  0 siblings, 0 replies; 5+ messages in thread
From: Chong Yidong @ 2009-05-10 22:21 UTC (permalink / raw)
  To: David Reitter; +Cc: Ian Eure, Adrian Robert, 3207

David Reitter <david.reitter@gmail.com> writes:

> Yeah, the x-display-planes implementation in nsfns.m should use
> NSBitsPerPixelFromDepth.  It reports 8 because this is 8 bits per
> color, and we have three colors.  Hence 24bit color depth.

Thanks.  I went ahead and checked in your patch.






^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-05-10 22:21 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-10 21:53 bug#3207: 23.0.93; x-display-planes is incorrect in NS port Chong Yidong
2009-05-10 22:11 ` David Reitter
2009-05-10 22:21   ` Chong Yidong
  -- strict thread matches above, loose matches on Subject: below --
2009-05-04 17:59 Ian Eure
2009-05-04 19:18 ` Leo

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).