1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-10 16:20:17 -08:00
Commit graph

83 commits

Author SHA1 Message Date
Lars Magne Ingebrigtsen
83319045a4 * progmodes/flymake.el (flymake-mode): If the buffer isn't
associated with a file, refuse to run instead of erroring out
(bug#6084).
2011-07-03 00:55:41 +02:00
Lars Magne Ingebrigtsen
5bd3590262 * progmodes/flymake.el (flymake-find-file-hook): Add an `autoload'
cookie, since the manual says that it should be possible to add
this function to `find-file-hook'.
2011-07-01 12:33:50 +02:00
Glenn Morris
819a6054c7 flymake.el fix for bug#8866.
* lisp/progmodes/flymake.el (flymake-err-line-patterns):
Allow for column numbers in the ant/javac pattern.
2011-06-27 00:23:27 -07:00
Glenn Morris
2c5871045a Merge from emacs-23; up to 2010-06-13T18:15:45Z!eliz@gnu.org. 2011-06-08 00:17:26 -07:00
Juanma Barranquero
e02f48d76b lisp/progmodes/*.el: Lexical-binding cleanup. 2011-04-22 20:44:26 +02:00
Stefan Monnier
c79a6f38ab * lisp/progmodes/flymake.el (flymake-start-syntax-check-process): Obey `dir'. 2011-04-20 15:08:21 -03:00
Glenn Morris
95df8112a0 Refill some long/short copyright headers. 2011-01-26 00:36:39 -08:00
Glenn Morris
73b0cd5003 Convert consecutive FSF copyright years to ranges. 2011-01-24 20:08:28 -08:00
Stefan Monnier
77ab81d054 Merge from emacs-23 2011-01-14 12:18:41 -05:00
Glenn Morris
5df4f04cd3 Add 2011 to FSF/AIST copyright years. 2011-01-02 15:50:46 -08:00
Glenn Morris
bd77c2effa Small flymake changes.
* lisp/progmodes/flymake.el (flymake-check-file-limit):
Allow nil to mean "no limit".
(flymake-check-patch-master-file-buffer): Update for above change.
Allow a .tex file-name extension to be optional.
(flymake-master-tex-init): Also match \include statements.
2010-12-02 09:34:35 -08:00
Glenn Morris
81aa0dabb3 Fix typo in previos flymake change. 2010-11-06 19:02:54 -07:00
Glenn Morris
3ba6b2ee6a Replace unneeded compatibility definitions with point-at-bol, point-at-eol.
* lisp/progmodes/verilog-mode.el (verilog-get-beg-of-line)
(verilog-get-end-of-line): Remove.
(verilog-within-string, verilog-re-search-forward-substr)
(verilog-re-search-backward-substr, verilog-set-auto-endcomments)
(verilog-surelint-off, verilog-getopt-file, verilog-highlight-region):
Use point-at-bol, point-at-eol.
* lisp/progmodes/pascal.el (pascal-get-beg-of-line, pascal-get-end-of-line):
Remove.
(pascal-declaration-end, pascal-declaration-beg, pascal-within-string)
(electric-pascal-terminate-line, pascal-set-auto-comments)
(pascal-indent-paramlist, pascal-indent-declaration)
(pascal-get-lineup-indent, pascal-func-completion)
(pascal-get-completion-decl, pascal-var-completion, pascal-completion):
Use point-at-bol, point-at-eol.
* lisp/progmodes/flymake.el (flymake-line-beginning-position)
(flymake-line-end-position): Remove.
(flymake-highlight-line): Use point-at-bol, point-at-eol.
* lisp/eshell/esh-util.el (line-end-position, line-beginning-position):
Remove compat definitions.

* net/tramp/tramp-compat.el: Comment.
2010-11-06 18:50:52 -07:00
Michael Albinus
a67e6f1334 * progmodes/flymake.el (flymake-start-syntax-check-process): Use
`start-file-process' in order to let it run also on remote hosts.
2010-08-18 20:24:52 +02:00
Chong Yidong
fd09a83f94 Flymake fix to handle more C++ filenames (Bug#5488).
* progmodes/flymake.el (flymake-allowed-file-name-masks)
(flymake-master-make-header-init): Add other C++ filename masks.
(flymake-find-possible-master-files)
(flymake-check-patch-master-file-buffer): Doc fixes (Bug#5488).
2010-01-28 14:53:11 -05:00
Juanma Barranquero
80cd4bb402 Fix typo in error message. 2010-01-14 19:49:53 +01:00
Glenn Morris
114f9c9679 Add 2010 to copyright years. 2010-01-13 00:35:10 -08:00
Glenn Morris
5f68c1b736 Use forward-line rather than goto-line. 2009-09-01 03:18:44 +00:00
Deepak Goel
b3f5a84631 m-v corrections. 2009-03-13 20:37:43 +00:00
Martin Rudalics
57a97b446f (flymake): Add defgroup. (Bug#2356) 2009-02-18 07:41:10 +00:00
Glenn Morris
ae940284fa Add 2009 to copyright years. 2009-01-05 03:18:22 +00:00
Stefan Monnier
8cd56959b4 * files.el (locate-dominating-stop-dir-regexp): New var.
(locate-dominating-file): Change arg from a regexp to a file name.
Rewrite using the vc-find-root code to avoid directory-files which is
too slow.  Obey locate-dominating-stop-dir-regexp.
Don't pay attention to changes in owner.
(project-find-settings-file): Adjust call to locate-dominating-file.

* progmodes/flymake.el (flymake-find-buildfile):
Adjust call to locate-dominating-file.

* vc-hooks.el (vc-find-root): Use locate-dominating-file.
(vc-ignore-dir-regexp): Use locate-dominating-stop-dir-regexp.
2008-10-25 15:18:53 +00:00
Chong Yidong
b89b385c16 (flymake-parse-err-lines): Filter out errors occurring in different
files.
2008-09-07 19:05:05 +00:00
Chong Yidong
928b4203c1 Add terminal class check to faces in last change. 2008-07-23 22:03:40 +00:00
Chong Yidong
0880f4fcb1 (flymake-errline, flymake-warnline): Use more suitable colors on dark
displays.
2008-07-23 21:54:48 +00:00
Stefan Monnier
466a09b5f8 (flymake-process-filter): Make sure the source buffer isn't dead. 2008-06-03 08:12:02 +00:00
Stefan Monnier
ab1d38354d * progmodes/flymake.el (flymake-save-buffer-in-file):
* shadowfile.el (shadow-copy-file):
* arc-mode.el (archive-*-write-file-member):
* files.el (diff-buffer-with-file):
* subr.el (with-temp-file): Pass nil to write-region.
* jka-compr.el (jka-compr-write-region): Preserve `start's nullness.
2008-05-28 17:35:34 +00:00
Glenn Morris
b1fc2b5014 Switch to recommended form of GPLv3 permissions notice. 2008-05-06 07:25:26 +00:00
Mark A. Hershberger
eabd11d4da add support to flymake for php, add support to flymake for perl module files (.pm) 2008-02-13 19:30:58 +00:00
Miles Bader
59ce725a3b Merge from emacs--rel--22
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-987
2008-01-08 20:46:54 +00:00
Glenn Morris
4e643dd23c Add 2008 to copyright years. 2008-01-07 02:11:00 +00:00
Martin Rudalics
caf790b6e3 (flymake-goto-file-and-line): Fix typo in string. 2007-11-17 09:46:37 +00:00
Miles Bader
37cc095b6a Merge from emacs--rel--22
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-851
2007-08-13 13:41:28 +00:00
Richard M. Stallman
a988c1c239 (flymake-err-line-patterns): Fix infloop in javac regexp. 2007-08-12 18:01:29 +00:00
Miles Bader
9aecacd08a Merge from emacs--rel--22
Patches applied:

 * emacs--rel--22  (patch 70-73)

   - Update from CVS

2007-07-25  Glenn Morris  <rgm@gnu.org>

   * Relicense all FSF files to GPLv3 or later.

Revision: emacs@sv.gnu.org/emacs--devo--0--patch-828
2007-07-26 05:28:10 +00:00
Glenn Morris
1a484753b2 Switch license to GPLv3 or later. 2007-07-25 04:29:40 +00:00
Stefan Monnier
8ebbfc80ba (flymake-buildfile-dirs): Remove.
(flymake-find-buildfile): Use locate-dominating-file.
2007-07-20 04:09:08 +00:00
Eli Zaretskii
8c01db22ac (flymake-err-line-patterns): Doc fix. 2007-03-31 09:37:59 +00:00
Juanma Barranquero
84bb5a0c65 (flymake-init-create-temp-source-and-master-buffer-copy): Fix typo in docstring. 2007-01-29 16:18:04 +00:00
Glenn Morris
d7a0267c8d Add 2007 to copyright years. 2007-01-21 03:53:13 +00:00
Eli Zaretskii
1d9a4930a5 (flymake-posn-at-point-as-event): New function.
(flymake-popup-menu): Use it instead of posn-at-point.
2006-11-25 13:29:40 +00:00
Kim F. Storm
ff4e2883a3 2006-10-15 Lennart Borgman <lennart.borgman.073@student.lu.se>
(flymake-get-project-include-dirs-imp): Use shell-quote-argument.
2006-10-15 20:42:28 +00:00
Juanma Barranquero
57d3a1f359 (flymake-fix-file-name): Fix typo in docstring. 2006-02-16 11:40:51 +00:00
Stefan Monnier
9f812d2370 Add bugs/todo entry. 2006-01-10 19:16:02 +00:00
Stefan Monnier
587d108e55 (flymake-split-string): Remove >1 empty strings at beg/end of the result.
(flymake-find-buildfile, flymake-find-possible-master-files):
Use expand-file-name.
(flymake-fix-file-name): Don't replace \ with / and don't remove ./
since expand-file-name does it for us.  Use directory-file-name.
(flymake-ler-get-full-file, flymake-ler-get-file, flymake-ler-get-line)
(flymake-ler-get-type, flymake-ler-get-text)
(flymake-ler-make-ler): Remove.  Replace by defstruct.  Update callers.
(flymake-current-line-no): Remove spurious interactive spec.
(flymake-delete-temp-directory): Remove unused var `slash-pos'.
(flymake-check-include): Remove arg inc-path merged into inc-name.
(flymake-check-patch-master-file-buffer): Fit in 80 columns.
Arg regexp-list replaced by a simple regexp.
(flymake-master-make-header-init, flymake-master-tex-init):
Correspondingly replace regexp-list with a regexp.  Fix regexp.
2006-01-10 18:46:07 +00:00
Stefan Monnier
5f73367de4 (flymake-find-buildfile): Remove invariant arg `dirs'. Adjust callers. 2006-01-10 04:05:46 +00:00
Stefan Monnier
6fee12e66d Use `require' rather than autoload for XEmacs's overlays.
(flymake-get-common-file-prefix, flymake-build-relative-filename):
Delete.  Use file-relative-name instead.
(flymake-get-syntax-check-program-args, flymake-perl-init):
Simplify the resulting code.
2006-01-09 19:11:28 +00:00
Stefan Monnier
c07fa03069 (flymake-get-cleanup-function): Default to flymake-simple-cleanup.
(flymake-allowed-file-name-masks): Use this new default.
All the functions are now called in the right buffer rather than
passing the buffer as argument.
(flymake-process-sentinel): Switch to buffer before calling cleanup.
(flymake-parse-err-lines): Remove redundant buffer arg.
(flymake-get-program-dir): Comment out unused function.
(flymake-start-syntax-check, flymake-start-syntax-check-process):
Remove redundant buffer argument.
(flymake-get-real-file-name, flymake-simple-java-cleanup)
(flymake-simple-cleanup, flymake-master-cleanup): Remove buffer arg.
2006-01-05 18:51:00 +00:00
Stefan Monnier
6df1924164 (flymake-create-temp-with-folder-structure): Use expand-file-name.
(flymake-delete-temp-directory): Use expand-file-name,
file-name-directory, and directory-file-name.
(flymake-strrchr): Delete.
(flymake-start-syntax-check): Don't pass the redundant buffer argument
to the init-f function.
(flymake-init-find-buildfile-dir, flymake-init-create-temp-buffer-copy)
(flymake-init-create-temp-source-and-master-buffer-copy, flymake-perl-init)
(flymake-save-buffer-in-file, flymake-simple-make-init-impl, flymake-xml-init)
(flymake-simple-make-init, flymake-master-make-init, flymake-master-tex-init)
(flymake-master-make-header-init, flymake-simple-make-java-init)
(flymake-simple-ant-java-init, flymake-simple-tex-init):
Remove corresponding redundant buffer argument.
(flymake-allowed-file-name-masks): Remove last elems that are equal to
the default anyway.  Clean up regexps.
2006-01-03 19:59:00 +00:00
Stefan Monnier
5bcef417b1 (flymake-base-dir, flymake-master-file-name, flymake-temp-master-file-name)
(flymake-temp-source-file-name): New buffer-local vars.
(flymake-buffer-data, flymake-get-buffer-value, flymake-set-buffer-value):
Replace those hash-tables by the new buffer-local vars.  Update callers.
2006-01-03 19:05:06 +00:00