Ticket #31508: emacs-app.diff

File emacs-app.diff, 1.8 KB (added by takanori@…, 13 years ago)

Here is a patch to fix this problem.

  • files/patch-clang.diff

     
     1--- src/nsfont.m~       2011-10-05 22:55:46.000000000 +0900
     2+++ src/nsfont.m        2011-10-05 23:03:53.000000000 +0900
     3@@ -1286,7 +1286,7 @@
     4       }
     5 
     6     CGContextRestoreGState (gcontext);
     7-    return;
     8+    return 0;
     9   }
     10 #endif  /* NS_IMPL_COCOA */
     11 
     12--- src/nsimage.m~      2011-01-09 02:45:14.000000000 +0900
     13+++ src/nsimage.m       2011-10-05 23:14:17.000000000 +0900
     14@@ -325,7 +325,7 @@
     15 
     16 /* Set color for a bitmap image (see initFromSkipXBM).  Note that the alpha
     17    is used as a mask, so we just memset the entire array. */
     18-- setXBMColor: (NSColor *)color
     19+- (void) setXBMColor: (NSColor *)color
     20 {
     21   NSSize s = [self size];
     22   int len = (int) s.width * s.height;
     23--- src/nsterm.m~       2011-10-05 22:55:46.000000000 +0900
     24+++ src/nsterm.m        2011-10-05 22:59:43.000000000 +0900
     25@@ -5494,7 +5494,7 @@
     26   NSTRACE (performDragOperation);
     27 
     28   if (!emacs_event)
     29-    return;
     30+    return NO;
     31 
     32   position = [self convertPoint: [sender draggingLocation] fromView: nil];
     33   x = lrint (position.x);  y = lrint (position.y);
  • Portfile

     
    3838patchfiles      patch-src_emacs.c.diff \
    3939                patch-src_unexmacosx.c.diff
    4040
     41if {${configure.compiler} == "clang"} {
     42    patchfiles-append   patch-clang.diff
     43}
     44
    4145variant fullscreen description {Add fullscreen patch from http://gist.github.com/291150 as mentioned in http://www.sanityinc.com/full-screen-support-for-cocoa-emacs-on-osx} {
    4246    patchfiles-append patch-fullscreen.diff
    4347}