all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Reuben Thomas via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
To: Stefan Kangas <stefan@marxist.se>
Cc: 5706@debbugs.gnu.org
Subject: bug#5706: 23.1; Comments incorrectly detected in autoconf mode
Date: Thu, 19 Nov 2020 07:37:14 +0000	[thread overview]
Message-ID: <CAOnWdohXVQe4PGj3zdR5MSv7jeDcQj1iomdUf81NzgzJpSyFSw@mail.gmail.com> (raw)
In-Reply-To: <CADwFkm=wwFAcPxMjBUc0YDpeYbZ8NUAZP_UNa9ucKoBekbfB2A@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1038 bytes --]

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)

-- 
https://rrt.sc3d.org

[-- Attachment #2: Type: text/html, Size: 1826 bytes --]

  reply	other threads:[~2020-11-19  7:37 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 [this message]
2020-11-19 14:51     ` Stefan Kangas

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

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

  git send-email \
    --in-reply-to=CAOnWdohXVQe4PGj3zdR5MSv7jeDcQj1iomdUf81NzgzJpSyFSw@mail.gmail.com \
    --to=bug-gnu-emacs@gnu.org \
    --cc=5706@debbugs.gnu.org \
    --cc=rrt@sc3d.org \
    --cc=stefan@marxist.se \
    /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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.