emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: 23.0.60; messed up frame parameters


From: Drew Adams
Subject: RE: 23.0.60; messed up frame parameters
Date: Sat, 5 Apr 2008 13:16:23 -0700

Some more info: What I described is apparently only for the first frame created
- I create two frames initially: a buffer frame (e.g. Dired) and a standalone
minibuffer frame.

Subsequently created frames seem to be OK, for the most part - no duplicates
etc.

However, I see this other problem (related?): I define buffers whose names start
and end with `*' as special-display buffers, and I define
`special-display-frame-alist' (e.g. with LightSteelBlue as background). That
works OK. But I also have this:

(add-to-list
 'special-display-buffer-names
 (list "*Help*" '1on1-display-*Help*-frame
       (list (cons 'background-color 1on1-help-frame-background)
             (cons 'mouse-color 1on1-help-frame-mouse+cursor-color)
             (cons 'cursor-color 1on1-help-frame-mouse+cursor-color)
             '(height . 40))))

IOW, the frame for *Help* should be different, having its own background (e.g.
Thistle) etc.

What I get in fact is this for frame-parameters in *Help*:

((parent-id)
 (explicit-name)
 (display . "")
 (icon-name)
 (window-id . "1378186")
 (buried-buffer-list)
 (buffer-list #<buffer *Help*>)
 (minibuffer)
 (modeline . t)
 (name . "*Help*")
 (background-mode . light)
 (display-type . color)
 (unsplittable . t)
 (width . 54)
 (height . 5)
 (vertical-scroll-bars . right)
 (user-position . t)
 (unsplittable . t)
 (left . 10)
 (top . 766)
 (background-color . "LightSteelBlue")
 (foreground-color . "Black")
 (menu-bar-lines . 1)
 (cursor-color . "Red")
 (mouse-color . "Yellow")
 (height . 14)
 (width . 80)
 (font . "-*-Lucida Console-normal-r-*-*-14-112-96-96-c-*-iso8859-1")
 (height . 40)
 (cursor-color . "Blue Violet")
 (mouse-color . "Blue Violet")
 (background-color . "Thistle")
 (visibility . t)
 (scroll-bar-width . 17)
 (cursor-type . bar)
 (auto-lower)
 (auto-raise)
 (icon-type)
 (title)
 (buffer-predicate)
 (tool-bar-lines . 0)
 (menu-bar-lines . 1)
 (right-fringe . 0)
 (left-fringe . 0)
 (line-spacing)
 (screen-gamma)
 (border-color . "black")
 (cursor-color . "Blue Violet")
 (mouse-color . "Blue Violet")
 (background-color . "Thistle")
 (foreground-color . "Black")
 (vertical-scroll-bars . right)
 (internal-border-width . 0)
 (border-width . 2)
 (font . "-outline-lucida
console-normal-roman-normal-mono-14-*-*-*-*-*-fontset-startup")
 (font-backend uniscribe gdi))

Note, for example, the multiple occurrences of background-color, the first of
which is the color for special-display-frames, not for *Help*.

This is what I get in Emacs 22.2, which is correct:

((parent-id)
 (explicit-name)
 (display . "")
 (visibility . t)
 (icon-name)
 (window-id . "1050606")
 (top . 0)
 (left . 0)
 (buffer-list #<buffer *Help*>)
 (unsplittable . t)
 (minibuffer)
 (modeline . t)
 (width . 69)
 (height . 28)
 (name . "*Help*")
 (background-mode . light)
 (display-type . color)
 (scroll-bar-width . 17)
 (cursor-type . bar)
 (auto-lower)
 (auto-raise)
 (icon-type)
 (title)
 (buffer-predicate)
 (tool-bar-lines . 0)
 (menu-bar-lines . 1)
 (right-fringe . 0)
 (left-fringe . 0)
 (line-spacing)
 (screen-gamma)
 (border-color . "black")
 (cursor-color . "Blue Violet")
 (mouse-color . "Blue Violet")
 (background-color . "Thistle")
 (foreground-color . "Black")
 (vertical-scroll-bars . right)
 (internal-border-width . 0)
 (border-width . 2)
 (font . "-outline-Lucida
Console-normal-r-normal-normal-14-105-96-96-c-*-iso8859-1"))

I have the same problem for the *Completions* frame, which I define similarly.
The frames do not have the right background etc. The background for normal
special-display frames is superimposed. 

And, again, the incorrect background color covers most of the frame, but not all
of it. It does not cover the frame past the last of the text (but see next), and
it does not cover a thin strip at the right.

Though the wrong color does not show below the end of the text in general, it
does show there as a thin strip along the left side. Both this thin strip and
the thin strip of correct background at the right are about one char width. See
attached screenshot.

HTH.


> From: Drew Adams Sent: Saturday, April 05, 2008 12:31 PM 
> This is not a complete report from emacs -Q. I don't have the time
> for that right now. But this should help. I tried Emacs 23 with my
> normal code (not emacs -Q). 
>  
> Summary: Frame parameters are really messed up.
>  
> I've included two listings here: (1) the frame parameters from a Dired
> buffer in GNU Emacs 22.2.1 (i386-mingw-nt5.1.2600) of 2008-03-26 on
> RELEASE and those from the same thing with GNU Emacs 23.0.60.1
> (i386-mingw-nt5.1.2600) of 2008-04-04 on LENNART-69DE564. The Emacs 22
> listing shows the frame parameters that I want and that my code
> specifies. The Emacs 23 parameters are incorrect.
>  
> Several frame parameters have been changed so that I don't get what I
> specified: frame background color, absence/presence of fringe,
> etc. These are marked "WRONG" in the Emacs 23 listing.
>  
> [Actually, the incorrect background color does not appear over the
> whole frame. At the end of the buffer/frame, in the empty space after
> the last text, the correct background color shows. And as you scroll,
> the correct background color flashes over the middle of the frame
> momentarily. But the incorrect color (white) returns immediately.]
>  
> In addition, there are multiple occurrences of parameters - these are
> marked "extra" in the listing. Sometimes the values are changed in the
> extra occurrences; sometimes the values are the same. Sometimes the an
> occurrence with a changed value comes before the occurrence with the
> correct value; sometimes it comes after it.
>  
> In addition, there are new parameters that don't occur in the Emacs
> 22.2 listing - these are marked "new" in the listing. In some cases,
> even these new parameters (which are not provided by my code) are
> duplicated.
>  
> Minor info: Though the right fringe, like the left fringe, has the
> incorrect value of 8, visually, the right fringe is twice as wide as
> the left fringe - more like 16 than 8. (In any case, I specified 0,
> not 8.)
>  
> Emacs 22.2 Listing of frame-parameters (correct)
> ------------------------------------------------
> (
>  (auto-lower)
>  (auto-raise)
>  (background-color . "LightBlue")
>  (background-mode . light)
>  (border-color . "black")
>  (border-width . 2)
>  (buffer-list #<buffer drews-lisp-20>)
>  (buffer-predicate)
>  (cursor-color . "Red")
>  (cursor-type . bar)
>  (display . "")
>  (display-type . color)
>  (explicit-name . t)
>  (font . "-outline-Lucida
> Console-normal-r-normal-normal-14-105-96-96-c-*-iso8859-1")
>  (foreground-color . "Black")
>  (height . 57)
>  (icon-name)
>  (icon-type)
>  (internal-border-width . 0)
>  (left . 0)
>  (left-fringe . 0)
>  (line-spacing)
>  (menu-bar-lines . 1)
>  (minibuffer)
>  (modeline . t)
>  (mouse-color . "Red")
>  (name . "drews-lisp-20")
>  (parent-id)
>  (right-fringe . 0)
>  (screen-gamma)
>  (scroll-bar-width . 17)
>  (title)
>  (tool-bar-lines . 0)
>  (top . 0)
>  (unsplittable)
>  (vertical-scroll-bars . right)
>  (visibility . t)
>  (width . 49)
>  (window-id . "591706")
> )
>  
> Emacs 23 Listing of frame-parameters (incorrect)
> ------------------------------------------------
>  
> ((parent-id)
>  (name . "drews-lisp-20")
>  ;; new:
>  (font-backend uniscribe gdi)
>  ;; extra & WRONG:
>  (font . "-outline-courier
> new-normal-roman-normal-mono-13-*-*-*-*-*-fontset-startup")
>  (border-width . 2)
>  (internal-border-width . 0)
>  (vertical-scroll-bars . right)
>  ;; extra & WRONG:
>  (foreground-color . "SystemWindowText")
>  ;; extra & WRONG:
>  (background-color . "SystemWindow")
>  ;; extra & WRONG:
>  (mouse-color . "black")
>  (cursor-color . "Red")
>  (border-color . "black")
>  ;; new:
>  (screen-gamma)
>  (line-spacing)
>  ;; extra & WRONG:
>  (left-fringe . 8)
>  ;; extra & WRONG:
>  (right-fringe . 8)
>  (menu-bar-lines . 1)
>  (tool-bar-lines . 0)
>  (buffer-predicate)
>  (title)
>  (icon-type)
>  (auto-raise)
>  (auto-lower)
>  (cursor-type . bar)
>  (scroll-bar-width . 17)
>  (visibility . t)
>  ;; new:
>  (window-system . w32)
>  ;; NEW (and false/ineffective):
>  (horizontal-scroll-bars . t)
>  (display-type . color)
>  (background-mode . light)
>  ;; new:
>  (environment)
>  (height . 57)
>  (width . 49)
>  (modeline . t)
>  (minibuffer)
>  (unsplittable)
>  (buffer-list #<buffer drews-lisp-20>)
>  ;; new:
>  (buried-buffer-list)
>  (left . 0)
>  (top . 0)
>  (window-id . "984822")
>  (icon-name)
>  (display . "")
>  (explicit-name . t)
>  ;; extra:
>  (tool-bar-lines . 0)
>  ;; extra:
>  (menu-bar-lines . 1)
>  ;; new:
>  (fringe . 0)
>  (right-fringe . 0)
>  (left-fringe . 0)
>  ;; extra:
>  (icon-type)
>  ;; extra:
>  (vertical-scroll-bars . right)
>  ;; new:
>  (user-position . t)
>  ;; extra:
>  (minibuffer)
>  ;; extra & WRONG:
>  (height . 35)
>  ;; extra & WRONG:
>  (width . 80)
>  ;; extra:
>  (left . 0)
>  ;; extra:
>  (top . 0)
>  ;; extra:
>  (menu-bar-lines . 1)
>  ;; extra:
>  (cursor-type . bar)
>  ;; extra:
>  (cursor-color . "Red")
>  (mouse-color . "Red")
>  (font . "-*-Lucida Console-normal-r-*-*-14-112-96-96-c-*-iso8859-1")
>  ;; extra:
>  (background-color . "LightBlue")
>  ;; extra:
>  (foreground-color . "Black")
>  ;; extra:
>  (tool-bar-lines . 0)
>  ;; extra:
>  (menu-bar-lines . 1)
>  ;; new:
>  (reverse)
>  ;; extra:
>  (user-position . t)
>  ;; new:
>  (user-size . t)
>  ;; extra & WRONG:
>  (visibility)
>  ;; extra:
>  (scroll-bar-width . 17)
>  ;; extra:
>  (cursor-type . bar)
>  ;; extra:
>  (auto-lower)
>  ;; extra:
>  (auto-raise)
>  ;; extra:
>  (icon-type)
>  ;; extra:
>  (title)
>  ;; extra:
>  (buffer-predicate)
>  ;; extra:
>  (tool-bar-lines . 0)
>  ;; extra:
>  (menu-bar-lines . 1)
>  ;; extra:
>  (right-fringe . 0)
>  ;; extra:
>  (left-fringe . 0)
>  ;; extra:
>  (line-spacing)
>  ;; extra:
>  (screen-gamma)
>  ;; extra:
>  (border-color . "black")
>  ;; extra:
>  (cursor-color . "Red")
>  ;; extra:
>  (mouse-color . "Red")
>  ;; extra:
>  (background-color . "LightBlue")
>  ;; extra:
>  (foreground-color . "Black")
>  ;; extra:
>  (vertical-scroll-bars . right)
>  ;; extra:
>  (internal-border-width . 0)
>  ;; extra:
>  (border-width . 2)
>  ;; extra & (WRONG?):
>  (font . "-outline-lucida
> console-normal-roman-normal-mono-14-*-*-*-*-*-fontset-startup")
>  ;; extra:
>  (font-backend uniscribe gdi)
> )
>  
>  
>  
> 
> In GNU Emacs 23.0.60.1 (i386-mingw-nt5.1.2600)
>  of 2008-04-04 on LENNART-69DE564
> Windowing system distributor `Microsoft Corp.', version 5.1.2600
> configured using `configure --with-gcc (3.4) --no-opt 
> --cflags -Ic:/g/include
> -fno-crossjumping'
>  
> 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: ENU
>   value of $XMODIFIERS: nil
>   locale-coding-system: cp1252
>   default-enable-multibyte-characters: t
>  
> Major mode: Dired by name
>  
> Minor modes in effect:
>   display-time-mode: t
>   savehist-mode: t
>   icomplete-mode: t
>   tool-bar-pop-up-mode: t
>   icicle-mode: t
>   minibuffer-indicate-depth-mode: t
>   pretty-control-l-mode: t
>   delete-selection-mode: t
>   tabbar-mode: t
>   show-paren-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-compression-mode: t
>   size-indication-mode: t
>   column-number-mode: t
>   line-number-mode: t
>   transient-mark-mode: t
>  
> Recent input:
> <switch-frame> <switch-frame> <help-echo> <help-echo> 
> <help-echo> <help-echo> <menu-bar> <help-menu> <se
> nd-emacs-bug-report>
>  
> Recent messages:
> Loading delsel...done
> Turned OFF automatically telling Customize of outside changes.
> Turned ON making cursor a box when Emacs is idle.
> Turning ON Icicle mode...done
> Loading c:/drews-lisp-20/_drews-customizations.el (source)...
> Loading `_drews-customizations.el'...done.
> Loading c:/drews-lisp-20/_drews-customizations.el (source)...done
> Buffer `*scratch*' is in Lisp Interaction mode.   For info on 
> the mode: `C-h m'.
> For information about GNU Emacs and the GNU system, type M-x 
> about-emacs.
> Buffer `drews-lisp-20' is in Dired by name mode.   For info 
> on the mode: `h'.
> 
> 
> 
> 
> 

Attachment: throw--emacs-bad-background.png
Description: PNG image


reply via email to

[Prev in Thread] Current Thread [Next in Thread]