unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Kangas <stefan@marxist.se>
To: Reuben Thomas <rrt@sc3d.org>
Cc: 5706@debbugs.gnu.org
Subject: bug#5706: 23.1; Comments incorrectly detected in autoconf mode
Date: Thu, 19 Nov 2020 06:51:12 -0800	[thread overview]
Message-ID: <CADwFkmnQDby3FYV-L7Do4HiaSACg83o9oTTNJgtjZhvR9_AgiQ@mail.gmail.com> (raw)
In-Reply-To: <CAOnWdohXVQe4PGj3zdR5MSv7jeDcQj1iomdUf81NzgzJpSyFSw@mail.gmail.com>

tags 5706 + confirmed
thanks

Reuben Thomas <rrt@sc3d.org> writes:

> On Thu, 19 Nov 2020 at 03:12, Stefan Kangas <stefan@marxist.se> wrote:
>
>> rrt@sc3d.org writes:
>>
>> > A hash character does not always introduce a comment in autoconf code,
>> > but autoconf-mode always colors if as if it did. Unfortunately, I
>> > cannot really tell from the autoconf manual what the rules are. I
>> > suspect that # does not start a comment if it is inside [...] quotes,
>> > but I guess this should be checked.
>>
>> (This bug was reported 10 years ago, but unfortunately never got a reply
>> at the time.)
>>
>> Could you give an example of some autoconf code where you believe the
>> hash character is incorrectly identified as a comment?
>>
>
> A quick bit of grepping finds the in XEmacs's configure.ac. Note in
> particular the contents of the first argument to AC_LANG_PROGRAM:
>
> AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#include <features.h>],[
> #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
> #error Not a GNU libc system :-(
> ******* ======= ******** &&&&&&&&
> #endif
> ])], have_glibc=yes, have_glibc=no)

Thanks.  I see the same on current master using the configure.ac from
Emacs.

It incorrectly uses `font-lock-comment-face' for the entire line after
"langinfo.h" below:

AC_CACHE_CHECK([for nl_langinfo and CODESET], [emacs_cv_langinfo_codeset],
  [AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <langinfo.h>]],





      reply	other threads:[~2020-11-19 14:51 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-11 15:34 bug#5706: 23.1; Comments incorrectly detected in autoconf mode rrt
2020-11-19  3:12 ` Stefan Kangas
2020-11-19  7:37   ` Reuben Thomas via Bug reports for GNU Emacs, the Swiss army knife of text editors
2020-11-19 14:51     ` Stefan Kangas [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CADwFkmnQDby3FYV-L7Do4HiaSACg83o9oTTNJgtjZhvR9_AgiQ@mail.gmail.com \
    --to=stefan@marxist.se \
    --cc=5706@debbugs.gnu.org \
    --cc=rrt@sc3d.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).