From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Robert Lange via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#44319: make mode should recognize ::= as a macro assignment Date: Thu, 29 Oct 2020 16:34:09 -0400 Message-ID: <20201029203409.2nvutolbzkimbgpn@iset.darkempire.org> Reply-To: Robert Lange Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20399"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: NeoMutt/20180716 To: 44319@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Oct 29 22:41:41 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 1kYFfx-0005Bx-Lr for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 29 Oct 2020 22:41:41 +0100 Original-Received: from localhost ([::1]:41818 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kYFfw-0005vY-LE for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 29 Oct 2020 17:41:40 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38628) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kYFfL-0005gw-DW for bug-gnu-emacs@gnu.org; Thu, 29 Oct 2020 17:41:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:43640) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kYFfL-0003lj-3G for bug-gnu-emacs@gnu.org; Thu, 29 Oct 2020 17:41:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kYFfL-0004Pz-0C for bug-gnu-emacs@gnu.org; Thu, 29 Oct 2020 17:41:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Robert Lange Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 29 Oct 2020 21:41:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 44319 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.160400764216923 (code B ref -1); Thu, 29 Oct 2020 21:41:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 29 Oct 2020 21:40:42 +0000 Original-Received: from localhost ([127.0.0.1]:55180 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kYFez-0004Os-JO for submit@debbugs.gnu.org; Thu, 29 Oct 2020 17:40:42 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:57532) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kYEcv-0006vS-Bg for submit@debbugs.gnu.org; Thu, 29 Oct 2020 16:34:29 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54068) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kYEcv-0006fF-4M for bug-gnu-emacs@gnu.org; Thu, 29 Oct 2020 16:34:29 -0400 Original-Received: from server258-1.web-hosting.com ([198.54.125.47]:47346) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kYEcs-00043L-8u for bug-gnu-emacs@gnu.org; Thu, 29 Oct 2020 16:34:28 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=corusa.net; s=default; h=Content-Type:MIME-Version:Message-ID:Subject:To:From:Date: Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=MUFOfv0Y1f2SHCZq1Ay8m4Nio2M1xxqG4fea2QuI9JE=; b=etnj3tZe9ZMioL9CFE6E3KZttK NS8CddIJHR0r0rNxA6MPJB4AuDJz1Zrg112PMGbshdyAZQmVqk0b/M3xF4bV+M6iapT4/JIc6OMHg wr3WQy2EnubCc1re8oS5Dz2Cmf5gxR7xw7WHUCUL/Q64+alri+KPYQRkOSC6AImc43Vg=; Original-Received: from 23-24-2-197-static.hfc.comcastbusiness.net ([23.24.2.197]:41996 helo=corusa.net) by server258.web-hosting.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1kYEcf-002qt5-PP for bug-gnu-emacs@gnu.org; Thu, 29 Oct 2020 16:34:20 -0400 Content-Disposition: inline X-OutGoing-Spam-Status: No, score=-1.0 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - server258.web-hosting.com X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - corusa.net X-Get-Message-Sender-Via: server258.web-hosting.com: authenticated_id: rlange@corusa.net X-Authenticated-Sender: server258.web-hosting.com: rlange@corusa.net X-From-Rewrite: unmodified, already matched Received-SPF: pass client-ip=198.54.125.47; envelope-from=rlange@corusa.net; helo=server258-1.web-hosting.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/10/29 16:06:10 X-ACL-Warn: Detected OS = Linux 3.x [generic] [fuzzy] X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Thu, 29 Oct 2020 17:40:40 -0400 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:192007 Archived-At: Using the following simple Makefile as an example: Begin file Makefile --- ELC_FILES ::= foo.elc all: $(ELC_FILES) .el.elc: $(EMACS) -batch -Q -L . -f batch-byte-compile "$<" --- End file Makefile I've tested this on Emacs 26.1 on Debian, as well as a self-compiled 27.1. When I use the GNU immediate assignment operator `:=` the macro name ELC_FILES is correctly shown in font-lock in the macro color. But if I use the POSIX standard `::=` (well, forthcoming POSIX standard, but GNU emacs has supported it since v4.0) ELC_FILES is incorrectly shown in the target color. Looking in lisp/progmodes/make-mode.el, the const makefile-macroassign-regex is pretty gnarly, but I *think* it should match a `::=`, so I'm assuming it's getting preempted by something else, probably the const makefile-dependency-regex. Unfortunately, that regexp is a bit more than I can interpret, and I don't dare change it because I'll almost certainly break some other obscure but legal cases. I'd appreciate any insights anyone has on this. --Rob Lange --- In GNU Emacs 26.1 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.5) of 2019-09-22, modified by Debian built on x86-grnet-01 Windowing system distributor 'The X.Org Foundation', version 11.0.12004000 System Description: Debian GNU/Linux 10 (buster) Recent messages: Loading /etc/emacs/site-start.d/50texlive-lang-english.el (source)...done Loading delsel...done Loading diff-hl...done Loading hl-line...done Loading paren...done Loading xt-mouse...done Starting new Ispell process aspell with default dictionary... Starting Emacs daemon. When done with this frame, type C-x 5 0 Making completion list... Configured using: 'configure --build x86_64-linux-gnu --prefix=/usr --sharedstatedir=/var/lib --libexecdir=/usr/lib --localstatedir=/var/lib --infodir=/usr/share/info --mandir=/usr/share/man --enable-libsystemd --with-pop=yes --enable-locallisppath=/etc/emacs:/usr/local/share/emacs/26.1/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/26.1/site-lisp:/usr/share/emacs/site-lisp --with-sound=alsa --without-gconf --with-mailutils --build x86_64-linux-gnu --prefix=/usr --sharedstatedir=/var/lib --libexecdir=/usr/lib --localstatedir=/var/lib --infodir=/usr/share/info --mandir=/usr/share/man --enable-libsystemd --with-pop=yes --enable-locallisppath=/etc/emacs:/usr/local/share/emacs/26.1/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/26.1/site-lisp:/usr/share/emacs/site-lisp --with-sound=alsa --without-gconf --with-mailutils --with-x=yes --with-x-toolkit=gtk3 --with-toolkit-scroll-bars 'CFLAGS=-g -O2 -fdebug-prefix-map=/build/emacs-StqULU/emacs-26.1+1=. -fstack-protector-strong -Wformat -Werror=format-security -Wall' 'CPPFLAGS=-Wdate-time -D_FORTIFY_SOURCE=2' LDFLAGS=-Wl,-z,relro' Configured features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GSETTINGS NOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 THREADS LIBSYSTEMD LCMS2 Important settings: value of $LC_COLLATE: C.UTF-8 value of $LC_MONETARY: en_US.utf8 value of $LC_NUMERIC: en_US.utf8 value of $LC_TIME: en_DK.UTF-8 value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: column-enforce-mode: t company-mode: t flyspell-mode: t show-paren-mode: t global-hl-line-mode: t global-diff-hl-mode: t diff-auto-refine-mode: t delete-selection-mode: t tooltip-mode: t global-eldoc-mode: t eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-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 Load-path shadows: ~/.emacs.d/lisp/26.1/sh-script hides /usr/share/emacs/26.1/lisp/progmodes/sh-script /usr/share/emacs/site-lisp/latex-cjk-thai/thai-word hides /usr/share/emacs/26.1/lisp/language/thai-word /usr/share/emacs/site-lisp/auctex/tex-jp hides /usr/share/auctex/tex-jp /usr/share/emacs/site-lisp/auctex/tex-fold hides /usr/share/auctex/tex-fold /usr/share/emacs/site-lisp/auctex/tex-style hides /usr/share/auctex/tex-style /usr/share/emacs/site-lisp/auctex/latex hides /usr/share/auctex/latex /usr/share/emacs/site-lisp/auctex/plain-tex hides /usr/share/auctex/plain-tex /usr/share/emacs/site-lisp/auctex/bib-cite hides /usr/share/auctex/bib-cite /usr/share/emacs/site-lisp/auctex/multi-prompt hides /usr/share/auctex/multi-prompt /usr/share/emacs/site-lisp/auctex/texmathp hides /usr/share/auctex/texmathp /usr/share/emacs/site-lisp/auctex/toolbar-x hides /usr/share/auctex/toolbar-x /usr/share/emacs/site-lisp/auctex/tex-ispell hides /usr/share/auctex/tex-ispell /usr/share/emacs/site-lisp/auctex/context-nl hides /usr/share/auctex/context-nl /usr/share/emacs/site-lisp/auctex/preview hides /usr/share/auctex/preview /usr/share/emacs/site-lisp/auctex/tex-font hides /usr/share/auctex/tex-font /usr/share/emacs/site-lisp/auctex/tex hides /usr/share/auctex/tex /usr/share/emacs/site-lisp/auctex/context hides /usr/share/auctex/context /usr/share/emacs/site-lisp/auctex/context-en hides /usr/share/auctex/context-en /usr/share/emacs/site-lisp/auctex/tex-buf hides /usr/share/auctex/tex-buf /usr/share/emacs/site-lisp/auctex/prv-emacs hides /usr/share/auctex/prv-emacs /usr/share/emacs/site-lisp/auctex/font-latex hides /usr/share/auctex/font-latex /usr/share/emacs/site-lisp/auctex/tex-mik hides /usr/share/auctex/tex-mik /usr/share/emacs/site-lisp/auctex/tex-bar hides /usr/share/auctex/tex-bar /usr/share/emacs/site-lisp/auctex/tex-info hides /usr/share/auctex/tex-info Features: (shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs format-spec rfc822 mml mml-sec epa derived epg gnus-util rmail rmail-loaddefs mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils server column-enforce-mode company-oddmuse company-keywords company-etags etags xref project ring company-gtags company-dabbrev-code company-dabbrev company-files company-clang company-capf company-cmake company-semantic company-template company-bbdb company-c-headers company edmacro kmacro pcase flyspell ispell elec-pair time-date xt-mouse paren hl-line diff-hl vc-dir ewoc vc vc-dispatcher diff-mode easy-mmode delsel cus-start cus-load dim printing ps-print ps-print-loaddefs ps-def lpr finder-inf rx info package easymenu epg-config url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache url-vars seq byte-opt bytecomp byte-compile cconv cl gv tls gnutls cl-loaddefs cl-lib preview-latex tex-site auto-loads mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote dbusbind inotify lcms2 dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 297298 12039) (symbols 48 31862 1) (miscs 40 74 128) (strings 32 97361 2676) (string-bytes 1 2485635) (vectors 16 28006) (vector-slots 8 675528 13560) (floats 8 309 45) (intervals 56 308 0) (buffers 992 13))