1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-26 19:18:50 +00:00
Commit Graph

102 Commits

Author SHA1 Message Date
Richard M. Stallman
9391790a10 (makefile-shell-face): Make this a no-op
except on terminals with enough colors to really display it.
(makefile-dependency-regex): Delete spurious `bb'.
2005-06-08 15:43:59 +00:00
Richard M. Stallman
dce16363d3 (makefile-dependency-regex): Handle whitespace
just like other allowed characters.
(makefile-match-dependency): Exclude leading and training whitespace
from the range of regexp subexp 1.
(makefile-macroassign-regex): Don't try to match the body,
just the name of the macro being defined.
2005-06-06 12:50:01 +00:00
Daniel Pfeiffer
30edba6e09 (makefile-targets-face, makefile-shell-face, makefile-makepp-perl-face): Add :version.
(makefile-bsdmake-dependency-regex, makefile-makepp-rule-action-regex, makefile-bsdmake-rule-action-regex): New constants.
(makefile-makepp-mode, makefile-bsdmake-mode): Use them.
2005-06-03 08:47:25 +00:00
Daniel Pfeiffer
d85d15c8ee (makefile-makepp-mode, makefile-bsdmake-mode): Continuation lines may be empty. 2005-05-29 08:01:17 +00:00
Daniel Pfeiffer
adde76933c (makefile-rule-action-regex, makefile-macroassign-regex): Continuation lines may be empty. Reported by Joshua Varner.
(makefile-makepp-font-lock-keywords): Add $(stem).
2005-05-29 07:54:07 +00:00
Daniel Pfeiffer
774cd45416 (makefile-imenu-generic-expression): Use function to find dependencies, because regexp alone is so complex, it easily goes into an endless loop.
(makefile-makepp-mode): Also add submenu for Perl functions defined in the makefile.
(makefile-bsdmake-mode): Special imenu-generic-expression no longer needed, due to function call.
(makefile-match-dependency): Take BOUND into account when checking if we're through.
2005-05-21 02:46:37 +00:00
Richard M. Stallman
e1c45277c5 (makefile-mode): Use run-mode-hooks. 2005-05-19 15:46:19 +00:00
Daniel Pfeiffer
dfa89b5db8 (makefile-add-this-line-targets): Simplify and integrate into `makefile-pickup-targets'.
(makefile-add-this-line-macro): Simplify and integrate into `makefile-pickup-macros.
(makefile-pickup-filenames-as-targets): Simplify.
(makefile-previous-dependency, makefile-match-dependency): Don't stumble over `::'.
2005-05-19 02:20:34 +00:00
Daniel Pfeiffer
5c8b544281 (makefile-previous-dependency, makefile-match-dependency): Check for := (and in bsd mode also !=) to give a better result, even when font-lock is not on. 2005-05-18 20:12:10 +00:00
Daniel Pfeiffer
8ade3c25b7 (makefile-macroassign-regex, makefile-make-font-lock-keywords): Also fontify plain strings assigned to variables, mostly so that a colon has a face and is thus not taken as a dependency separator.
(makefile-mode): Cancel `font-lock-support-mode', because blocks to be fontified in one piece can be too long for JIT.  Makefiles are never *that* big.
2005-05-17 21:37:59 +00:00
Daniel Pfeiffer
0b11ce59ee (makefile-dependency-skip): New variable.
(makefile-previous-dependency): Inline the new matcher, because it is too complex to work in both directions.
(makefile-match-dependency): Eliminate `backward' arg (see above). Completely reimplemented so as to not sometimes go into an endless loop.  It should also be more efficient, because first it only searches for `:', instead of applying the very complex regexp.
2005-05-17 20:45:26 +00:00
Daniel Pfeiffer
92984345bc (makefile-dependency-regex): Turn it into a var, and refine it to mask one more level of nested vars.
(makefile-rule-action-regex): Turn it into a var, and refine it so it recognizes backslashed continuation lines as belonging to the same command.
(makefile-macroassign-regex): Refine it so it recognizes backslashed continuation lines as belonging to the same command.
(makefile-var-use-regex): Don't look at the next char, because it might be the same one to be skipped by the initial [^$], leading to an overlooked variable use.
(makefile-make-font-lock-keywords): Remove two parameters, which are now variables that some of the modes set locally.  Handle dependency and rule action matching through functions, because regexps alone match too often.  Dependency matching now comes last, so it can check, whether a colon already matched something else.
(makefile-mode): Inform that font-lock improves makefile parsing capabilities.
(makefile-match-dependency, makefile-match-action): New functions.
2005-05-16 20:13:09 +00:00
Daniel Pfeiffer
9c859203d9 (makefile-targets-face, makefile-shell-face, makefile-makepp-perl-face): New faces.
(makefile-dependency-regex): Fix it to not make the colon in $(var:a=b) special.
(makefile-rule-action-regex): New regexp for highlighting embedded Shell strings.
(makefile-macroassign-regex): Handle != for highlighting as embedded Shell strings.
(makefile-var-use-regex): New const.
(makefile-statements, makefile-automake-statements)
(makefile-gmake-statements, makefile-makepp-statements)
(makefile-bsdmake-statements): New consts.
(makefile-make-font-lock-keywords): New function.
(makefile-automake-font-lock-keywords)
(makefile-gmake-font-lock-keywords)
(makefile-makepp-font-lock-keywords)
(makefile-bsdmake-font-lock-keywords): New consts.
(makefile-mode-map): Add switchers between the various submodes.
(makefile-mode): Document the availability of the variants.
(makefile-automake-mode, makefile-gmake-mode)
(makefile-makepp-mode, makefile-bsdmake-mode): New derived modes.
2005-05-13 07:51:15 +00:00
Daniel Pfeiffer
10f518f703 (makefile-font-lock-keywords): Use font-lock-negation-char-face. 2005-05-05 19:07:39 +00:00
Richard M. Stallman
4beb7453bd (makefile-fill-paragraph): Don't insist on spaces when looking for
comments.  # is enough.
2004-09-20 15:45:31 +00:00
Kim F. Storm
e008a4e588 Fix comments. 2004-07-22 14:26:26 +00:00
Eli Zaretskii
1550204223 * progmodes/idlwave.el (idlwave-make-tags):
* textmodes/flyspell.el (flyspell-large-region):.
* progmodes/make-mode.el (makefile-query-by-make-minus-q):
* emulation/viper-util.el (viper-glob-unix-files):
* emacs-lisp/shadow.el (shadow-same-file-or-nonexistent):
* man.el (Man-init-defvars):
* jka-compr.el (jka-compr-call-process):
* files.el (get-free-disk-space,insert-directory):
* ediff-ptch.el (ediff-test-patch-utility):
* ediff-diff.el (ediff-test-utility):
* dired-aux.el (dired-check-process):
* mail/sendmail.el (sendmail-send-it): Don't use = or zerop to
test the return value of call-process, because it can be a string.
2004-01-03 12:12:01 +00:00
Stefan Monnier
310ee6ada7 (makefile-font-lock-syntactic-keywords): Don't use `space' for \\\n.
Be more selective as to which # are comment-starters.
2003-11-26 16:49:33 +00:00
Miles Bader
ab5796a9f9 Add arch taglines 2003-09-01 15:45:59 +00:00
Juanma Barranquero
0b51ba8a5a (makefile-font-lock-syntactic-keywords): New variable.
(makefile-mode): Use it for value of font-lock-syntactic-keywords.
2003-03-19 22:25:11 +00:00
Andreas Schwab
33f8eee3ed (makefile-font-lock-keywords): Protect
shell variable references by requireing that $ is not preceded by
another $.
2003-02-24 23:49:27 +00:00
Juanma Barranquero
d58ef8a6f3 (makefile-font-lock-keywords): Simplify last change. 2003-02-12 15:49:41 +00:00
Juanma Barranquero
61bc75ab6c (makefile-font-lock-keywords): Fontify single character variable references, but
protect shell variables references.
(makefile-mode): Make `$' be punctuation in font-lock-defaults.
2003-02-11 23:47:11 +00:00
Juanma Barranquero
a1506d2977 Trailing whitepace deleted. 2003-02-04 13:24:35 +00:00
Andreas Schwab
1ebc190a84 (makefile-font-lock-keywords): Highlight
automatic variable references enclosed in parens and optionally
suffixed by F or D.
2002-12-28 01:04:02 +00:00
Richard M. Stallman
d4fb162228 (makefile-font-lock-keywords): Highlight more make keywords:
defined, endef, override, export, unexport and vpath.
2002-12-02 16:16:52 +00:00
Markus Rost
a27b41aba3 (makefile-space-face): Fix typo in group name. 2002-11-17 22:37:11 +00:00
Miles Bader
5cc2d13754 (makefile-warn-continuations): Don't barf when there _aren't_ any
suspicious continuations.
2002-10-28 08:17:27 +00:00
Richard M. Stallman
a11e28000a (makefile-cleanup-continuations): Default for variable is nil.
(makefile-warn-continuations): New function.
(makefile-mode): Put it on write-file-functions.
2002-10-26 22:49:12 +00:00
Stefan Monnier
e006b3cd93 (makefile-cleanup-continuations-p): Rename to makefile-cleanup-continuations.
(makefile-mode): Use write-file-functions.
(makefile-fill-paragraph): Use match-string-no-properties.
(makefile-fill-paragraph): Use line-end-position.
(makefile-add-log-defun): Simplify.
2002-09-19 01:21:46 +00:00
Richard M. Stallman
bb5b7758d4 (makefile-fill-paragraph): Find comment boundaries before filling. 2002-09-18 16:00:29 +00:00
Stefan Monnier
0017329bca Move `provide' to the end. 2001-11-28 20:41:49 +00:00
Stefan Monnier
debe2de297 Use line-(end|beginning)-position.
(makefile-mode): Set indent-line-function.
(makefile-browser-insert-continuation): Use with-current-buffer.
(makefile-beginning-of-line-point, makefile-end-of-line-point): Remove.
2001-11-28 20:40:36 +00:00
Eli Zaretskii
21f7951223 (makefile-macroassign-regex): Recognize the ?= operator.
From Jonathan Kamens <jik@curl.com>.
2001-07-30 11:09:22 +00:00
Stefan Monnier
a7e34f7948 (makefile-browse): Use make-local-variable. 2001-07-16 01:52:50 +00:00
Stefan Monnier
1dc64fca5b (makefile-font-lock-keywords):
Rationalize the rules for includes and conditionals and use the
keyword face for them.
2001-04-25 15:52:45 +00:00
Eli Zaretskii
c7ca58df3b (makefile-mode): Set SYNTAX-BEGIN member
of `font-lock-defaults' to `backward-paragraph' rather than nil.
2001-02-06 17:10:29 +00:00
Gerd Moellmann
dd717ef272 (makefile-mode-abbrev-table): Remove
duplicate definition.
(makefile-mode): Remove duplicate setting of local-abbrev-table.
2000-07-26 13:02:53 +00:00
Stefan Monnier
363c962e61 (makefile-pickup-filenames-as-targets): Don't quote lambda. 2000-06-12 05:23:37 +00:00
Gerd Moellmann
ba080a3c56 (makefile-mode-abbrev-table): New variable.
(makefile-mode): Set local abbrev table to
makefile-mode-abbrev-table.
(makefile-font-lock-keywords): Fontify includes and conditionals.
2000-05-03 19:24:18 +00:00
Gerd Moellmann
9ffb4859b8 Some doc fixes.
(makefile-mode-abbrev-table): New variable.
(makefile-mode): Set local abbrev table to makefile-mode-abbrev-table.
(makefile-font-lock-keywords): Fontify includes and conditionals.
(toplevel): Require `dabbrev' and `add-log' when compiling.
2000-04-04 21:03:15 +00:00
Stefan Monnier
68049bfad7 (makefile-warn-suspicious-lines): clean
up the code and the regexp and make sure the cursor is temporarily
moved to the suspicious line while querying the user.
2000-03-23 02:39:58 +00:00
Dave Love
66c8215f1f (makefile-mode-hook): Customize. 1999-11-26 17:45:19 +00:00
Dave Love
a564ebfca1 Minor doc fixes. 1999-10-22 17:04:35 +00:00
Richard M. Stallman
3b7f63b13f Comment changes. 1999-02-07 04:07:14 +00:00
Richard M. Stallman
db85e69ca4 (makefile-imenu-generic-expression): New var.
(makefile-menu-index-function): Function deleted.
(makefile-mode): Use makefile-imenu-generic-expression.
1999-02-02 03:47:08 +00:00
Richard M. Stallman
6230363501 Whitespace fix. 1998-07-27 06:38:12 +00:00
Richard M. Stallman
39e7e36ac5 (makefile-font-lock-keywords): Recognize automatic variable references.
(makefile-dependency-regex): Don't be fooled by colons in deps.
1998-07-03 21:37:22 +00:00
Richard M. Stallman
5904765365 (makefile-browser-quit): Use quit-window. 1998-03-08 00:21:26 +00:00
Karl Heuer
9b3d0a18fa (make-mode): Provide make-mode, not makefile. 1998-02-27 22:11:43 +00:00