From unknown Wed Jun 18 23:10:23 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#24000 <24000@debbugs.gnu.org> To: bug#24000 <24000@debbugs.gnu.org> Subject: Status: 24.5; makefile-bsdmake-mode has incomplete keyword syntax Reply-To: bug#24000 <24000@debbugs.gnu.org> Date: Thu, 19 Jun 2025 06:10:23 +0000 retitle 24000 24.5; makefile-bsdmake-mode has incomplete keyword syntax reassign 24000 emacs submitter 24000 "Greg A. Woods" severity 24000 minor tag 24000 fixed thanks From debbugs-submit-bounces@debbugs.gnu.org Fri Jul 15 18:29:17 2016 Received: (at submit) by debbugs.gnu.org; 15 Jul 2016 22:29:17 +0000 Received: from localhost ([127.0.0.1]:53367 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bOBbh-00053v-4d for submit@debbugs.gnu.org; Fri, 15 Jul 2016 18:29:17 -0400 Received: from eggs.gnu.org ([208.118.235.92]:54355) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bOBbf-00053h-In for submit@debbugs.gnu.org; Fri, 15 Jul 2016 18:29:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bOBbZ-0003YQ-4H for submit@debbugs.gnu.org; Fri, 15 Jul 2016 18:29:10 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:44373) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bOBbZ-0003YH-0p for submit@debbugs.gnu.org; Fri, 15 Jul 2016 18:29:09 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45309) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bOBbW-0005Aq-FG for bug-gnu-emacs@gnu.org; Fri, 15 Jul 2016 18:29:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bOBbR-0003W7-9V for bug-gnu-emacs@gnu.org; Fri, 15 Jul 2016 18:29:05 -0400 Received: from centrally.weird.com ([204.92.254.25]:60841) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bOBbR-0003U3-2u for bug-gnu-emacs@gnu.org; Fri, 15 Jul 2016 18:29:01 -0400 Received: from (invalid client hostname: bind: DNS error: Unknown host)more.local ((no PTR matching greeting name)S01060026bb6c284e.ok.shawcable.net[24.67.98.78] port=34581) by centrally.weird.com([204.92.254.2] port=587) via TCP with esmtp (7931 bytes) (sender: ) (ident using UNIX) id for ; Fri, 15 Jul 2016 18:28:45 -0400 (EDT) (Smail-3.2.0.122-Pre 2005-Nov-17 #4 built 2012-Feb-28) Received: from localhost ([127.0.0.1] port=63064) by more.local([127.0.0.1] port=25) via TCP with esmtp (7478 bytes) (sender: ) id for ; Fri, 15 Jul 2016 15:28:43 -0700 (PDT) (Smail-3.2.0.122-Pre 2005-Nov-17 #1 built 2015-Feb-17) Message-Id: Date: Fri, 15 Jul 2016 15:28:43 -0700 From: "Greg A. Woods" To: bug-gnu-emacs@gnu.org Subject: 24.5; makefile-bsdmake-mode has incomplete keyword syntax X-Face: ; j3Eth2XV8h1Yfu*uL{<:dQ$#E[DB0gemGZJ"J#4fH*][ lz; @-iwMv_u\6uIEKR0KY"=MzoQH#CrqBN`nG_5B@rrM8,f~Gr&h5a\= List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: "Greg A. Woods" Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) Although it is not well described in the manuals for all variants of BSD Make, all regular users of any and all variants of BSD Make assume that all include, conditional, and loop statements (i.e. what's described in the "INCLUDE STATEMENTS, CONDITIONALS AND FOR LOOPS" section of the manual page) may contain a combination of spaces and/or tabs btween the mandatory leading '.' on the line and the keyword. (This is documented properly in OpenBSD.) This optional white space is not properly represented in the setup of font-lock keywords for makefile-bsdmake-mode. Indeed it would appear that the keyword syntax allows space before the '.' in some situations, but this is actually not allowed by any BSD Make I'm aware of. A makefile line which is parsed as a BSD Make statement always begins with a leading '.', then optional white space, then the statement keyword. I've tried to fix it in order to provide both a work-around and a proper patch, but the setup of font-lock-keywords in make-mode.el is extremely convoluted and overly complex, so for now I've been unable to find a clean and simple way to fix the problem such that it won't mess up other variants of the mode. In GNU Emacs 24.5.1 (x86_64--netbsd, X toolkit, Xaw3d scroll bars) of 2015-05-01 on more Windowing system distributor `The X.Org Foundation', version 11.0.11704000 Configured using: `configure '--srcdir=3D/var/package-obj/editors/emacs/work/emacs-24.5' '--without-dbus' '--without-rsvg' '--with-x' '--with-xpm' '--with-jpeg' '--with-tiff' '--with-gif' '--with-png' '--x-includes=3D/usr/X11R6/include' '--x-libraries=3D/usr/X11R6/lib' '--with-x-toolkit=3Dathena' '--enable-static' '--without-libiconv-prefix' '--without-libintl-prefix' '--disable-dependency-tracking' '--prefix=3D/usr/pkg' '--build=3Dx86_64--netbsd' '--host=3Dx86_64--netbsd' '--sysconfdir=3D/etc' '--localstatedir=3D/var' '--infodir=3D/usr/pkg/share/info' '--mandir=3D/usr/pkg/share/man' 'build_alias=3Dx86_64--netbsd' 'host_alias=3Dx86_64--netbsd' 'CC=3Dcc' 'CFLAGS=3D-O2 -g -pipe -I/usr/pkg/include -I/usr/include -I/usr/X11R6/include -I/usr/pkg/include/freetype2' 'LDFLAGS=3D-static -L/usr/pkg/lib -L/usr/lib -L/usr/X11R6/lib -Wl,-R/usr/pkg/lib -Wl,-R/usr/X11R6/lib' 'LIBS=3D' 'CPPFLAGS=3D-I/usr/pkg/include -I/usr/include -I/usr/X11R6/include -I/usr/pkg/include/freetype2'' Important settings: value of $LANG: POSIX locale-coding-system: nil Major mode: BSDmakefile Minor modes in effect: auto-image-file-mode: t display-time-mode: t timeclock-mode-line-display: t normal-erase-is-backspace-mode: t show-paren-mode: t diff-auto-refine-mode: t magit-auto-revert-mode: t global-git-commit-mode: t async-bytecomp-package-mode: t shell-dirtrack-mode: t tooltip-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 blink-cursor-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 messages: Saving...done [2 times] Mark set [7 times] [3 times] I-search backward: org Mark saved where search started [2 times] Mark set [2 times] Saving...done [3 times] Mark set Saving...done [5 times] Mark set [2 times] Load-path shadows: /Users/gaw/lib/elisp/git hides /usr/local/share/emacs/site-lisp/git/git Features: (shadow sort mail-extr emacsbug pp gitignore-mode org-journal org-crypt org-rmail org-mhe org-irc org-info org-gnus org-docview doc-view image-mode org-bibtex bibtex org-bbdb org-w3m org-element avl-tree org org-macro org-footnote org-pcomplete org-list org-faces org-entities foldout noutline outline org-version ob-emacs-lisp ob ob-tangle ob-ref ob-lob ob-table ob-exp org-src ob-keys ob-comint ob-core ob-eval org-compat org-macs org-loaddefs vc-bzr vc-svn vc-rcs gitconfig-mode conf-mode rx eieio-opt speedbar sb-image ezimage dframe magit-ediff ediff-merg ediff-wind ediff-diff ediff-mult ediff-help ediff-init ediff-util ediff novice vc-annotate vc-sccs apropos etags flyspell mule-util log-view tutorial make-mode pcmpl-unix debug misearch multi-isearch vc-git cc-langs linum image-file time sendmail timeclock solar cal-dst appt diary-lib diary-loaddefs cal-menu calendar cal-loaddefs ispell hippie-exp warnings view cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs pcvs vc-cvs pcvs-parse pcvs-info pcvs-defs ewoc find-func browse-url paren sh-script smie executable magit-blame magit-stash magit-bisect magit-remote magit-commit magit-sequence magit magit-apply dired magit-wip magit-log magit-diff smerge-mode diff-mode magit-core magit-autorevert autorevert filenotify magit-process magit-popup magit-mode help-mode magit-git crm magit-section magit-utils git-commit log-edit message rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drums mailabbrev mail-utils gmm-utils mailheader pcvs-util add-log with-editor async-bytecomp async tramp-sh tramp tramp-compat auth-source eieio byte-opt bytecomp byte-compile cl-extra cconv eieio-core gnus-util mm-util mail-prsvr password-cache tramp-loaddefs trampver shell pcomplete format-spec server dash grep compile comint ansi-color ring smart-tabs-mode easy-mmode cl-macs gv advice help-fns jka-compr memory-usage-autoloads edmacro kmacro cl-loaddefs cl-lib info easymenu package epg-config vc vc-dispatcher time-date tooltip electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer 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 make-network-process dynamic-setting font-render-setting x-toolkit x multi-tty emacs) Memory information: ((conses 16 1322060 498123) (symbols 48 60525 0) (miscs 40 14312 19970) (strings 32 124948 58169) (string-bytes 1 9760525) (vectors 16 50673) (vector-slots 8 1676984 201609) (floats 8 875 3094) (intervals 56 252344 62878) (buffers 960 138)) From debbugs-submit-bounces@debbugs.gnu.org Sat Dec 12 15:59:46 2020 Received: (at 24000) by debbugs.gnu.org; 12 Dec 2020 20:59:46 +0000 Received: from localhost ([127.0.0.1]:46893 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1koBzW-0004e1-Jd for submit@debbugs.gnu.org; Sat, 12 Dec 2020 15:59:46 -0500 Received: from quimby.gnus.org ([95.216.78.240]:51114) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1koBzU-0004dk-W8 for 24000@debbugs.gnu.org; Sat, 12 Dec 2020 15:59:45 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=BbPW9d9oyGDdDw2bphbPAihx/kzMNUrSPGWTRmSxyho=; b=mqYaSQxnr9SZFZv8Ag1P8yXWSJ kEaRCr6PIyns9Y41viDL270L9fRfMS6Te+CJC4rxhQcRMkGr1tFZcuGvV1ZTgaYhYUGDhBVBXlm+v 4ZV3VPTscI64Hd7rSdePvBbiRgQhF9OabtDlHBCChA1ndBmdEhhNZIUjMps43k6vZNyc=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1koBzD-0002bA-8q; Sat, 12 Dec 2020 21:59:37 +0100 From: Lars Ingebrigtsen To: "Greg A. Woods" Subject: Re: bug#24000: 24.5; makefile-bsdmake-mode has incomplete keyword syntax References: X-Now-Playing: Rachel Unthank & The Winterset's _Cruel Sister_: "Cruel Sister" Date: Sat, 12 Dec 2020 21:59:26 +0100 In-Reply-To: (Greg A. Woods's message of "Fri, 15 Jul 2016 15:28:43 -0700") Message-ID: <87pn3e7nbl.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: "Greg A. Woods" writes: > Although it is not well described in the manuals for all variants of BSD > Make, all regular users of any and all variants of BSD Make assume that > all include, conditional, and loop statements (i. [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 24000 Cc: 24000@debbugs.gnu.org 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 (-) "Greg A. Woods" writes: > Although it is not well described in the manuals for all variants of BSD > Make, all regular users of any and all variants of BSD Make assume that > all include, conditional, and loop statements (i.e. what's described in > the "INCLUDE STATEMENTS, CONDITIONALS AND FOR LOOPS" section of the > manual page) may contain a combination of spaces and/or tabs btween the > mandatory leading '.' on the line and the keyword. (This is documented > properly in OpenBSD.) This should now be fixed in Emacs 28. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Sat Dec 12 15:59:55 2020 Received: (at control) by debbugs.gnu.org; 12 Dec 2020 20:59:55 +0000 Received: from localhost ([127.0.0.1]:46896 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1koBze-0004eN-TZ for submit@debbugs.gnu.org; Sat, 12 Dec 2020 15:59:55 -0500 Received: from quimby.gnus.org ([95.216.78.240]:51128) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1koBzZ-0004dt-NR for control@debbugs.gnu.org; Sat, 12 Dec 2020 15:59:53 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type: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=wyS47JzmhHSybgu/k8IYdTqMQp5d+VSpLVLEu+Rjclc=; b=B4OE5/l8/z1c/7Zo1UgRmV4C1T G447P0QlNVV/angeZFNKjA9rlA7CxxbyabcxB8cDv/w9vrw9vzLjwOn05ZDX5E4Z9WTivG1E6IB4m OgffgTx0rFQ2/CQvB8BpEBKZTeyB8FN+DVMLWi6NfT1/+60xbadgLm2f/SRzE41CTyDo=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1koBzS-0002bL-3r for control@debbugs.gnu.org; Sat, 12 Dec 2020 21:59:44 +0100 Date: Sat, 12 Dec 2020 21:59:41 +0100 Message-Id: <87o8iy7nb6.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #24000 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 24000 fixed close 24000 28.1 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control 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 (-) tags 24000 fixed close 24000 28.1 quit From unknown Wed Jun 18 23:10:23 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 10 Jan 2021 12:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator