From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.bugs Subject: bug#5706: 23.1; Comments incorrectly detected in autoconf mode Date: Thu, 19 Nov 2020 06:51:12 -0800 Message-ID: References: <1268321660.243500.25019@canta> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5298"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 5706@debbugs.gnu.org To: Reuben Thomas Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Nov 19 15:52:15 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 1kflIF-0001Ew-0W for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 19 Nov 2020 15:52:15 +0100 Original-Received: from localhost ([::1]:47220 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kflIE-0005Nr-1g for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 19 Nov 2020 09:52:14 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53974) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kflI2-0005J3-Rd for bug-gnu-emacs@gnu.org; Thu, 19 Nov 2020 09:52:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:55384) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kflI2-0007KU-5p for bug-gnu-emacs@gnu.org; Thu, 19 Nov 2020 09:52:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kflI2-00033F-1y for bug-gnu-emacs@gnu.org; Thu, 19 Nov 2020 09:52:02 -0500 X-Loop: help-debbugs@gnu.org 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 Original-Received: via spool by 5706-submit@debbugs.gnu.org id=B5706.160579748111681 (code B ref 5706); Thu, 19 Nov 2020 14:52:02 +0000 Original-Received: (at 5706) by debbugs.gnu.org; 19 Nov 2020 14:51:21 +0000 Original-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 Original-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 Original-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) Original-Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Thu, 19 Nov 2020 06:51:12 -0800 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:193721 Archived-At: 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 ]],