unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Alan Third <alan@idiocy.org>
To: YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
Cc: peter_dyballa@freenet.de, 23753@debbugs.gnu.org,
	"Charles A. Roelli" <charles@aurox.ch>,
	rms@gnu.org
Subject: bug#23753: 25.0.95; configuration of X client fails to include graphics libraries on Mac OS X 10.6.8
Date: Mon, 11 Dec 2017 21:01:23 +0000	[thread overview]
Message-ID: <20171211210123.GA79080@breton.holly.idiocy.org> (raw)
In-Reply-To: <m2bmj5dqif.fsf@aurox.ch>

On Mon, Dec 11, 2017 at 08:16:24PM +0100, Charles A. Roelli wrote:
> > Date: Sun, 10 Dec 2017 22:42:25 +0000
> > From: Alan Third <alan@idiocy.org>
> > 
> > On Sun, Dec 10, 2017 at 04:44:13PM -0500, Richard Stallman wrote:
> > > [[[ To any NSA and FBI agents reading my email: please consider    ]]]
> > > [[[ whether defending the US Constitution against all enemies,     ]]]
> > > [[[ foreign or domestic, requires you to follow Snowden's example. ]]]
> > > 
> > >   > I would think removing this feature from the Emacs sources so that
> > >   > they compile with standard gcc would be a high priority for Emacs.
> > >   > It's surpising this has not come up before.
> > > 
> > > Yes, we must insist on removing them.
> > 
> > Is it acceptable to leave them in when building with Clang? Something like:
> > 
> > #ifdef __clang__
> >  <block>
> > #endif
> > 
> > > Are there any in the Emacs 26 pretest?
> > 
> > Yes, the two in macfont.m.
> > 
> > As for whether there’s any demand for them, I can’t answer that. It
> > might be better to ask the GNUstep people.
> > 
> > Charles, do you know of a better solution than just making them
> > in‐line?
> 
> Nope.  It would also be interesting to find out the performance impact
> on redisplay.  Since the glyph information seems to be cached (?), the
> impact may be negligible.

Yamamoto san, I hope it’s OK to copy you in on this.

In order to make the NS port of Emacs compile on GCC on macOS we need
to remove two instances of Objective‐C blocks in macfont.m. It looks
to me like we can make it run in‐line, i.e. change

      dispatch_group_async (group, queue, ^{
          glyphs[i] = kCGFontIndexInvalid;

          if (default_uvs_offset)
            {
              struct default_uvs_table *default_uvs =
                (struct default_uvs_table *) ((UInt8 *) uvs


to just

      {
          glyphs[i] = kCGFontIndexInvalid;

          if (default_uvs_offset)
            {
              struct default_uvs_table *default_uvs =
                (struct default_uvs_table *) ((UInt8 *) uvs

As far as I can see this will still work, but we’re not sure whether
it will cause any problems. Since this is, I believe, your code, do
you have any thoughts on the matter?
-- 
Alan Third





  reply	other threads:[~2017-12-11 21:01 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-12 12:23 bug#23753: 25.0.95; configuration of X client fails to include graphics libraries on Mac OS X 10.6.8 Peter Dyballa
2016-06-12 12:43 ` Peter Dyballa
2017-12-09 19:16   ` Charles A. Roelli
2017-12-09 20:49     ` Glenn Morris
2017-12-10 10:20       ` Alan Third
2017-12-10 14:58         ` Peter Dyballa
2017-12-10 22:44           ` Alan Third
2017-12-11  0:24             ` Peter Dyballa
2017-12-10 21:44       ` Richard Stallman
2017-12-10 22:42         ` Alan Third
2017-12-11 19:16           ` Charles A. Roelli
2017-12-11 21:01             ` Alan Third [this message]
2017-12-12  1:31               ` YAMAMOTO Mitsuharu
2017-12-12 17:18                 ` Alan Third
2017-12-12 17:46                   ` Glenn Morris
2017-12-12 19:07                     ` Alan Third
2017-12-12 19:17                       ` Eli Zaretskii
2017-12-12 20:39                         ` Alan Third
2017-12-11 22:35           ` Richard Stallman
2017-12-18 21:16           ` Richard Stallman
2017-12-18 21:21             ` Alan Third
2017-12-19 23:03               ` Richard Stallman
2017-12-10 23:49         ` Glenn Morris
2017-12-10 21:44     ` Richard Stallman
2016-06-13 17:28 ` Glenn Morris
2017-12-08 18:37 ` Glenn Morris

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20171211210123.GA79080@breton.holly.idiocy.org \
    --to=alan@idiocy.org \
    --cc=23753@debbugs.gnu.org \
    --cc=charles@aurox.ch \
    --cc=mituharu@math.s.chiba-u.ac.jp \
    --cc=peter_dyballa@freenet.de \
    --cc=rms@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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).