From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Reuben Thomas via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#5706: 23.1; Comments incorrectly detected in autoconf mode Date: Thu, 19 Nov 2020 07:37:14 +0000 Message-ID: References: <1268321660.243500.25019@canta> Reply-To: Reuben Thomas Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000009cbf1305b470cc22" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12672"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 5706@debbugs.gnu.org To: Stefan Kangas Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Nov 19 08:38:13 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kfeWB-00037P-A3 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 19 Nov 2020 08:38:11 +0100 Original-Received: from localhost ([::1]:43456 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kfeWA-0002Gh-9W for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 19 Nov 2020 02:38:10 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33956) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kfeW2-0002GZ-OR for bug-gnu-emacs@gnu.org; Thu, 19 Nov 2020 02:38:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:54688) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kfeW2-0003Fn-EL for bug-gnu-emacs@gnu.org; Thu, 19 Nov 2020 02:38:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kfeW2-0002dk-Av for bug-gnu-emacs@gnu.org; Thu, 19 Nov 2020 02:38:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Reuben Thomas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 19 Nov 2020 07:38:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 5706 X-GNU-PR-Package: emacs Original-Received: via spool by 5706-submit@debbugs.gnu.org id=B5706.160577145610115 (code B ref 5706); Thu, 19 Nov 2020 07:38:02 +0000 Original-Received: (at 5706) by debbugs.gnu.org; 19 Nov 2020 07:37:36 +0000 Original-Received: from localhost ([127.0.0.1]:38001 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kfeVc-0002d5-66 for submit@debbugs.gnu.org; Thu, 19 Nov 2020 02:37:36 -0500 Original-Received: from mail-oo1-f51.google.com ([209.85.161.51]:41265) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kfeVX-0002cp-JS for 5706@debbugs.gnu.org; Thu, 19 Nov 2020 02:37:35 -0500 Original-Received: by mail-oo1-f51.google.com with SMTP id 123so1111437ooi.8 for <5706@debbugs.gnu.org>; Wed, 18 Nov 2020 23:37:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sc3d.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=6AItUqwoqq+d4HXAtDCjd4nY4YTJsyJk1k44f/gtg6w=; b=ItSF84wBu1KnTWwoGx4opLxn4X9sdnkHx9NTD5H4AvImxVzgtjJgqVoqqqvHKqo5m0 Ec/4IYRK/9hrfL8G/JjItakkS8+rjP95Go7oiLBpixzz27bF3YsDrW7Zy7yJdTxh6KgL VVlongIFOqiiHT8CEJ34gixFsxQb/oIkfBHkA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=6AItUqwoqq+d4HXAtDCjd4nY4YTJsyJk1k44f/gtg6w=; b=l9Uz7n+rxHYcOO8h5aLepv0mO6x2PJnfs9xV8aoItYXi8zhIc7OJrPot7SogH4g5gN gkR/5S2jpG1i04gveRUoGUGEMynRGgEaHnRnOLjhv01I0CRAeuD5/CAcaIZYSx/glRmW BUZIWSFEeN9fdNQ3H5ffFhPDE5jb2DI+7nzv7FYQruk02RHCqtPHs+UteLggfPJZXwNR ohKnfJkrDzzGtPa68+Rf3Q9u8hwYL63CGYk/9nCsJv0AqRmkyhA8j3R7LjuPf07rct7L hNErlUNLQBO902gfdevQmJYj2nRf/0R1RU36RdzWTS0npcfbvUsy2sIMyGDRGbrGInAe /9ww== X-Gm-Message-State: AOAM530ufZHw9pwVGAhioKz59Lv9MGP9uE2cdBF/6QSRpcjatJibW3f9 G73ias5r2Q0rN3SnZhYeLSZzMuLBKeROO3rPpbJp3ZYfLOEcnQ== X-Google-Smtp-Source: ABdhPJyJsMmphlmaAX+i5qEgY3PiGnsO6c9tM90B2Uw+4IvVirPZSF8lOi1Xi8TAUsSSf22AGE45UxiRiOFxoNNI4Z8= X-Received: by 2002:a4a:9486:: with SMTP id k6mr9382977ooi.85.1605771445709; Wed, 18 Nov 2020 23:37:25 -0800 (PST) In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:193705 Archived-At: --0000000000009cbf1305b470cc22 Content-Type: text/plain; charset="UTF-8" On Thu, 19 Nov 2020 at 03:12, Stefan Kangas 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 ],[ #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__) #error Not a GNU libc system :-( ******* ======= ******** &&&&&&&& #endif ])], have_glibc=yes, have_glibc=no) -- https://rrt.sc3d.org --0000000000009cbf1305b470cc22 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
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,<= br> > 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 gr= epping finds the in XEmacs's configure.= ac. Note in particular the contents of the first argument to AC_LANG_PR= OGRAM:

AC_COMPILE_IFELSE([AC_LANG_PROGRA= M([#include <features.h>],[
#if ! (defined __GLIBC__ || defined __= GNU_LIBRARY__)
#error Not a GNU libc system :-(
******* =3D=3D=3D=3D= =3D=3D=3D ******** &&&&&&&&
#endif
])= ], have_glibc=3Dyes, have_glibc=3Dno)

--
--0000000000009cbf1305b470cc22--