From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Anders Lindgren Newsgroups: gmane.emacs.devel Subject: Re: Mac OS Sierra tab feature breaks C-x 5 2 Date: Mon, 10 Jul 2017 22:22:43 +0200 Message-ID: References: <191BFCA3-3C5B-4A75-8985-A958E638ADCE@gmail.com> <20170706174204.GA19121@breton.holly.idiocy.org> <20170706221637.GA19607@breton.holly.idiocy.org> <20170710195220.GA21900@breton.holly.idiocy.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="94eb2c124056684e300553fc58e8" X-Trace: blaine.gmane.org 1499718183 22274 195.159.176.226 (10 Jul 2017 20:23:03 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 10 Jul 2017 20:23:03 +0000 (UTC) Cc: Paul Michael Reilly , Jean-Christophe Helary , Emacs-Devel devel To: Alan Third Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jul 10 22:22:58 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dUfCh-00050V-4B for ged-emacs-devel@m.gmane.org; Mon, 10 Jul 2017 22:22:47 +0200 Original-Received: from localhost ([::1]:42896 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dUfCm-0003L8-Dh for ged-emacs-devel@m.gmane.org; Mon, 10 Jul 2017 16:22:52 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57774) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dUfCf-0003L0-Og for emacs-devel@gnu.org; Mon, 10 Jul 2017 16:22:46 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dUfCe-0002nY-I5 for emacs-devel@gnu.org; Mon, 10 Jul 2017 16:22:45 -0400 Original-Received: from mail-ua0-x231.google.com ([2607:f8b0:400c:c08::231]:33824) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dUfCe-0002nI-DP for emacs-devel@gnu.org; Mon, 10 Jul 2017 16:22:44 -0400 Original-Received: by mail-ua0-x231.google.com with SMTP id z22so61783088uah.1 for ; Mon, 10 Jul 2017 13:22:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=3E8kY+w4yhnZGyiXvE1lzultIg1vth61MEbTwoLWLjk=; b=E2+3s2WrC+oThPu8XWt2ireRsE3X1Nr2y8pZG3JMJFVeeVnDV/UsMLpxtouIHEOoN4 uZfls7bLnMDRkI8FNVn4ByOt+an/jO2OQspRhD8UO4xjcyc3WqnCBSWQL4Jofnbo7XzA LzD7MWF0SdE4J/MzU2L8D7R5PD82JcJ3So5D+frcsCjcKbTJlwHXgANLCj4rWB7hJihH wJu3EPGjsjvhx5zUkeY9sQS/7tQSfROfdPnwAVAgGos9KXbktVZIIaJu5xB0c0kyFgv3 3PyN6UFMShY6uRG3ofwqo4MZezyUy1WHQj5Ob7rDJZ148e5HYvbvJlh5z9nXN8aNS+s1 iLFg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=3E8kY+w4yhnZGyiXvE1lzultIg1vth61MEbTwoLWLjk=; b=UDL7jaFi2yIy0gghFyOhcthBr7QT10y3US/KjO8QOsv5wvMdsoz0VxVkdpRJRnQy3Z /brc9wh0CDKjHzBcZhsaMihajBH6rp7ZZBycfHv1SpEsbds+516c9BXWMwrtfM5owShZ fg+saTgXHv5uaE0euF4ZJOeCmyOEdYXsSBTsD7zs4FHdCf4K7cRvoADJxn0qVNrWIMhb +F0PE8b372B399h4Bh3UDZUoICPGYvTFE2W3ApTN+BOZEc3T4+fxN/KMf/j5Frc1HLQ4 S8K9DxVPPCUamz0UYLagQJqn4wMtoBirU62rXQEcG9DiQapNp62eiPcY1SIoyZ2gUwuu a58A== X-Gm-Message-State: AIVw113bPmjih7ttERSv1H5WB9Rbv3T0aTrMXKMBNX1eZXp62UjIwjSM xOVFK7xFwdb20PozZ7l+EpWeQG8GKQ== X-Received: by 10.159.39.74 with SMTP id a68mr10214159uaa.10.1499718163646; Mon, 10 Jul 2017 13:22:43 -0700 (PDT) Original-Received: by 10.31.180.65 with HTTP; Mon, 10 Jul 2017 13:22:43 -0700 (PDT) In-Reply-To: <20170710195220.GA21900@breton.holly.idiocy.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400c:c08::231 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:216438 Archived-At: --94eb2c124056684e300553fc58e8 Content-Type: text/plain; charset="UTF-8" Now it compiles, but with a warning: ---- nsterm.m:7078:10: warning: instance method '-setTabbingMode:' not found (return type defaults to 'id') [-Wobjc-method-access] [win setTabbingMode: NSWindowTabbingModeDisallowed]; ^~~~~~~~~~~~~~ /System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h:167:12: note: receiver is instance of class declared here @interface NSWindow : NSResponder wrote: > On Mon, Jul 10, 2017 at 09:17:58PM +0200, Anders Lindgren wrote: > > Unfortunately, it doesn't compile. I get the following error when I build > > on 10.10.5: > > > > nsterm.m:7078:26: error: use of undeclared identifier > > 'NSWindowTabbingModeDisallowed' > > [win setTabbingMode: NSWindowTabbingModeDisallowed]; > > > > Fortunately, the fix is simple. If we build on an older system, we can > > define the NSWindowTabbingModeXxx constants ourselves. > > I think this should do it, then... > -- > Alan Third > --94eb2c124056684e300553fc58e8 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Now it compiles, but with a warning:

--= --
nsterm.m:7078:10: warning: instance method '-setTabbi= ngMode:' not found (return type defaults to 'id') [-Wobjc-metho= d-access]
=C2=A0 =C2=A0 [win setTabbingMode: NSWindowTabbingModeD= isallowed];
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0^~~~~~~~~~~~~~
/System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h:167:12= : note: receiver is instance of class declared here
@interface NS= Window : NSResponder <NSAnimatablePropertyContainer, NSUserInterfaceVali= dations, NSUserInterfaceItemIdentifica...
-----
<= br>

I've seen other packages declare methods i= n NSWindows, but I don't know how "correct" that is. For exam= ple:


=C2=A0 =C2=A0 -- Anders

On Mon, Jul 10, 2017 at 9:52 PM= , Alan Third <alan@idiocy.org> wrote:
On Mon, Jul 10, 2017 at 09:17:58PM +0200, Anders= Lindgren wrote:
> Unfortunately, it doesn't compile. I get the following error when = I build
> on 10.10.5:
>
> nsterm.m:7078:26: error: use of undeclared identifier
> 'NSWindowTabbingModeDisallowed'
>=C2=A0 =C2=A0 =C2=A0[win setTabbingMode: NSWindowTabbingModeDisallowed]= ;
>
> Fortunately, the fix is simple. If we build on an older system, we can=
> define the NSWindowTabbingModeXxx constants ourselves.

I think this should do it, then...
--
Alan Third

--94eb2c124056684e300553fc58e8--