1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-25 19:11:56 +00:00
Commit Graph

128 Commits

Author SHA1 Message Date
Stefan Monnier
1a0a6cefcf * lisp/progmodes/grep.el (grep-mode-font-lock-keywords): Adjust to
`message' -> `compilation-message' rename.

Fixes: debbugs:8004
2011-02-10 14:13:31 -05:00
Stefan Monnier
07b741a76a Minor cleanup for compile.el and grep.el.
* lisp/progmodes/compile.el: Cleanup text-properties namespace by using
`compilation-message' instead of `message', `compilation-directory'
instead of `directory', and `compilation-debug' instead of `debug'.
(compilation-last-buffer, compilation-parsing-end)
(compilation-error-list, compilation-old-error-list): Move to the
compatibility part of the code.
(compilation-error-properties): If `file' is a function, let it return
a file name.
(compilation-mode-font-lock-keywords): Be more conservative with the
omake "^ *" pattern prefix, to try and minimize the risk of
pathologically slow regexp matching.
(compilation-start): Use inhibit-read-only.
(compilation--unsetup): New function.
(compilation-shell-minor-mode, compilation-minor-mode): Use it.
(compilation-filter): Minor tweaks.
(compilation-next-error-function): Try and avoid abusing variable names.
(compilation--flush-file-structure): New fun.
(compilation-fake-loc): Use it for cleaner behavior when file is reused.
(debug-ignored-errors): Add "Moved past last ...".
(compilation--compat-error-properties)
(compilation--compat-parse-errors): Rename by doubling the "-".

* lisp/progmodes/grep.el (grep-regexp-alist): Tighten regexp.
(grep-mode-font-lock-keywords): Remove regexp that seems like
a left-over from before we used compile.el.
(grep-mode-font-lock-keywords): Call syntax-ppss-flush-cache when
modifying the buffer within with-silent-modifications.
2011-01-28 16:11:19 -05:00
Glenn Morris
73b0cd5003 Convert consecutive FSF copyright years to ranges. 2011-01-24 20:08:28 -08:00
Glenn Morris
0d9f702fd0 Nuke arch-tags. 2011-01-15 15:16:57 -08:00
Glenn Morris
362b9d483c Merge from emacs-23 branch. 2011-01-15 12:03:38 -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
Stefan Monnier
c04f2ac063 * lisp/progmodes/grep.el (grep-regexp-alist): Tighten the regexp.
Fixes: debbugs:7378
2010-11-17 09:54:15 -05:00
Juri Linkov
df9db1517e * progmodes/grep.el (grep-read-files): Fix multi-pattern aliases.
Remove "all" from grep-files-aliases.  Split grep-files-aliases by
whitespace, call wildcard-to-regexp on substrings and concat them
with "\\|".  (Bug#6114)
2010-05-21 23:43:04 +03:00
Chong Yidong
7860d2e357 * progmodes/grep.el (grep-compute-defaults): Fix handling of host
default settings (Bug#5928).
2010-04-14 11:33:42 -04:00
Juri Linkov
ad6fc8f44e * progmodes/grep.el (zrgrep): Call `grep-compute-defaults' at the
beginning of interactive spec like all other grep commands do.
Put "all" in front of "gz".  (Bug#5260)
2010-01-31 23:47:47 +02:00
Glenn Morris
114f9c9679 Add 2010 to copyright years. 2010-01-13 00:35:10 -08:00
Juri Linkov
9136e89523 (grep-read-files): Use `completing-read'
instead of `read-string'.  Set its `collection' arg to
`read-file-name-internal'.  (Bug#4301)
2009-12-07 17:35:47 +00:00
Juri Linkov
a601d31340 Search recursively in gzipped files. (Bug#4982)
(grep-highlight-matches): Add new options
`always' and `auto'.  Doc fix.
(grep-process-setup): Check `grep-highlight-matches' for
`auto-detect' to determine the need to compute grep defaults.
Move Windows/DOS specific --colors settings handling
to `grep-compute-defaults'.  Check `grep-highlight-matches'
to get the value of "--color=".
(grep-compute-defaults): Compute `grep-highlight-matches' when it
has the value `auto-detect'.  Move Windows/DOS specific settings
from `grep-process-setup'.
(zrgrep): New command with alias `rzgrep'.
2009-11-25 17:23:45 +00:00
Juri Linkov
da205913b7 * find-dired.el (find-name-arg): Remove autoload. (Bug#4387)
* progmodes/grep.el (rgrep): Require `find-dired' for `find-name-arg'.
2009-11-19 17:37:22 +00:00
Dan Nicolaescu
2f7f4beee9 * progmodes/grep.el (grep-regexp-alist):
* international/mule-cmds.el (iso-2022-control-alist):
* emacs-lisp/timer.el (timer-duration-words):
* subr.el (version-separator, version-regexp-alist):
* minibuffer.el (completion-styles-alist):
* faces.el (face-attribute-name-alist, list-faces-sample-text):
Change defvars to defconsts.
2009-11-11 06:36:41 +00:00
Dan Nicolaescu
6bdad9ae02 * term/x-win.el (x-gtk-stock-map):
* progmodes/vera-mode.el (auto-mode-alist):
* progmodes/inf-lisp.el (inferior-lisp-filter-regexp)
(inferior-lisp-program, inferior-lisp-load-command):
* progmodes/hideshow.el (hs-special-modes-alist):
* progmodes/gud.el (same-window-regexps):
* progmodes/grep.el (grep-program, find-program, xargs-program):
* net/telnet.el (same-window-regexps):
* net/rlogin.el (same-window-regexps):
* language/ethiopic.el (font-ccl-encoder-alist):
* vc-sccs.el (vc-sccs-master-templates):
* vc-rcs.el (vc-rcs-master-templates):
* subr.el (cl-assertion-failed):
* simple.el (next-error-overlay-arrow-position):
* lpr.el (lpr-command):
* locate.el (locate-ls-subdir-switches):
* info.el (same-window-regexps, info)
(Info-goto-emacs-command-node, Info-goto-emacs-key-command-node):
* image-mode.el (image-mode, auto-mode-alist):
* hippie-exp.el (hippie-expand-ignore-buffers):
* format.el (format-alist):
* find-dired.el (find-ls-subdir-switches, find-grep-options)
(find-name-arg):
* facemenu.el (facemenu-keybindings):
* dired.el (dired-listing-switches, dired-chown-program):
* diff.el (diff-switches, diff-command):
* cus-edit.el (same-window-regexps):
* bindings.el (mode-line-mule-info)
(mode-line-buffer-identification): Purecopy strings.
2009-11-11 05:49:09 +00:00
Juanma Barranquero
5a0c3f568d Fix typos.
* allout.el
* dired-aux.el
* dired-x.el
* epa-file.el
* ps-print.el
* shell.el
* vc-hooks.el
* vc-rcs.el
* vc-sccs.el
* vc.el
* view.el
* wdired.el
* emacs-lisp/authors.el
* net/dig.el
* net/socks.el
* net/zeroconf.el
* obsolete/vc-mcvs.el
* progmodes/gdb-mi.el
* progmodes/grep.el
* progmodes/idlw-help.el
* progmodes/idlw-shell.el
* progmodes/idlwave.el
* progmodes/inf-lisp.el
* textmodes/bibtex.el
* textmodes/ispell.el
* textmodes/reftex-toc.el
2009-09-24 01:37:14 +00:00
Juri Linkov
7ae624301e (grep-template): Add "<X>" to docstring.
(grep-files-aliases): Add "all".  Move "el" and "ch" to the top of
the list.  Move "asm" to the bottom.
(grep-find-ignored-directories): Add `choice' with nil value
to empty the list easily.
(grep-find-ignored-files): New option.
(grep-files-history): Set to nil by default instead of '("ch" "el").
(grep-compute-defaults): Add "<X>" to `grep-template'.
(grep-read-files): Bind new local variables `default-alias' and
`default-extension'.  Use a list of default values for the file prompt.
(lgrep): Add `--exclude=' command line options composed from
`grep-find-ignored-files'.
(rgrep): Add `-name' command line options composed from
`grep-find-ignored-files'.  (Bug#4301)
2009-09-10 00:58:15 +00:00
Juri Linkov
6830f44933 (grep-read-files): Strip trailing <N> from buffer names
not visiting a file (e.g. cloned buffers).
2009-08-30 23:47:11 +00:00
Michael Albinus
458c8d31e4 * progmodes/grep.el (grep-probe): Let-bind `process-file-side-effects' with nil. 2009-08-25 10:11:08 +00:00
Juri Linkov
32a2cf25a7 (lgrep, rgrep): At the beginning
set `dir' to `default-directory' unless `dir' is a non-nil
readable directory.  (Bug#4052)
(lgrep, rgrep): Change a weird way to report an error
from using `read-string' to using `error'.
Instead of using interactive arguments in the function body,
add new argument `confirm'.
2009-08-22 00:17:56 +00:00
Juri Linkov
770f36f8bd (lgrep): Ensure that `default-directory' is always non-nil. (Bug#4052) 2009-08-12 20:54:46 +00:00
Sam Steingold
49405d0e1b (rgrep): Allow grep-find-ignored-directories
to be a cons cell (test . ignored-directory) to selectively ignore
some directories depending on the location of the search.
2009-07-08 14:23:57 +00:00
Chong Yidong
d4bbd646f4 * progmodes/grep.el (grep-compute-defaults): Simplify how settings
are looked up.
(grep-apply-setting): New function.
(grep-highlight-matches, grep-command, grep-template)
(grep-use-null-device, grep-find-command, grep-find-template):
Clarify role of grep-compute-defaults in docstrings.  Use
grep-apply-setting to apply changes (Bug#3343).
2009-05-23 00:11:53 +00:00
Eli Zaretskii
8f0e19afc8 (grep-process-setup) [windows-nt msdos]: Use "--color=always". 2009-02-28 17:26:00 +00:00
Juri Linkov
5d91db30c6 (grep-mode-map): Put grep-find before grep and
change its title from "Recursive grep..." to "Grep via Find...".
Add menu items for lgrep and rgrep.
2009-01-25 00:55:22 +00:00
Glenn Morris
ae940284fa Add 2009 to copyright years. 2009-01-05 03:18:22 +00:00
Chong Yidong
30b724916f (grep-mode-tool-bar-map): Check if tool-bar-map has been initialized
before setting it up.
2008-10-12 13:46:13 +00:00
Chong Yidong
ecad93d232 (grep-mode-tool-bar-map): Initialize it unconditionally. 2008-10-11 19:58:49 +00:00
Dan Nicolaescu
01623c2898 (grep-files-aliases): Improve the C++ source
pattern and add patterns for C++ header files.
2008-07-11 02:44:10 +00:00
Sam Steingold
86c7460fae (compilation-minor-mode-map, compilation-mode-map):
Bind "g" to recompile and "q" to quit-window.
(grep-mode-map): Use `set-keymap-parent' to connect it
to `compilation-minor-mode-map' (instead of an explicit `cons').
2008-05-08 17:28:05 +00:00
Glenn Morris
b1fc2b5014 Switch to recommended form of GPLv3 permissions notice. 2008-05-06 07:25:26 +00:00
Sam Steingold
5f3ca1ba63 * progmodes/compile.el (compilation-start): Move setting of
compilation-directory after (funcall mode) as that resets local
variables, this fixes recompile in grep buffers.
* grep.el (grep-mode-map): Bind "g" to recompile (like in dired &c).
2008-05-02 18:37:07 +00:00
Stefan Monnier
6b3a84f29a Fix up comment convention. 2008-04-18 01:46:37 +00:00
Jan Djärv
94e65e0d28 (grep-mode-tool-bar-map): The same. 2008-03-28 10:05:53 +00:00
Stefan Monnier
286d4b3b7d * progmodes/compile.el (compile):
* progmodes/grep.el (grep, grep-find): Use read-shell-command.
2008-03-20 19:56:58 +00:00
Dan Nicolaescu
388059876a * bindings.el (mode-line-remote): Add mouse-face. Improve tooltip.
(standard-mode-line-position): Add mouse-face.

* progmodes/compile.el (compilation-menu-map):
(compilation-mode-map):
* progmodes/grep.el (grep-mode-map):  Add :help.

* emacs-lisp/lisp-mode.el (emacs-lisp-mode-map): Define and
initialize in one step.  Add :help.  Use :enable to activate menu
items. Show the key binding for edebug-defun.
(lisp-interaction-mode-map): Add a menu.

* term.el (term-mode-map): Define and initialize in one step.

* ediff-init.el (ediff-color-display-p): Simplify.
(Xor): Remove unused function.
(ediff-with-syntax-table): Simplify for emacs.

* ediff-hook.el (menu-bar-ediff-menu): Don't depend on the
menu-bar being loaded, it always is.
2008-03-05 04:09:24 +00:00
Jan Djärv
f387c936a9 (grep-mode-tool-bar-map): Change place on next
and previous.
2008-02-26 14:41:01 +00:00
Jan Djärv
38cd9f1734 (grep-mode-tool-bar-map): New variable.
(grep-mode): Use grep-mode-tool-bar-map.
2008-02-25 10:52:57 +00:00
Stefan Monnier
85e7298f90 (grep-compute-defaults):
Don't mix up defaults for different connections to the same host.
2008-02-01 01:38:32 +00:00
Glenn Morris
26dac56cb6 (find-name-arg): Declare for compiler. 2008-01-04 03:13:43 +00:00
Eric S. Raymond
1f0bee0a2d * progmodes/grep.el (grep-find-ignored-directories): Initialize
from the value of vc-directory-exclusion-list.

* vc-hooks (vc-directory-exclusion-list):  Include "_darcs",
even though we don't have a back end for darcs yet.
2008-01-02 23:47:35 +00:00
Miles Bader
b17f53abc2 Merge from emacs--rel--22
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-966
2007-12-28 22:26:14 +00:00
YAMAMOTO Mitsuharu
ea7ac2eb95 (rgrep): Fix last change. 2007-12-28 10:48:05 +00:00
Jason Rumney
34fac407db (rgrep): Use find-name-arg. 2007-12-21 10:32:55 +00:00
Juri Linkov
6b8d0852a0 (grep-process-setup): Set envvar "TERM" to "emacs-grep".
Set envvar "GREP_OPTIONS" to "--color=auto" instead of "--color=always".
2007-11-23 00:32:05 +00:00
Juanma Barranquero
1571d112d9 (xargs-program): New variable.
(grep-compute-defaults): Use it.
(grep-default-command): Doc fix.
(grep, lgrep, rgrep): Reflow docstrings.
2007-11-20 16:40:16 +00:00
Thien-Thi Nguyen
2796180f96 (grep-files-aliases): Add cc alias.
Sort items in alphabetical order. Fix parens.
2007-08-30 09:37:33 +00:00
Thien-Thi Nguyen
a2e548a97e (grep-find-ignored-directories): Add
monotone _MTN bookkeeping directory in workspaces.  Add
RCS control directory.  List items in alphabetical order.
2007-08-30 09:33:49 +00:00