emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Include modern-cpp-font-lock into GNU Emacs


From: Noam Postavsky
Subject: Re: Include modern-cpp-font-lock into GNU Emacs
Date: Mon, 20 Aug 2018 06:51:29 -0400

On 20 August 2018 at 05:28, Jostein Kjønigsen
<address@hidden> 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 find
> 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 ‘cc-defs.el’.
Its value is "5.33.1"

  This variable may be risky if used as a file-local variable.

Documentation:
CC Mode version number.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]