bug-standards
[Top][All Lists]
Advanced

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

Re: Position of conditionals in ChangeLog


From: Bruno Haible
Subject: Re: Position of conditionals in ChangeLog
Date: Sun, 15 Oct 2023 09:55:06 +0200

Alfred M. Szmidt wrote:
> This looks strnge?  Can the conditional be (or should?) on either side
> of the function?
> 
>    @example
>    * frame.h [HAVE_X_WINDOWS] (FRAME_WINDOW_P): Macro defined.
>    @end example
>    
>    Next, an entry for a change within the function @code{init_display},
>    whose definition as a whole is unconditional, but the changes
>    themselves are contained in a @samp{#ifdef HAVE_LIBNCURSES}
>    conditional:
>    
>    @example
>    * dispnew.c (init_display) [HAVE_LIBNCURSES]: If X, call tgetent.
>    @end example

This looks perfectly logical to me:
  - In the first case, we have a declaration/definition inside #if.
  - In the second case, we have a #if inside a definition.

Is the problem that the Emacs ChangeLog mode does not do good syntax
highlighting in one of these two cases? If so, it can be fixed in Emacs.

Bruno






reply via email to

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