From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Paul Smith Newsgroups: gmane.emacs.bugs Subject: bug#5953: 23.1.95; objc-mode doesn't fontify Objective-C 2.0 keywords @syntesize and @property correctly Date: Mon, 25 May 2020 00:52:29 -0400 Organization: GNU's Not UNIX! Message-ID: References: <87o8xvzicx.fsf@gnus.org> <874kyuohtq.fsf@gnus.org> <87h7wwzfiw.fsf@stefankangas.se> <20200524192456.GB6253@ACM> Reply-To: psmith@gnu.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="96096"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 5953@debbugs.gnu.org, larsi@gnus.org, stefan@marxist.se, al.skobelev@gmail.com, sdl.web@gmail.com To: rms@gnu.org, Alan Mackenzie Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon May 25 06:53:10 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jd56s-000OtJ-9q for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 25 May 2020 06:53:10 +0200 Original-Received: from localhost ([::1]:40710 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jd56q-0000iv-RT for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 25 May 2020 00:53:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51606) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jd56k-0000il-NG for bug-gnu-emacs@gnu.org; Mon, 25 May 2020 00:53:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:56126) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jd56k-0001zI-EX; Mon, 25 May 2020 00:53:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jd56k-0005rI-DM; Mon, 25 May 2020 00:53:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Paul Smith Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bug-cc-mode@gnu.org Resent-Date: Mon, 25 May 2020 04:53:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 5953 X-GNU-PR-Package: emacs,cc-mode X-GNU-PR-Keywords: patch Original-Received: via spool by 5953-submit@debbugs.gnu.org id=B5953.159038236622497 (code B ref 5953); Mon, 25 May 2020 04:53:02 +0000 Original-Received: (at 5953) by debbugs.gnu.org; 25 May 2020 04:52:46 +0000 Original-Received: from localhost ([127.0.0.1]:39439 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jd56U-0005ql-17 for submit@debbugs.gnu.org; Mon, 25 May 2020 00:52:46 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:44150) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jd56S-0005qX-IN for 5953@debbugs.gnu.org; Mon, 25 May 2020 00:52:44 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:43395) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jd56M-0001x5-7B; Mon, 25 May 2020 00:52:38 -0400 Original-Received: from pool-98-118-0-140.bstnma.fios.verizon.net ([98.118.0.140]:46052 helo=pdslaptop.home) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jd56E-0004fE-SH; Mon, 25 May 2020 00:52:30 -0400 In-Reply-To: X-Mailer: Evolution 3.28.5-0ubuntu0.18.04.2 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:180949 Archived-At: On Mon, 2020-05-25 at 00:34 -0400, 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. ]]] > > > Somehow, adding nine keywords together with their semantics seems to go > > outside the bounds of "trivial" for copyright purposes, even if they do > > fit into the arbitrary maximum number of lines. > > Would you like to show me the patch? That description suggests that > maybe it is trivial. It's unfortunate that the SourceForge mailing list archives are so gross. FYI, this is a link to the email from 2012 with the patch attached: https://sourceforge.net/p/cc-mode/mailman/message/29722632/ This is a link to download the patch: https://sourceforge.net/p/cc-mode/mailman/attachment/m2sjbfi7tl.fsf%40gmail.com/1/ I've included the patch itself below if you prefer that instead of the above links. Cheers! -------------------------------- >>From 3ea4329978ebe2e5cb9d4bfd1e544277cf8e0352 Mon Sep 17 00:00:00 2001 From: Leo Liu Date: Wed, 22 Aug 2012 16:54:18 +0800 Subject: [PATCH] Add ObjC 2.0 directives support --- lisp/progmodes/cc-langs.el | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/lisp/progmodes/cc-langs.el b/lisp/progmodes/cc-langs.el index 78be8ac2..4aed2048 100644 --- a/lisp/progmodes/cc-langs.el +++ b/lisp/progmodes/cc-langs.el @@ -1884,7 +1884,8 @@ (c-lang-defconst c-other-decl-kwds `c-<>-type-kwds', or `c-<>-arglist-kwds' then the associated clauses will be handled." t nil - objc '("@class" "@end" "@defs") + objc '("@class" "@defs" "@end" "@property" "@dynamic" "@synthesize" + "@compatibility_alias") java '("import" "package") pike '("import" "inherit")) @@ -2006,7 +2007,8 @@ (c-lang-defconst c-protection-kwds "Access protection label keywords in classes." t nil c++ '("private" "protected" "public") - objc '("@private" "@protected" "@public")) + objc '("@private" "@protected" "@package" "@public" + "@required" "@optional")) (c-lang-defconst c-block-decls-with-vars "Keywords introducing declarations that can contain a block which @@ -2176,7 +2178,7 @@ (c-lang-defconst c-block-stmt-1-kwds "Statement keywords followed directly by a substatement." t '("do" "else") c++ '("do" "else" "try") - objc '("do" "else" "@finally" "@try") + objc '("do" "else" "@finally" "@try" "@autoreleasepool") java '("do" "else" "finally" "try") idl nil) @@ -2292,7 +2294,8 @@ (c-lang-defconst c-constant-kwds t nil (c c++) '("NULL" ;; Not a keyword, but practically works as one. "false" "true") ; Defined in C99. - objc '("nil" "Nil" "YES" "NO" "NS_DURING" "NS_HANDLER" "NS_ENDHANDLER") + objc '("nil" "Nil" "YES" "NO" "IBAction" "IBOutlet" + "NS_DURING" "NS_HANDLER" "NS_ENDHANDLER") idl '("TRUE" "FALSE") java '("true" "false" "null") ; technically "literals", not keywords pike '("UNDEFINED")) ;; Not a keyword, but practically works as one. -- 1.7.12