all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#571: 23.0.60; Solaris 5.8 version hangs (X resources for faces)
@ 2008-07-18 11:27 ` Klaus Zeitler
  2008-08-21 14:05   ` bug#571: marked as done (23.0.60; Solaris 5.8 version hangs (X resources for faces)) Emacs bug Tracking System
  0 siblings, 1 reply; 2+ messages in thread
From: Klaus Zeitler @ 2008-07-18 11:27 UTC (permalink / raw)
  To: emacs-pretest-bug


Please write in English if possible, because the Emacs maintainers
usually do not have translators to read other languages for them.

Your bug report will be posted to the emacs-pretest-bug@gnu.org mailing list.

Please describe exactly what actions triggered the bug
and the precise symptoms of the bug:


The following 3 lines in function face-set-after-frame-default in faces.el
cause emacs to hang at startup (before the initial frame pops up).

	  ;; X resouces for the default face are applied during
	  ;; x-create-frame.
	  (and (not (eq face 'default))
	       (memq (window-system frame) '(x w32 mac)) 	 
	       (make-face-x-resource-internal face frame))


When I evaluate the function below in scratch buffer with
(face-set-after-frame-default-tst (selected-frame))
I get: Wrong type argument: font, unspecified


(defun face-set-after-frame-default-tst (frame &optional parameters)
  "Initialize the frame-local faces of FRAME.
Calculate the face definitions using the face specs, custom theme
settings, X resources, and `face-new-frame-defaults'.
Finally, apply any relevant face attributes found amongst the
frame parameters in PARAMETERS and `default-frame-alist'."
  (dolist (face (nreverse (face-list)))
    (condition-case ()
	(progn
	  ;; Initialize faces from face spec and custom theme.
	  (face-spec-recalc face frame)
	  ;; X resouces for the default face are applied during
	  ;; x-create-frame.
	  (and (not (eq face 'default))
	       (memq (window-system frame) '(x w32 mac)) 	 
	       (make-face-x-resource-internal face frame))
	  ;; Apply attributes specified by face-new-frame-defaults
	  (internal-merge-in-global-face face frame))
      ;; Don't let invalid specs prevent frame creation.
      (error nil))))


It's the face 'menu' that causes the error.

As a workaround I've now added a font spec for the menu face to my
Xresources file and the error is gone, e.g.
Emacs.menu.attributeFont: -b&h-lucidatypewriter-medium-r-normal-sans-17-*-*-*-*-*-iso8859-1



In GNU Emacs 23.0.60.1 (sparc-sun-solaris2.8, Motif Version 2.1.0)
 of 2008-07-17 on sfsws4
Windowing system distributor `Sun Microsystems, Inc.', version 11.0.6410
configured using `configure  '--prefix=/vol/freeware/SunOS-5.8/emacs/cvs' '--sharedstatedir=/vol/freeware/SunOS-5.8/emacs/cvs/share' '--with-x-toolkit=motif' '--x-includes=/usr/openwin/include:/usr/local/gnu/include:/opt/exp/gnu/include:/opt/exp/include:/opt/exp/lib/xpm/include' '--x-libraries=/usr/openwin/lib:/usr/local/gnu/lib:/opt/exp/gnu/lib:/opt/exp/lib:/opt/exp/lib/xpm/lib' '--with-pop' 'CC=gcc' 'XMKMF=/usr/openwin/bin/xmkmf''

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: C
  value of $XMODIFIERS: nil
  locale-coding-system: nil
  default-enable-multibyte-characters: t

Major mode: Lisp Interaction

Minor modes in effect:
  desktop-save-mode: t
  url-handler-mode: t
  global-hi-lock-mode: t
  hi-lock-mode: t
  auto-image-file-mode: t
  recentf-mode: t
  global-auto-revert-mode: t
  display-time-mode: t
  which-function-mode: t
  msb-mode: t
  minibuffer-electric-default-mode: t
  savehist-mode: t
  minibuffer-indicate-depth-mode: t
  partial-completion-mode: t
  cua-mode: t
  tooltip-mode: t
  tool-bar-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
  unify-8859-on-decoding-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  column-number-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
C-x C-f . l o g t SPC <backspace> <return> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<left> <left> <left> <left> <left> <left> <left> <left> 
<backspace> 4 C-x C-s C-x k <return> <help-echo> <select-window> 
<help-echo> <help-echo> <f8> n SPC SPC q <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> SPC SPC <down> SPC <down> SPC 
<down> <down> <down> <down> <down> <down> q <up> <up> 
<up> <up> <up> <up> <up> <up> <up> <up> <up> <up> <up> 
<up> SPC c <help-echo> <select-window> <select-window> 
<select-window> <help-echo> <select-window> <help-echo> 
<select-window> <select-window> <down-mouse-2> <mouse-2> 
<down-mouse-2> <mouse-2> SPC SPC <backspace> e q SPC 
SPC SPC SPC SPC SPC C-g q <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> SPC <up> <down> <up> <down> SPC q <help-echo> 
<help-echo> <switch-frame> <help-echo> <select-window> 
<switch-frame> q <help-echo> <help-echo> <menu-bar> 
<help-menu> <send-emacs-bug-report> <select-window> 
C-g <f8> n <switch-frame> <switch-frame> <switch-frame> 
<help-echo> <switch-frame> <prior> <next> <next> <next> 
<next> <prior> <prior> <prior> <prior> <prior> <down-mouse-2> 
<mouse-2> 2 0 0 0 <return> <prior> <next> <next> <next> 
<next> <prior> <prior> <prior> <prior> <down-mouse-2> 
<mouse-2> <select-window> <select-window> <down-mouse-1> 
<mouse-movement> <mouse-movement> <drag-mouse-1> <select-window> 
<help-echo> <switch-frame> <help-echo> <help-echo> 
<menu-bar> <help-menu> <send-emacs-bug-report>

Recent messages:
Reading active file from archive via nnfolder...done
Checking new news...done
going to start of *Carpal Group*
Retrieving newsgroup: nnml:emacs...
going to start of *Carpal Summary*
Fetching headers for nnml:emacs...done
Scoring...done
Scoring...done
Generating summary...done
No more unread articles

-- 
 --------------------------------------------------
|  Klaus Zeitler      Alcatel-Lucent               |
|  Email:             kzeitler@alcatel-lucent.com  |
 --------------------------------------------------
---
One nice thing about egotists: they don't talk about other people.






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

* bug#571: marked as done (23.0.60; Solaris 5.8 version hangs (X  resources for faces))
  2008-07-18 11:27 ` bug#571: 23.0.60; Solaris 5.8 version hangs (X resources for faces) Klaus Zeitler
@ 2008-08-21 14:05   ` Emacs bug Tracking System
  0 siblings, 0 replies; 2+ messages in thread
From: Emacs bug Tracking System @ 2008-08-21 14:05 UTC (permalink / raw)
  To: Chong Yidong

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


Your message dated Thu, 21 Aug 2008 09:57:25 -0400
with message-id <877iaampx6.fsf@cyd.mit.edu>
and subject line Re: 23.0.60; Solaris 5.8 version hangs (X resources for faces)
has caused the Emacs bug report #571,
regarding 23.0.60; Solaris 5.8 version hangs (X resources for faces)
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact don@donarmstrong.com
immediately.)


-- 
571: http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=571
Emacs Bug Tracking System
Contact don@donarmstrong.com with problems

[-- Attachment #2: Type: message/rfc822, Size: 8947 bytes --]

From: Klaus Zeitler <kzeitler@alcatel-lucent.com>
To: emacs-pretest-bug@gnu.org
Subject: 23.0.60; Solaris 5.8 version hangs (X resources for faces)
Date: Fri, 18 Jul 2008 13:27:05 +0200
Message-ID: <q5gk5fj1lh2.fsf@sfsw51.de.lucent.com>


Please write in English if possible, because the Emacs maintainers
usually do not have translators to read other languages for them.

Your bug report will be posted to the emacs-pretest-bug@gnu.org mailing list.

Please describe exactly what actions triggered the bug
and the precise symptoms of the bug:


The following 3 lines in function face-set-after-frame-default in faces.el
cause emacs to hang at startup (before the initial frame pops up).

	  ;; X resouces for the default face are applied during
	  ;; x-create-frame.
	  (and (not (eq face 'default))
	       (memq (window-system frame) '(x w32 mac)) 	 
	       (make-face-x-resource-internal face frame))


When I evaluate the function below in scratch buffer with
(face-set-after-frame-default-tst (selected-frame))
I get: Wrong type argument: font, unspecified


(defun face-set-after-frame-default-tst (frame &optional parameters)
  "Initialize the frame-local faces of FRAME.
Calculate the face definitions using the face specs, custom theme
settings, X resources, and `face-new-frame-defaults'.
Finally, apply any relevant face attributes found amongst the
frame parameters in PARAMETERS and `default-frame-alist'."
  (dolist (face (nreverse (face-list)))
    (condition-case ()
	(progn
	  ;; Initialize faces from face spec and custom theme.
	  (face-spec-recalc face frame)
	  ;; X resouces for the default face are applied during
	  ;; x-create-frame.
	  (and (not (eq face 'default))
	       (memq (window-system frame) '(x w32 mac)) 	 
	       (make-face-x-resource-internal face frame))
	  ;; Apply attributes specified by face-new-frame-defaults
	  (internal-merge-in-global-face face frame))
      ;; Don't let invalid specs prevent frame creation.
      (error nil))))


It's the face 'menu' that causes the error.

As a workaround I've now added a font spec for the menu face to my
Xresources file and the error is gone, e.g.
Emacs.menu.attributeFont: -b&h-lucidatypewriter-medium-r-normal-sans-17-*-*-*-*-*-iso8859-1



In GNU Emacs 23.0.60.1 (sparc-sun-solaris2.8, Motif Version 2.1.0)
 of 2008-07-17 on sfsws4
Windowing system distributor `Sun Microsystems, Inc.', version 11.0.6410
configured using `configure  '--prefix=/vol/freeware/SunOS-5.8/emacs/cvs' '--sharedstatedir=/vol/freeware/SunOS-5.8/emacs/cvs/share' '--with-x-toolkit=motif' '--x-includes=/usr/openwin/include:/usr/local/gnu/include:/opt/exp/gnu/include:/opt/exp/include:/opt/exp/lib/xpm/include' '--x-libraries=/usr/openwin/lib:/usr/local/gnu/lib:/opt/exp/gnu/lib:/opt/exp/lib:/opt/exp/lib/xpm/lib' '--with-pop' 'CC=gcc' 'XMKMF=/usr/openwin/bin/xmkmf''

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: C
  value of $XMODIFIERS: nil
  locale-coding-system: nil
  default-enable-multibyte-characters: t

Major mode: Lisp Interaction

Minor modes in effect:
  desktop-save-mode: t
  url-handler-mode: t
  global-hi-lock-mode: t
  hi-lock-mode: t
  auto-image-file-mode: t
  recentf-mode: t
  global-auto-revert-mode: t
  display-time-mode: t
  which-function-mode: t
  msb-mode: t
  minibuffer-electric-default-mode: t
  savehist-mode: t
  minibuffer-indicate-depth-mode: t
  partial-completion-mode: t
  cua-mode: t
  tooltip-mode: t
  tool-bar-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
  unify-8859-on-decoding-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  column-number-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
C-x C-f . l o g t SPC <backspace> <return> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<left> <left> <left> <left> <left> <left> <left> <left> 
<backspace> 4 C-x C-s C-x k <return> <help-echo> <select-window> 
<help-echo> <help-echo> <f8> n SPC SPC q <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> SPC SPC <down> SPC <down> SPC 
<down> <down> <down> <down> <down> <down> q <up> <up> 
<up> <up> <up> <up> <up> <up> <up> <up> <up> <up> <up> 
<up> SPC c <help-echo> <select-window> <select-window> 
<select-window> <help-echo> <select-window> <help-echo> 
<select-window> <select-window> <down-mouse-2> <mouse-2> 
<down-mouse-2> <mouse-2> SPC SPC <backspace> e q SPC 
SPC SPC SPC SPC SPC C-g q <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> SPC <up> <down> <up> <down> SPC q <help-echo> 
<help-echo> <switch-frame> <help-echo> <select-window> 
<switch-frame> q <help-echo> <help-echo> <menu-bar> 
<help-menu> <send-emacs-bug-report> <select-window> 
C-g <f8> n <switch-frame> <switch-frame> <switch-frame> 
<help-echo> <switch-frame> <prior> <next> <next> <next> 
<next> <prior> <prior> <prior> <prior> <prior> <down-mouse-2> 
<mouse-2> 2 0 0 0 <return> <prior> <next> <next> <next> 
<next> <prior> <prior> <prior> <prior> <down-mouse-2> 
<mouse-2> <select-window> <select-window> <down-mouse-1> 
<mouse-movement> <mouse-movement> <drag-mouse-1> <select-window> 
<help-echo> <switch-frame> <help-echo> <help-echo> 
<menu-bar> <help-menu> <send-emacs-bug-report>

Recent messages:
Reading active file from archive via nnfolder...done
Checking new news...done
going to start of *Carpal Group*
Retrieving newsgroup: nnml:emacs...
going to start of *Carpal Summary*
Fetching headers for nnml:emacs...done
Scoring...done
Scoring...done
Generating summary...done
No more unread articles

-- 
 --------------------------------------------------
|  Klaus Zeitler      Alcatel-Lucent               |
|  Email:             kzeitler@alcatel-lucent.com  |
 --------------------------------------------------
---
One nice thing about egotists: they don't talk about other people.



[-- Attachment #3: Type: message/rfc822, Size: 1915 bytes --]

From: Chong Yidong <cyd@stupidchicken.com>
To: kzeitler@alcatel-lucent.com
Cc: Glenn Morris <rgm@gnu.org>, 571-done@emacsbugs.donarmstrong.com
Subject: Re: 23.0.60; Solaris 5.8 version hangs (X resources for faces)
Date: Thu, 21 Aug 2008 09:57:25 -0400
Message-ID: <877iaampx6.fsf@cyd.mit.edu>

Klaus Zeitler <kzeitler@alcatel-lucent.com> writes:

>>>>>> "Chong" == Chong Yidong <cyd@stupidchicken.com> writes:
>     Chong> 
>     Chong> I can't figure out why you get the error you do... but does the
>     Chong> following patch at least prevent the crash?
>
> Even better, with your patch emacs starts up without any problems
> (though it might hide a potential bug).
>
> My guess is there's a problem with the font specification.

I don't understand it either.  Since no one else has been able to
reproduce this problem, I guess it's better to install the workaround.


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

end of thread, other threads:[~2008-08-21 14:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <877iaampx6.fsf@cyd.mit.edu>
2008-07-18 11:27 ` bug#571: 23.0.60; Solaris 5.8 version hangs (X resources for faces) Klaus Zeitler
2008-08-21 14:05   ` bug#571: marked as done (23.0.60; Solaris 5.8 version hangs (X resources for faces)) Emacs bug Tracking System

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.