From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Alan Third Newsgroups: gmane.emacs.devel Subject: Re: Mac OS Sierra tab feature breaks C-x 5 2 Date: Thu, 13 Jul 2017 21:22:34 +0100 Message-ID: <20170713202234.GA23777@breton.holly.idiocy.org> 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> <20170712182321.GA23391@breton.holly.idiocy.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1499977569 7479 195.159.176.226 (13 Jul 2017 20:26:09 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 13 Jul 2017 20:26:09 +0000 (UTC) User-Agent: Mutt/1.7.2 (2016-11-26) Cc: Paul Michael Reilly , Jean-Christophe Helary , Emacs-Devel devel To: Anders Lindgren Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jul 13 22:26:05 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 1dVkgX-0001jG-BD for ged-emacs-devel@m.gmane.org; Thu, 13 Jul 2017 22:26:05 +0200 Original-Received: from localhost ([::1]:33944 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dVkgc-0000yx-N7 for ged-emacs-devel@m.gmane.org; Thu, 13 Jul 2017 16:26:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56351) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dVkdF-0006rb-NH for emacs-devel@gnu.org; Thu, 13 Jul 2017 16:22:42 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dVkdE-0005RN-PB for emacs-devel@gnu.org; Thu, 13 Jul 2017 16:22:41 -0400 Original-Received: from mail-wr0-x236.google.com ([2a00:1450:400c:c0c::236]:36196) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dVkdE-0005PH-HY for emacs-devel@gnu.org; Thu, 13 Jul 2017 16:22:40 -0400 Original-Received: by mail-wr0-x236.google.com with SMTP id y28so6563136wrd.3 for ; Thu, 13 Jul 2017 13:22:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=XyHTz/NscXHIUOQMLCkOjfqWxiBOJkXjXsmrOMDnyUE=; b=DwInuZXZvGy4kYdkfeiIOXgnT0i/Xm6n7uiXBsZOCir+itR5+ZuNjl4Nh29VonmOSr 5hmVBLgMSakzfA7Rg70evIgMxywZGyqXhhIR5n+QNKLOn77kLhPV5F+Y+2qksvT+EUjR 4mAEDK0MYMcoRK/kyOPsekfkLw/n66sTjvma3Yikt/OaIU0UbSQ8zPDTezkIbe7gUFDL UEh4hV1f0DsK/0FwINEkCp1LGhLG1GD3J/nPivWUkBXF2wUPMYkpMvMyRKzL35aBQa/U gKK2tQU3Cb/mHQAgSAbtXitE03rAcw7Rp759FYUm1kmRFn7H3mNNW0e32Ko+BIoe73nq 8KJg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=XyHTz/NscXHIUOQMLCkOjfqWxiBOJkXjXsmrOMDnyUE=; b=G353qWZpV+zNVJ67UoYaGC4P2h+RqZH8Tv8YBG3FXXa1M2u+antM/YAApy5HcE4+o7 DPo9TSmdggz5xgdBIK8N5E0gyvvoFAAoCIxljSG/8vwcZv38ZUbusbiU9N4HD+oR5zhS 2P35HImw/lutlkKZV5cNGZIn5BYSuA995+kAjudk4T4iflgYYJ9xh11A31rFpIXa3qOA TnEwmBns0fQNkUk7gdIYu5PlVTYQD4J2C3bB2rCf9PmrtCgRSJti4fesZwQqSy/VeUHw tyNrPviuGwtvl93OBWhuaMRIVyrj77lW9pssYhNKu7idavLY3HDbrguuWEfxzshaiKij YRiw== X-Gm-Message-State: AIVw113RH75un0aXWfHLdZoNE+KY48Tf3pKQR++Tt5IQSpMbT1jWHS7h lSlXp3b+3GozM+QsAXNmJg== X-Received: by 10.223.139.211 with SMTP id w19mr2895810wra.146.1499977357699; Thu, 13 Jul 2017 13:22:37 -0700 (PDT) Original-Received: from breton.holly.idiocy.org (ip6-2001-08b0-03f8-8129-e9a1-3503-5c3f-d7d9.holly.idiocy.org. [2001:8b0:3f8:8129:e9a1:3503:5c3f:d7d9]) by smtp.gmail.com with ESMTPSA id p28sm272813wmi.11.2017.07.13.13.22.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 13 Jul 2017 13:22:36 -0700 (PDT) Content-Disposition: inline In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c0c::236 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:216617 Archived-At: On Wed, Jul 12, 2017 at 11:20:57PM +0200, Anders Lindgren wrote: > > We could disable the warning: > > > > #pragma clang diagnostic push > > #pragma clang diagnostic ignored "-Wobjc-method-access" > > if ([win respondsToSelector: @selector(setTabbingMode:)]) > > [win setTabbingMode: NSWindowTabbingModeDisallowed]; > > #pragma clang diagnostic pop > > > The end result would look like: > > NS_SILENCE_MISSING_METHOD_WARNING_BEGIN > if ([win respondsToSelector: @selector(setTabbingMode:)]) > [win setTabbingMode: NSWindowTabbingModeDisallowed]; > NS_SILENCE_MISSING_METHOD_WARNING_END I like this option, but after a lot of messing about I’m pretty sure that gcc doesn’t let you silence this warning. So, unless we don’t care about gcc warnings for the NS build, we could try using performSelector: [win performSelector: @selector(setTabbingMode:) withObject: (id)NSWindowTabbingModeDisallowed]; Which only supports one parameter, so works here but not necessarily anywhere else we might want to try this. Or back to the first suggestion and fake the methods when they’re not there. But that doesn’t help get rid of the need for multiple binaries. -- Alan Third