From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Greg A. Woods" Newsgroups: gmane.emacs.bugs Subject: bug#24000: 24.5; makefile-bsdmake-mode has incomplete keyword syntax Date: Fri, 15 Jul 2016 15:28:43 -0700 Message-ID: Reply-To: "Greg A. Woods" NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1468630417 26976 80.91.229.3 (16 Jul 2016 00:53:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 16 Jul 2016 00:53:37 +0000 (UTC) To: 24000@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jul 16 02:53:24 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1bODqg-0007pf-1o for geb-bug-gnu-emacs@m.gmane.org; Sat, 16 Jul 2016 02:52:54 +0200 Original-Received: from localhost ([::1]:35153 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bOBcd-0005u4-4U for geb-bug-gnu-emacs@m.gmane.org; Fri, 15 Jul 2016 18:30:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45405) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bOBcW-0005oq-In for bug-gnu-emacs@gnu.org; Fri, 15 Jul 2016 18:30:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bOBcR-0003he-DY for bug-gnu-emacs@gnu.org; Fri, 15 Jul 2016 18:30:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:41030) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bOBcR-0003hN-AY for bug-gnu-emacs@gnu.org; Fri, 15 Jul 2016 18:30:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bOBcR-00055N-58 for bug-gnu-emacs@gnu.org; Fri, 15 Jul 2016 18:30:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: "Greg A. Woods" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 15 Jul 2016 22:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 24000 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.146862175719467 (code B ref -1); Fri, 15 Jul 2016 22:30:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 15 Jul 2016 22:29:17 +0000 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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) Original-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) 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: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:121125 Archived-At: 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))