From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Noam Postavsky Newsgroups: gmane.emacs.devel Subject: Re: Include modern-cpp-font-lock into GNU Emacs Date: Mon, 20 Aug 2018 06:51:29 -0400 Message-ID: References: <53cad8eb-9bf1-e2d3-90cf-10a9874bf69b@lud.cc> <20180811145124.GA4992@ACM> <4e10dfa3-4793-f680-8a85-78a489884cad@lud.cc> <866005o2ko.fsf@gmail.com> <1534757322.75605.1479728696.2BF2BB66@webmail.messagingengine.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1534762774 26424 195.159.176.226 (20 Aug 2018 10:59:34 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 20 Aug 2018 10:59:34 +0000 (UTC) Cc: Alan Mackenzie , Andy Moreton , Emacs developers To: =?UTF-8?Q?Jostein_Kj=C3=B8nigsen?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Aug 20 12:59:29 2018 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 1frhuD-0006lC-Ed for ged-emacs-devel@m.gmane.org; Mon, 20 Aug 2018 12:59:29 +0200 Original-Received: from localhost ([::1]:46196 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1frhwJ-0004OD-TP for ged-emacs-devel@m.gmane.org; Mon, 20 Aug 2018 07:01:39 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42769) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1frhmX-0005An-0R for emacs-devel@gnu.org; Mon, 20 Aug 2018 06:51:34 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1frhmW-00077c-7H for emacs-devel@gnu.org; Mon, 20 Aug 2018 06:51:32 -0400 Original-Received: from mail-oi0-x229.google.com ([2607:f8b0:4003:c06::229]:38815) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1frhmW-00076s-1W for emacs-devel@gnu.org; Mon, 20 Aug 2018 06:51:32 -0400 Original-Received: by mail-oi0-x229.google.com with SMTP id v8-v6so25000618oie.5 for ; Mon, 20 Aug 2018 03:51:30 -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:content-transfer-encoding; bh=3HbI8FhL3EKfnP2ibRAmPHkwQ0LlepFtRxTDLhy5HhY=; b=XUCyAbhQrfUVUWDrrU14GI5R2R4YSNRqbbeDuUXegtHH+EbIKBxyhdpN0eDymUSH7r fGinYSh8vxSsL+tSf46og+/qxGHCW7B3cSyD9eOHvlsGl6tgKeqTl0Ymse2uFF4sH6JK 4Mt+nQ7ZI7Hf6cbiZ6nWNhzqSc+zpN/PhaMQ6ZK1QAsLEQLLW0Zo8Tx0BL9YCuQKmbYr cdGawNpPWxRteewI+6LYGtFk6ASz3dWVmanJXRpaLBIEdm7YKeANF1O14LoufWvRMXtJ O2N4o6JAe+OqGcRbMGMNkNrb6KFex05tURfRvfwvZojwD7bGFRy/sBfOQYk/+quLkrVq kSLA== 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:content-transfer-encoding; bh=3HbI8FhL3EKfnP2ibRAmPHkwQ0LlepFtRxTDLhy5HhY=; b=tR2sk52aJOHK7F1t1wsk02XzJxoNDDgN+D5JVsi5eo4sjMMqWhiZM2oZ4KIwufYSM3 Ouz22AwtFWYEXBCi2S0uzS36Bf8jYSjNGBvIJMLcj9rqiMlJxK2cl3s8WJexYUzNcCXG 9t6FOK/uZm7N1UzEi1f2mPV7XBL9Z8sTxzzcStXeTvFcOCxLfWCb+IOBWpwGYo9s76v4 JnwqBL6jOiTydQBbRL8SkvoC+0tBIyAQ/8aan1djjk1DhYg6eO1kJDaKBhJJqTSwz7sS CeUaNBm68lWkPP3m9C/YVXxlGBqoIvPn3WyoXksuNNOCJIryI41NxT5bgPKPJy+bIEfL lpDQ== X-Gm-Message-State: AOUpUlEHgz6EAgVA2hunj2DMacaZO/LI80EhnNjA1FrXx0rmEY61oF5g aQWSMEve+tnU4TaTPBusY/PEkw9g5eoGH0DmTfc= X-Google-Smtp-Source: AA+uWPyYBvA2ZbcczCvCWxRvxjkTdIaNy2WS5lRfvs7jjfStEa0OEEEY4g3YpGgAe+7xAG1vjNF0Mqdx6zXLm8i5Nmg= X-Received: by 2002:aca:4a49:: with SMTP id x70-v6mr14032578oia.11.1534762290065; Mon, 20 Aug 2018 03:51:30 -0700 (PDT) Original-Received: by 2002:a9d:268d:0:0:0:0:0 with HTTP; Mon, 20 Aug 2018 03:51:29 -0700 (PDT) In-Reply-To: <1534757322.75605.1479728696.2BF2BB66@webmail.messagingengine.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4003:c06::229 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:228718 Archived-At: On 20 August 2018 at 05:28, Jostein Kj=C3=B8nigsen wrote: > Currently we can inspect "cc-mode version" by checking emacs-version, and > dispatching compatible code based on that. > > With such a decoupling, this will no longer be possible, and we should fi= nd > a new way to give third-party major-modes dependant on cc-mode to ensure > compatibility. > > Maybe cc-mode should ship with its own programmatically accessible > version-number to check against? I think this already exists: c-version is a variable defined in =E2=80=98cc-defs.el=E2=80=99. Its value is "5.33.1" This variable may be risky if used as a file-local variable. Documentation: CC Mode version number.