From: Henrik Nyman <henrikjohannesnyman@gmail.com>
To: 22060@debbugs.gnu.org
Subject: bug#22060: 25.1.50; Fringe faces or not honored in 25.1.50.1 on OSX 10.11 installed via homebrew --use-git-head --cocoa
Date: Sun, 23 Apr 2017 19:40:17 +0000 [thread overview]
Message-ID: <CADHidMq6YQVB+0FUpwd_QYQjEim_9pbUv=8Ff3J-=hQsSiMPZA@mail.gmail.com> (raw)
In-Reply-To: <30EE68E8-0158-4079-8DD4-B80599305039@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 2026 bytes --]
Referred to this issue at:
https://github.com/flycheck/flycheck/issues/811#issuecomment-296476404
I hope this helps with creating a proper fix.
In short:
- Discovered this one is caused by:
http://git.savannah.gnu.org/cgit/emacs.git/commit/?id=67a878f78f879ce534232408c34dd11f42dd802b
- Was able to temporarily fix this issue with (applied on tag emacs-25.2,
see below). This fixes the behaviour with flycheck but may have some
other undesired effects (there probably was a reason to save the
foreground color in a member variable in the first place).
diff --git src/nsimage.m src/nsimage.m
index 3f49fc046b..ff7ccef0bf 100644
--- src/nsimage.m
+++ src/nsimage.m
@@ -270,7 +270,6 @@ ns_set_alpha (void *img, int x, int y, unsigned char a)
}
}
- xbm_fg = fg;
[self addRepresentation: bmRep];
return self;
}
@@ -298,18 +297,14 @@ ns_set_alpha (void *img, int x, int y, unsigned char
a)
{
int i, len = s.width*s.height;
int rr = r * 0xff, gg = g * 0xff, bb = b * 0xff;
- unsigned char fgr = (xbm_fg >> 16) & 0xff;
- unsigned char fgg = (xbm_fg >> 8) & 0xff;
- unsigned char fgb = xbm_fg & 0xff;
for (i = 0; i < len; ++i)
- if (planes[0][i] == fgr && planes[1][i] == fgg && planes[2][i] ==
fgb)
+ if (planes[3][i] != 0)
{
planes[0][i] = rr;
planes[1][i] = gg;
planes[2][i] = bb;
}
- xbm_fg = ((rr << 16) & 0xff) + ((gg << 8) & 0xff) + (bb & 0xff);
}
return self;
diff --git src/nsterm.h src/nsterm.h
index 5d2513aea7..9de7d94be4 100644
--- src/nsterm.h
+++ src/nsterm.h
@@ -643,7 +643,6 @@ char const * nstrace_fullscreen_type_name (int);
NSBitmapImageRep *bmRep; /* used for accessing pixel data */
unsigned char *pixmapData[5]; /* shortcut to access pixel data */
NSColor *stippleMask;
- unsigned long xbm_fg;
}
+ allocInitFromFile: (Lisp_Object)file;
- (void)dealloc;
Tested with Emacs 25.2 @3a34412caa, macOS Sierra 10.12.2
[-- Attachment #2: Type: text/html, Size: 7754 bytes --]
next prev parent reply other threads:[~2017-04-23 19:40 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-30 12:35 bug#22060: 25.1.50; Fringe faces or not honored in 25.1.50.1 on OSX 10.11 installed via homebrew --use-git-head --cocoa Julien Wintz
2015-12-04 6:46 ` Alex Dunn
2016-12-08 22:07 ` Glenn Morris
2017-04-23 19:40 ` Henrik Nyman [this message]
2017-04-24 9:48 ` Alan Third
2017-04-24 10:30 ` Henrik Nyman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CADHidMq6YQVB+0FUpwd_QYQjEim_9pbUv=8Ff3J-=hQsSiMPZA@mail.gmail.com' \
--to=henrikjohannesnyman@gmail.com \
--cc=22060@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.