GNU bug report logs -
#832
Compiling Emacs.app fails this afternoon.
Previous Next
Reported by: "Gilbert Harman" <harman <at> princeton.edu>
Date: Sat, 30 Aug 2008 18:10:05 UTC
Severity: important
Merged with 823,
827,
831,
833,
852,
855,
862,
866,
887,
903
Done: Adrian Robert <adrian.b.robert <at> gmail.com>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 832 in the body.
You can then email your comments to 832 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded to
bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>
:
bug#832
; Package
emacs
.
Full text and
rfc822 format available.
Acknowledgement sent to
"Gilbert Harman" <harman <at> princeton.edu>
:
New bug report received and forwarded. Copy sent to
Emacs Bugs <bug-gnu-emacs <at> gnu.org>
.
Full text and
rfc822 format available.
Message #5 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):
[Message part 1 (text/plain, inline)]
After ./configure --with-ns
....
make -j2
....
nsfont.m: In function 'nsfont_char_width':
nsfont.m:481: warning: 'widthOfString:' is deprecated (declared at
/System/Library/Frameworks/AppKit.framework/Headers/NSFont.h:216)
nsfont.m: In function 'nsfont_open':
nsfont.m:726: warning: 'widthOfString:' is deprecated (declared at
/System/Library/Frameworks/AppKit.framework/Headers/NSFont.h:216)
nsfont.m: In function 'nsfont_draw':
nsfont.m:907: error: 'struct glyph_string' has no member named 'gidx'
nsfont.m:908: error: 'struct glyph_string' has no member named 'gidx'
nsfont.m:914: error: 'struct glyph_string' has no member named 'gidx'
nsfont.m:1097: error: 'struct glyph_string' has no member named 'gidx'
nsfont.m:1103: error: 'struct glyph_string' has no member named 'gidx'
make[1]: *** [nsfont.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make: *** [src] Error 2
Gil
(Intel Mac OS X 10.5.4)
[Message part 2 (text/html, inline)]
bug reassigned from package `emacs' to `emacs,ns'.
Request was from
Glenn Morris <rgm <at> gnu.org>
to
control <at> emacsbugs.donarmstrong.com
.
(Sat, 30 Aug 2008 19:55:04 GMT)
Full text and
rfc822 format available.
Merged 823 827 831 832.
Request was from
Glenn Morris <rgm <at> gnu.org>
to
control <at> emacsbugs.donarmstrong.com
.
(Sat, 30 Aug 2008 19:55:05 GMT)
Full text and
rfc822 format available.
Merged 823 827 831 832 833.
Request was from
Glenn Morris <rgm <at> gnu.org>
to
control <at> emacsbugs.donarmstrong.com
.
(Sat, 30 Aug 2008 22:45:04 GMT)
Full text and
rfc822 format available.
Information forwarded to
bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>, don <at> donarmstrong.com
:
bug#832
; Package
emacs,ns
.
Full text and
rfc822 format available.
Acknowledgement sent to
Daniel Koning <dkoning <at> smu.edu>
:
Extra info received and forwarded to list. Copy sent to
Emacs Bugs <bug-gnu-emacs <at> gnu.org>, don <at> donarmstrong.com
.
Full text and
rfc822 format available.
Message #24 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):
Gilbert Harman <harman <at> princeton.edu> writes:
>
> After ./configure --with-ns....make -j2....nsfont.m: In function
'nsfont_char_width':nsfont.m:481: warning: 'widthOfString:' is deprecated
(declared at /System/Library/Frameworks/AppKit.framework/Headers/NSFont.h:216)
> nsfont.m: In function 'nsfont_open':nsfont.m:726: warning: 'widthOfString:' is
deprecated (declared at
/System/Library/Frameworks/AppKit.framework/Headers/NSFont.h:216)nsfont.m: In
function 'nsfont_draw':nsfont.m:907: error: 'struct glyph_string' has no member
named 'gidx'
> nsfont.m:908: error: 'struct glyph_string' has no member named
'gidx'nsfont.m:914: error: 'struct glyph_string' has no member named
'gidx'nsfont.m:1097: error: 'struct glyph_string' has no member named
'gidx'nsfont.m:1103: error: 'struct glyph_string' has no member named 'gidx'
> make[1]: *** [nsfont.o] Error 1make[1]: *** Waiting for unfinished
jobs....make: *** [src] Error 2 Gil(Intel Mac OS X 10.5.4)
>
This appears to have been caused by nsfont_draw() not having been updated to use
cmp_from instead of gidx.
Here's a patch, which also updates a couple of out-of-date comments:
Index: src/nsfont.m
===================================================================
RCS file: /sources/emacs/emacs/src/nsfont.m,v
retrieving revision 1.11
diff -u -r1.11 nsfont.m
--- src/nsfont.m 21 Aug 2008 02:49:00 -0000 1.11
+++ src/nsfont.m 4 Sep 2008 06:23:03 -0000
@@ -904,14 +904,14 @@
int hi, lo;
char isComposite = 0; /* s->first_glyph->type == COMPOSITE_GLYPH; */
/* FIXME: composition: no vertical displacement is considered. */
- t+= s->gidx; /* advance into composition */
- for (i =0; i<s->nchars - s->gidx; i++, t++)
+ t+= s->cmp_from; /* advance into composition */
+ for (i =0; i<s->nchars - s->cmp_from; i++, t++)
{
hi = (*t & 0xFF00) >> 8;
lo = *t & 0x00FF;
if (isComposite)
{
- cwidth = s->cmp->offsets[s->gidx++ * 2] - twidth;
+ cwidth = s->cmp->offsets[s->cmp_from++ * 2] - twidth;
}
else
{
@@ -1094,13 +1094,13 @@
[col set];
CGContextSetTextPosition (gcontext, r.origin.x, r.origin.y);
- CGContextShowGlyphsWithAdvances (gcontext, s->char2b + s->gidx,
+ CGContextShowGlyphsWithAdvances (gcontext, s->char2b + s->cmp_from,
advances, len);
if (face->overstrike)
{
CGContextSetTextPosition (gcontext, r.origin.x+0.5, r.origin.y);
- CGContextShowGlyphsWithAdvances (gcontext, s->char2b + s->gidx,
+ CGContextShowGlyphsWithAdvances (gcontext, s->char2b + s->cmp_from,
advances, len);
}
Index: src/xdisp.c
===================================================================
RCS file: /sources/emacs/emacs/src/xdisp.c,v
retrieving revision 1.1254
diff -u -r1.1254 xdisp.c
--- src/xdisp.c 31 Aug 2008 08:27:25 -0000 1.1254
+++ src/xdisp.c 4 Sep 2008 06:23:21 -0000
@@ -19532,7 +19532,7 @@
/* Fill glyph string S with composition components specified by S->cmp.
BASE_FACE is the base face of the composition.
- S->gidx is the index of the first component for S.
+ S->cmp_from is the index of the first component for S.
OVERLAPS non-zero means S should draw the foreground only, and use
its physical height for clipping. See also draw_glyphs.
@@ -19547,7 +19547,7 @@
{
int i;
/* For all glyphs of this composition, starting at the offset
- S->gidx, until we reach the end of the definition or encounter a
+ S->cmp_from, until we reach the end of the definition or encounter a
glyph that requires the different face, add it to S. */
struct face *face;
Tags added: patch
Request was from
Glenn Morris <rgm <at> gnu.org>
to
control <at> emacsbugs.donarmstrong.com
.
(Thu, 04 Sep 2008 16:40:06 GMT)
Full text and
rfc822 format available.
Severity set to `important' from `normal'
Request was from
Glenn Morris <rgm <at> gnu.org>
to
control <at> emacsbugs.donarmstrong.com
.
(Sat, 06 Sep 2008 21:45:06 GMT)
Full text and
rfc822 format available.
Tags removed: patch
Request was from
Glenn Morris <rgm <at> gnu.org>
to
control <at> emacsbugs.donarmstrong.com
.
(Tue, 09 Sep 2008 21:30:04 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <don <at> donarmstrong.com>
to
internal_control <at> emacsbugs.donarmstrong.com
.
(Sat, 01 Nov 2008 14:24:03 GMT)
Full text and
rfc822 format available.
This bug report was last modified 16 years and 284 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.