From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#8562: Emacs 23.1 and later don't work in windows 98 Date: Wed, 08 Jun 2011 23:36:35 +0300 Message-ID: <83vcwgawmk.fsf@gnu.org> References: <83d3k88k6o.fsf@gnu.org> <83wri4kpwb.fsf@gnu.org> <83d3j9e2pn.fsf@gnu.org> <8339k3esws.fsf@gnu.org> <83wrhed91s.fsf@gnu.org> <838vtscbeu.fsf@gnu.org> <83vcwvc1eq.fsf@gnu.org> <83vcwsf2ra.fsf@gnu.org> <83k4d6fuph.fsf@gnu.org> <83pqmve2s2.fsf@gnu.org> <837h92dqai.fsf@gnu.org> <83r579c6wn.fsf@gnu.org> <8362ohcrht.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE X-Trace: dough.gmane.org 1307565536 1652 80.91.229.12 (8 Jun 2011 20:38:56 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 8 Jun 2011 20:38:56 +0000 (UTC) Cc: 8562@debbugs.gnu.org To: oslsachem Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jun 08 22:38:51 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QUPWd-00012s-8X for geb-bug-gnu-emacs@m.gmane.org; Wed, 08 Jun 2011 22:38:51 +0200 Original-Received: from localhost ([::1]:60015 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QUPWc-0001Wi-Eg for geb-bug-gnu-emacs@m.gmane.org; Wed, 08 Jun 2011 16:38:50 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:42786) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QUPUv-0001FB-CA for bug-gnu-emacs@gnu.org; Wed, 08 Jun 2011 16:37:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QUPUt-0006Q2-JX for bug-gnu-emacs@gnu.org; Wed, 08 Jun 2011 16:37:05 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:59200) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QUPUt-0006Px-6t for bug-gnu-emacs@gnu.org; Wed, 08 Jun 2011 16:37:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1QUPUs-00012Q-JT; Wed, 08 Jun 2011 16:37:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 08 Jun 2011 20:37:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 8562 X-GNU-PR-Package: emacs,w32 X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 8562-submit@debbugs.gnu.org id=B8562.13075654053962 (code B ref 8562); Wed, 08 Jun 2011 20:37:02 +0000 Original-Received: (at 8562) by debbugs.gnu.org; 8 Jun 2011 20:36:45 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QUPUa-00011r-D2 for submit@debbugs.gnu.org; Wed, 08 Jun 2011 16:36:44 -0400 Original-Received: from mtaout21.012.net.il ([80.179.55.169]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QUPUX-00011d-4I for 8562@debbugs.gnu.org; Wed, 08 Jun 2011 16:36:42 -0400 Original-Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0LMH00100NBONE00@a-mtaout21.012.net.il> for 8562@debbugs.gnu.org; Wed, 08 Jun 2011 23:36:34 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([84.229.223.140]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LMH001ERNWWENA0@a-mtaout21.012.net.il>; Wed, 08 Jun 2011 23:36:34 +0300 (IDT) In-reply-to: X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Wed, 08 Jun 2011 16:37:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:47043 Archived-At: > Date: Wed, 8 Jun 2011 20:11:37 +0200 > From: oslsachem > Cc: 8562@debbugs.gnu.org >=20 > In any version of windows, if the window apparently does not have a= t > least a certain height and I type c-h c-a, I get the *about GNU Ema= cs* > buffer version of text terminal Emacs (i.e. emacs -nw) which does n= ot > show a logotype: >=20 > http://www.speedyshare.com/files/28873451/EmacsNotHighEnough.png >=20 > On the contrary, if the window has at least a certain height and I > type c-h c-a, I get the expected *about GNU Emacs* buffer version o= f > graphical Emacs which, in this case, shows the black and white, > coarser logotype: >=20 > http://www.speedyshare.com/files/28873452/EmacsHighEnough.png Yes, this works as intended, see again the function use-fancy-splash-screens-p, which tests the frame size against the size of the image displayed in the fancy splash screen. > However, I still have one more question left: > In any version of Emacs for windows, if you start Emacs without the= -Q > option and then type c-h c-a you end up with two differently named = and > sized buffers (*GNU Emacs*, *About GNU Emacs*) which have the same > contents and so, presumably, the same functionality. Is there a rea= son > for this? The contents are very similar, but not identical. Feel free to ask this question on emacs-devel@gnu.org, though: perhaps there's a place for improvement there. > > Btw, could you please enumerate those functions you replaced? = =A0I'm not > > sure my notes about that are accurate. >=20 > In the end, only 3 functions seem to need to be imported from > unicows.dll in windows 98: >=20 > GetOutlineTextMetricsW >=20 > GetTextMetricsW >=20 > GetGlyphOutlineW >=20 > These seem to be the functions signatures ( by consulting MSDN ): >=20 > typedef UINT ( * GetOutlineTextMetricsW_Proc)( > HDC hdc, > UINT cbData, > LPOUTLINETEXTMETRICW lpotmw > ); > typedef BOOL ( * GetTextMetricsW_Proc)( > HDC hdc, > LPTEXTMETRICW lptmw > ); > typedef DWORD ( * GetGlyphOutlineW_Proc)( > HDC hdc, > UINT uChar, > UINT uFormat, > LPGLYPHMETRICS lpgm, > DWORD cbBuffer, > LPVOID lpvBuffer, > const MAT2 *lpmat2 > ); >=20 > I have changed two parameter types to avoid these compiler warnings= : >=20 > warning: passing argument 3 of 'Get_Outline_Text_Metrics_W' from > incompatible pointer type > note: expected 'LPOUTLINETEXTMETRIC' but argument is of type 'struc= t > OUTLINETEXTMETRICW *' >=20 > warning: passing argument 2 of 'Get_Text_Metrics_W' from incompatib= le > pointer type > note: expected 'LPTEXTMETRIC' but argument is of type 'struct TEXTM= ETRICW *' Thanks.