From unknown Fri Jun 13 10:35:50 2025 X-Loop: bug-gnu-emacs@gnu.org Subject: bug#5706: 23.1; Comments incorrectly detected in autoconf mode Resent-From: rrt@sc3d.org Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 11 Mar 2010 15:35:02 +0000 Resent-Message-ID: Resent-Sender: bug-gnu-emacs@gnu.org X-GNU-PR-Message: report 5706 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 5706@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.12683216853390 (code B ref -1); Thu, 11 Mar 2010 15:35:02 +0000 Received: (at submit) by debbugs.gnu.org; 11 Mar 2010 15:34:45 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NpkPM-0000sd-Lx for submit@debbugs.gnu.org; Thu, 11 Mar 2010 10:34:45 -0500 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NpkPK-0000sY-5Z for submit@debbugs.gnu.org; Thu, 11 Mar 2010 10:34:42 -0500 Received: from mail.gnu.org ([199.232.76.166]:34969 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NpkPF-0001Sy-1y for submit@debbugs.gnu.org; Thu, 11 Mar 2010 10:34:37 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NpkPB-0003k6-Go for submit@debbugs.gnu.org; Thu, 11 Mar 2010 10:34:35 -0500 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on monty-python X-Spam-Level: X-Spam-Status: No, score=-1.6 required=5.0 tests=AWL,BAYES_00,NO_REAL_NAME, UNPARSEABLE_RELAY autolearn=no version=3.1.0 Received: from lists.gnu.org ([199.232.76.165]:45435) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NpkPB-0003jq-94 for submit@debbugs.gnu.org; Thu, 11 Mar 2010 10:34:33 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NpkPA-0001lM-LF for bug-gnu-emacs@gnu.org; Thu, 11 Mar 2010 10:34:32 -0500 Received: from [140.186.70.92] (port=33928 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NpkP9-0001kZ-5O for bug-gnu-emacs@gnu.org; Thu, 11 Mar 2010 10:34:32 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NpkP7-0000qI-4p for bug-gnu-emacs@gnu.org; Thu, 11 Mar 2010 10:34:30 -0500 Received: from exprod7og109.obsmtp.com ([64.18.2.171]:40375) by eggs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1NpkP6-0000q5-UN for bug-gnu-emacs@gnu.org; Thu, 11 Mar 2010 10:34:29 -0500 Received: from source ([209.85.218.219]) by exprod7ob109.postini.com ([64.18.6.12]) with SMTP ID DSNKS5kNgPYQQIe7iX1Pz8Jzz3p76ncLsen+@postini.com; Thu, 11 Mar 2010 07:34:28 PST Received: by mail-bw0-f219.google.com with SMTP id 19so169921bwz.6 for ; Thu, 11 Mar 2010 07:34:24 -0800 (PST) Received: by 10.204.9.6 with SMTP id j6mr497834bkj.37.1268321663417; Thu, 11 Mar 2010 07:34:23 -0800 (PST) Received: from canta (93-96-139-152.zone4.bethere.co.uk [93.96.139.152]) by mx.google.com with ESMTPS id l1sm298237bkl.2.2010.03.11.07.34.18 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 11 Mar 2010 07:34:20 -0800 (PST) Date: Thu, 11 Mar 2010 15:34:20 -0000 From: rrt@sc3d.org Message-Id: <1268321660.243500.25019@canta> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Spam-Score: -4.7 (----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.7 (-----) 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. In GNU Emacs 23.1.1 (i486-pc-linux-gnu, GTK+ Version 2.18.3) of 2009-11-10 on vernadsky, modified by Debian Windowing system distributor `The X.Org Foundation', version 11.0.10604000 configured using `configure '--build=i486-linux-gnu' '--host=i486-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib' '--localstatedir=/var/lib' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-pop=yes' '--enable-locallisppath=/etc/emacs23:/etc/emacs:/usr/local/share/emacs/23.1/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/23.1/site-lisp:/usr/share/emacs/site-lisp:/usr/share/emacs/23.1/leim' '--with-x=yes' '--with-x-toolkit=gtk' '--with-toolkit-scroll-bars' 'build_alias=i486-linux-gnu' 'host_alias=i486-linux-gnu' 'CFLAGS=-DDEBIAN -g -O2' 'LDFLAGS=-g' 'CPPFLAGS='' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en_GB.UTF-8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default-enable-multibyte-characters: t Major mode: Autoconf Minor modes in effect: diff-auto-refine-mode: t shell-dirtrack-mode: t show-paren-mode: t savehist-mode: t minibuffer-electric-default-mode: t iswitchb-mode: t icomplete-mode: t global-auto-revert-mode: t desktop-save-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t global-auto-composition-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t Recent input: C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-s p c r e _ m a k e C-a C-p C-p C-p C-p C-p C-n C-n C-n C-n C-n C-n C-n C-n C-n C-x b C-x C-s SPC SPC ] C-/ ) ] C-x C-s C-x C-s M-x r e p o r t b = - - e m a c s - b u g Recent messages: Mark saved where search started [2 times] Saving file /home/rrt/repo/grep-dlopen-pcre/configure.ac... Wrote /home/rrt/repo/grep-dlopen-pcre/configure.ac Auto-saving...done Undo! Saving file /home/rrt/repo/grep-dlopen-pcre/configure.ac... Wrote /home/rrt/repo/grep-dlopen-pcre/configure.ac Saving file /home/rrt/repo/grep-dlopen-pcre/configure.ac... Wrote /home/rrt/repo/grep-dlopen-pcre/configure.ac Reverting buffer `configure'. From unknown Fri Jun 13 10:35:50 2025 X-Loop: help-debbugs@gnu.org Subject: bug#5706: 23.1; Comments incorrectly detected in autoconf mode Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 19 Nov 2020 03:13:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 5706 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: rrt@sc3d.org Cc: 5706@debbugs.gnu.org Received: via spool by 5706-submit@debbugs.gnu.org id=B5706.160575557923365 (code B ref 5706); Thu, 19 Nov 2020 03:13:02 +0000 Received: (at 5706) by debbugs.gnu.org; 19 Nov 2020 03:12:59 +0000 Received: from localhost ([127.0.0.1]:37393 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kfaNX-00064n-AI for submit@debbugs.gnu.org; Wed, 18 Nov 2020 22:12:59 -0500 Received: from mail-ej1-f53.google.com ([209.85.218.53]:37122) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kfaNV-00064Z-QY for 5706@debbugs.gnu.org; Wed, 18 Nov 2020 22:12:58 -0500 Received: by mail-ej1-f53.google.com with SMTP id f20so5798526ejz.4 for <5706@debbugs.gnu.org>; Wed, 18 Nov 2020 19:12:57 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:in-reply-to:references:user-agent :mime-version:date:message-id:subject:to:cc; bh=1kVQ6pwC2U0yhpSpWcbtOTO+YayMI28Y0ZlWNmyCtwc=; b=UGGrDlzx/EgcEdbF40y1zbkP15nuMh0rZzx5X64WsMj1l2TRVth1sLRWjHT6iA5Iz+ zbdQvSjEs7fRWdRSuh0aP84gusvFLvLiioVzwxaUHzyOwFrmNgnZq5BYMUssxsDmJKsG y4BCDW//+LdTqrgTtkKGg9/id7DSQixgVdFie83mB4oyKFqSWumquI+wYQUPCa31Lo5l wNXgHTE24qUbGTIxpTR02Cpb1zBFYR5EIolUTKjtZoSPwAqOvLmFkZQO8s20Ix73C9rf eQ2hmgWJAtaytFBPMf7L3uz3KN0sh0+syd42ETCISc0yEofsyk3Z6VhFS7grHZYnQ1kC 1CXA== X-Gm-Message-State: AOAM532khN+DPLnX8BjuMafigK8kBsuI7WPOTZxE+wX05tqVCP+sT5D6 34/YC+28GnuXajBXRJ3bDEuQidjMiMNBnITRE00= X-Google-Smtp-Source: ABdhPJytoRc9DM4rAx6DfHBomP0TymyTr4YMf+vjlKuR1NC3bnzmgSWl/PJVIfl06eZkFZKpS4fiFK2boI5EJm2nfHQ= X-Received: by 2002:a17:906:8058:: with SMTP id x24mr27330479ejw.272.1605755572122; Wed, 18 Nov 2020 19:12:52 -0800 (PST) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Wed, 18 Nov 2020 19:12:51 -0800 From: Stefan Kangas In-Reply-To: <1268321660.243500.25019@canta> (rrt@sc3d.org's message of "Thu, 11 Mar 2010 15:34:20 -0000") References: <1268321660.243500.25019@canta> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Date: Wed, 18 Nov 2020 19:12:51 -0800 Message-ID: Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.5 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.5 (/) 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? From unknown Fri Jun 13 10:35:50 2025 X-Loop: help-debbugs@gnu.org Subject: bug#5706: 23.1; Comments incorrectly detected in autoconf mode 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 X-GNU-PR-Keywords: To: Stefan Kangas Cc: 5706@debbugs.gnu.org Received: via spool by 5706-submit@debbugs.gnu.org id=B5706.160577145610115 (code B ref 5706); Thu, 19 Nov 2020 07:38:02 +0000 Received: (at 5706) by debbugs.gnu.org; 19 Nov 2020 07:37:36 +0000 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 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 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) MIME-Version: 1.0 References: <1268321660.243500.25019@canta> In-Reply-To: From: Reuben Thomas Date: Thu, 19 Nov 2020 07:37:14 +0000 Message-ID: Content-Type: multipart/alternative; boundary="0000000000009cbf1305b470cc22" X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --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-- From unknown Fri Jun 13 10:35:50 2025 X-Loop: help-debbugs@gnu.org Subject: bug#5706: 23.1; Comments incorrectly detected in autoconf mode Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 19 Nov 2020 14:52:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 5706 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Reuben Thomas Cc: 5706@debbugs.gnu.org Received: via spool by 5706-submit@debbugs.gnu.org id=B5706.160579748111681 (code B ref 5706); Thu, 19 Nov 2020 14:52:02 +0000 Received: (at 5706) by debbugs.gnu.org; 19 Nov 2020 14:51:21 +0000 Received: from localhost ([127.0.0.1]:38697 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kflHN-00032G-3B for submit@debbugs.gnu.org; Thu, 19 Nov 2020 09:51:21 -0500 Received: from mail-ed1-f43.google.com ([209.85.208.43]:45615) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kflHK-00031j-Nk for 5706@debbugs.gnu.org; Thu, 19 Nov 2020 09:51:19 -0500 Received: by mail-ed1-f43.google.com with SMTP id q3so6072786edr.12 for <5706@debbugs.gnu.org>; Thu, 19 Nov 2020 06:51:18 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:in-reply-to:references:mime-version:date :message-id:subject:to:cc; bh=sJ23n2VOJlqfyM5Ktlf0jrZzldBHdhbrgo6OD3fZAeY=; b=Apet+PLiFWLrmnE3Ifsf7XWd0D8sCbZIsHIuurc5d12CZ063PWwAamTUJimmEK8saq khS1mgvvfV2X4Ovv2r1aVOh+zDlwheJJAn594RP61i/KQusoAnQ/kpGfw4zbvXiMBCjl hQBEzVFHanK6bTVU5r8hNLLe8HnVde7ROwtXrJeqlrm3kQhd4uDZ5CoBYoXHA4RhxBuR 8/DxbcDLXwEFNCvVnMS+HY39RtwFASAK8/RD7c+N0W+GBt6O5hw0mpzY9m4esGV46da4 DOAaKCEb9WSxxmMkG/l9q/oShl77q95AhngpI4DPQ0moQIGhkR/xbARS6NKqjSvfOrLr 1okA== X-Gm-Message-State: AOAM533Qk6OjGGvo+1PfSAS7aEII+3vbR+x6pzc/Af2ZDWjAv6q8SfRm kp7u/ucQXFtxBpnsQidjWS0xvoaxWMDY6bSr68uXfceIZmg= X-Google-Smtp-Source: ABdhPJzH6qP4rjWx1RtCF7uDK4vd7MVaDxkxAUhfSa8RmomKMUw9JYWs9WjpFGboHaDdsg3x9HUkKr8ZbMauvndRlYc= X-Received: by 2002:a50:e443:: with SMTP id e3mr31987204edm.160.1605797473044; Thu, 19 Nov 2020 06:51:13 -0800 (PST) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Thu, 19 Nov 2020 06:51:12 -0800 From: Stefan Kangas In-Reply-To: References: <1268321660.243500.25019@canta> MIME-Version: 1.0 Date: Thu, 19 Nov 2020 06:51:12 -0800 Message-ID: Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.5 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.5 (/) tags 5706 + confirmed thanks Reuben Thomas writes: > 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) 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 ]],