Commit graph

43 commits

Author SHA1 Message Date
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
Stefan Monnier
43ed65acea (flymake-check-start-time, flymake-check-was-interrupted, flymake-err-info)
(flymake-is-running, flymake-last-change-time, flymake-new-err-info)
(flymake-timer): Move definitions, so we can remove earlier declarations.
(flymake-replace-regexp-in-string, flymake-split-string)
(flymake-get-temp-dir): Use defalias.
(flymake-popup-menu): Remove `pos' argument.  Use posn-at-point.
(flymake-xemacs-window-edges): Remove unused function.
(flymake-get-point-pixel-pos): Move.
(flymake-pid-to-names, flymake-reg-names)
(flymake-get-source-buffer-name, flymake-unreg-names): Remove.
Replace by a simple list flymake-processes and by process-buffer.
Update callers.  Other than simplify the code, it uses buffers rather
than buffer-names so it doesn't get confused by uniquify.
(flymake-buffer-data): The global value should just be nil.
2006-01-03 18:44:42 +00:00
Stefan Monnier
4dd68f4433 (flymake-copy-buffer-to-temp-buffer): Simplify.
(flymake-parse-output-and-residual): Remove `source-buffer' argument.
(flymake-process-filter): Switch to buffer before calling it instead.
(flymake-post-syntax-check, flymake-highlight-err-lines)
(flymake-delete-own-overlays, flymake-parse-err-lines)
(flymake-start-syntax-check, flymake-start-syntax-check-process)
(flymake-count-lines, flymake-parse-residual): Remove constant buffer argument.
(flymake-start-syntax-check-for-current-buffer): Remove.
Update callers to use flymake-start-syntax-check instead.
(flymake-display-err-menu-for-current-line): Remove unused var `mouse-pos'.
(flymake-restore-formatting): Comment out unused function.
(flymake-report-status, flymake-report-fatal-status): Remove buffer
argument, use current-buffer instead.  Update callers.
2005-12-30 17:28:30 +00:00
Deepak Goel
29a4e67d88 Message format fixes, commit no. 3 2005-09-18 12:31:28 +00:00
Richard M. Stallman
c3b8339fd7 Require `compile' unconditionally. 2005-09-09 01:24:15 +00:00
Eli Zaretskii
1f33471dda (flymake-highlight-err-lines): Use save-excursion around
flymake-highlight-line to preserve point.
2005-08-26 13:49:07 +00:00
Dan Nicolaescu
e95e5f8193 * mh-customize.el: Do not use face-alias compatibility for
faces that did not appear in the previous Emacs release.

* buff-menu.el:
* compare-w.el:
* emacs-lisp/testcover.el:
* play/gomoku.el:
* play/mpuz.el:
* progmodes/flymake.el:
* progmodes/gdb-ui.el:
* progmodes/idlw-help.el:
* progmodes/idlw-shell.el:
* progmodes/ld-script.el:
* progmodes/which-func.el:
* ruler-mode.el:
* strokes.el:
* textmodes/sgml-mode.el:
* textmodes/table.el: Do not use face-alias for backward
compatibility for faces that did not appear in the previous Emacs
release.
2005-08-15 21:29:32 +00:00
Nick Roberts
034babe1e1 Update copyright for release of 22.1 for progmodes directory. 2005-08-01 08:43:45 +00:00
Richard M. Stallman
7ea8834e08 (flymake-float-time): Instead of with-no-warnings, test for xemacs.
(flymake-replace-regexp-in-string): Test fboundp of replace-in-string
to avoid warning.
2005-07-06 19:03:21 +00:00
Stefan Monnier
0ea7c863fb Remove useless eval-when-compile. 2005-07-04 18:54:30 +00:00
Lute Kamstra
3a35cf56e7 Update FSF's address. 2005-07-04 17:55:18 +00:00
Juanma Barranquero
c92d602307 (flymake-find-file): Remove.
(flymake-float-time): Use `with-no-warnings'.
(flymake-check-start-time, flymake-check-was-interrupted, flymake-err-info,
flymake-is-running, flymake-last-change-time, flymake-new-err-info):
`defvar' at compile time.
2005-07-03 23:18:19 +00:00
Luc Teirlinck
bd6a83d5b3 (flymake-mode, flymake-mode-off): Fix unbalanced parentheses.
From David Hunter (tiny change).
2005-07-02 21:17:05 +00:00
Stefan Monnier
d57f6b5ed1 (flymake-mode-on, flymake-mode-off): Move body into flymake-mode and
delegate to flymake-mode.
2005-07-02 19:36:38 +00:00
Juanma Barranquero
173569aaca (flymake-find-possible-master-files, flymake-master-file-compare,
flymake-get-line-err-count, flymake-highlight-line,
flymake-gui-warnings-enabled): Fix typos in docstrings.
(flymake-parse-line, flymake-get-project-include-dirs-function,
flymake-get-prev-err-line-no, flymake-goto-prev-error): Doc fixes.
(flymake-get-project-include-dirs-function, flymake-make-err-menu-data): Improve
argument/docstring consistency.
2005-07-01 14:13:12 +00:00
Miles Bader
ded09abd8d Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-412
Remove "-face" suffix from flymake faces

2005-06-14  Miles Bader  <miles@gnu.org>

   * lisp/progmodes/flymake.el (flymake-errline, flymake-warnline):
   Remove "-face" suffix from face names.
   (flymake-errline-face, flymake-warnline-face):
   New backward-compatibility aliases for renamed faces.
   (flymake-highlight-line): Use renamed flymake faces.
2005-06-14 23:20:37 +00:00
Juanma Barranquero
69df8d97d8 (flymake-new-err-info, flymake-start-syntax-check-for-current-buffer,
flymake-simple-cleanup): Fix quoting in docstring.
2005-06-14 11:32:58 +00:00
Richard M. Stallman
adf8a02eb3 (flymake-makehash): Use with-no-warnings. 2005-05-21 04:53:14 +00:00
Juanma Barranquero
027a4b6b3f Replace string-to-int' by string-to-number'. 2005-05-16 11:34:49 +00:00
Richard M. Stallman
53ec26eded (flymake-split-string)
(flymake-split-string, flymake-log, flymake-pid-to-names)
(flymake-reg-names, flymake-get-source-buffer-name)
(flymake-unreg-names, flymake-add-line-err-info)
(flymake-add-err-info): Clarify docstrings.
(flymake-popup-menu, flymake-make-emacs-menu)
(flymake-make-xemacs-menu): Add docstrings.
(flymake-get-buffer-*, flymake-set-buffer-*): Functions deleted.
Set variables directly throughout.
2005-04-30 20:13:39 +00:00
Stefan Monnier
b8471a023e (flymake-get-absolute-file-name-basedir): Remove. Update callers to use
expand-file-name instead.
2005-04-19 18:19:43 +00:00
Lute Kamstra
d799c27880 (flymake-mode): Specify :group. 2005-04-04 09:22:59 +00:00
Stefan Monnier
5ffc943b8f (flymake-mode): Add autoload cookie. 2005-03-26 15:33:33 +00:00
Stefan Monnier
17404091a0 (flymake-get-file-name-mode-and-masks)
(flymake-find-buildfile, flymake-find-possible-master-files)
(flymake-check-include, flymake-parse-line): Replace loops over the
length of lists, by loops over lists, to remove silly O(n�) behavior.
2005-03-25 00:17:42 +00:00
Stefan Monnier
4bd0a5d078 (flymake-ensure-ends-with-slash): Remove.
Substitute file-name-as-directory in the rest of the file.
(flymake-get-common-file-prefix): Rewrite, using compare-strings.
(flymake-replace-region): Remove unused arg `buffer'.
(flymake-check-patch-master-file-buffer): Update calls to it.
(flymake-add-err-info): Remove unused var `count'.
(flymake-mode): Use define-minor-mode.
2005-03-25 00:06:07 +00:00
Stefan Monnier
cd2325cdd3 Use with-current-buffer.
(flymake-float-time, flymake-get-temp-dir, flymake-replace-regexp-in-string)
(flymake-line-beginning-position, flymake-current-row, flymake-selected-frame)
(flymake-line-end-position, flymake-popup-menu): Avoid testing for `xemacs'.
(flymake-nop): Move.
(flymake-region-has-flymake-overlays): Return the computed value.
(flymake-reformat-err-line-patterns-from-compile-el): Use dolist.
Remove unused var `endline'.
(flymake-get-line-count): Remove unused function.
(flymake-display-err-menu-for-current-line): Unused var `move-mouse-pos'.
2005-03-24 22:55:54 +00:00
Stefan Monnier
9a686ad201 Misc fix up of comments and docstrings. 2005-03-24 22:42:42 +00:00
Kim F. Storm
ce721de432 Use (featurep 'xemacs).
(flymake-makehash): Change to defsubst. Use fboundp.
(flymake-time-to-float): Remove.
(flymake-float-time): Merge code from flymake-time-to-float here.
(flymake-replace-regexp-in-string): Change to defsubst.
(flymake-split-string-remove-empty-edges): Rename to flymake-split-string.
(flymake-split-string): Remove previous defalias.
(flymake-get-temp-dir): Change to defsubst.
(flymake-make-xemacs-menu, flymake-xemacs-window-edges): Define
for xemacs only.
(flymake-master-file-count-limit): Change into compiler defvar only.
(flymake-find-possible-master-files): Let-bind it dynamically while
sorting files using flymake-master-file-compare.
2004-11-26 23:56:39 +00:00
Richard M. Stallman
5323b4b056 Reindent.
(flymake-split-string):	Turn into defalias.
(flymake-fix-file-name): Renamed from flymake-fix-path-name.
(flymake-ensure-ends-with-slash): Rename arg to FILENAME.
(flymake-get-common-file-prefix): Renamed from ...path...  Doc fix.
(flymake-build-relative-filename): Renamed from ...path.
Fix error message.
2004-11-25 16:43:32 +00:00
Richard M. Stallman
2aa13ec4e0 Much whitespace and capitalization change.
Move `provide' to end.  Require `compile' only when compiling.
2004-11-25 16:33:53 +00:00
Masatake YAMATO
12e46b0083 2004-11-2 Pavel Kobiakov <pk_at_work@yahoo.com>
* progmodes/flymake.el (flymake-err-line-patterns): Use
	`flymake-reformat-err-line-patterns-from-compile-el' to convert
	`compilation-error-regexp-alist-alist' to internal Flymake format.

	* progmodes/flymake.el: eliminated byte-compiler warnings.
2004-11-01 17:42:31 +00:00
Masatake YAMATO
e3c9b21e83 * progmodes/flymake.el (flymake-split-string): Use
`flymake-split-string-remove-empty-edges' in any case.

* progmodes/flymake.el (flymake-err-line-patterns):
  Use `compilation-error-regexp-alist-alist' instead of
  `compilation-error-regexp-alist'.
2004-10-25 16:58:46 +00:00
Miles Bader
e1b46e0cc0 Changes from arch/CVS synchronization 2004-05-29 21:02:20 +00:00
Eli Zaretskii
4bcbcb9df3 New file. 2004-05-29 12:55:24 +00:00