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
Richard M. Stallman
c60c6d914e
Whitespace fix.
2007-08-17 04:30:09 +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
Michael Albinus
2e2eead345
* progmodes/grep.el (grep-compute-defaults): Keep default values.
2007-07-22 19:59:30 +00:00
Michael Albinus
6e3aa3f58e
* progmodes/grep.el (grep-host-defaults-alist): New defvar.
...
(grep-compute-defaults): Use it.
2007-07-18 21:02:29 +00:00
Michael Albinus
05c7c7b162
* progmodes/grep.el (grep-probe): Use `process-file'.
...
(grep-compute-defaults): Handle variables host specific.
2007-07-17 21:08:49 +00:00
Chong Yidong
7f3afa3d83
(grep-find-use-xargs): Rewrite docstring.
2007-04-07 16:55:36 +00:00
Kim F. Storm
1ae5b5edf7
(grep-program): Remove commentary about zgrep.
...
Due to lack of papers from Kevin Rodgers.
2007-04-06 16:23:26 +00:00
Dan Nicolaescu
3dd34132f8
(grep-find-ignored-directories): Add .git and
...
.bzr to list.
2007-03-11 17:44:40 +00:00
Kim F. Storm
9d4a3d3909
(grep-files-aliases): Add tex and texi aliases.
...
(lgrep): Add DIR arg to start grep in specific directory, like rgrep.
(grep): Fix lgrep reference.
2007-02-14 11:54:12 +00:00
Dan Nicolaescu
215c384796
(grep): Mention lgrep and rgrep in the
...
docstring.
2007-02-12 06:44:47 +00:00
Glenn Morris
d7a0267c8d
Add 2007 to copyright years.
2007-01-21 03:53:13 +00:00
Kim F. Storm
84d797c949
(grep-find-use-xargs): Use explicit value `exec'
...
to mean "use find -exec"; nil now unambiguously means auto-detect.
(grep-compute-defaults): Set grep-find-use-xargs to `exec' if not `gnu'.
Use shell-quote-argument to build grep-find-command and grep-find-template.
(rgrep): Use shell-quote-argument to properly quote arguments to find.
Reported by Tom Seddon.
2006-08-23 23:23:02 +00:00
Richard M. Stallman
13eb1bded1
(grep-default-command): Catch errors from wildcard-to-regexp.
2006-07-29 02:03:21 +00:00
Kim F. Storm
bcdf86fb51
(grep-read-files): Use car of grep-files-history or grep-files-aliases
...
as default if nothing else applies.
2006-07-28 23:20:21 +00:00
Kim F. Storm
7cb0d0ef5a
(grep-tag-default): New function.
...
(grep-default-command, grep-read-regexp): Use it.
2006-07-28 23:03:18 +00:00
Kim F. Storm
ee87a9f988
(grep-find-ignored-directories): Add .svn and _darcs to list.
2006-07-19 11:19:27 +00:00
Richard M. Stallman
f911a4454a
(grep-last-buffer): Doc fix.
2006-07-12 16:05:19 +00:00
Kim F. Storm
c2c04c28f3
(grep-mode-font-lock-keywords): Correct regexps
...
to recognize mode name containing submodes, such as Grep/lw.
2006-06-22 14:13:49 +00:00
Kim F. Storm
a34f7eb165
(grep-find): Don't check grep-find-command
...
before running command (breaks non-interactive usage).
2006-05-18 14:39:09 +00:00
Kim F. Storm
c0b87c3fdb
(rgrep): Set default directory of *grep*
...
buffer if we start M-x rgrep in the *grep* buffer and choose
a different base directory.
2006-05-09 12:47:12 +00:00
Kim F. Storm
6e7c574fd8
(lgrep, rgrep): Doc fixes.
2006-05-08 10:26:30 +00:00
Kim F. Storm
c3e9438b5f
(lgrep, rgrep): Use add-to-history.
2006-05-05 23:38:18 +00:00