1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-17 17:58:46 +00:00
Commit Graph

101 Commits

Author SHA1 Message Date
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
Kim F. Storm
41a2f8bab5 (grep-expand-template): Use symbol-value instead of eval on symbols. 2006-05-02 08:50:59 +00:00
Kim F. Storm
d0afff349e (grep-expand-template): Use save-match-data. 2006-05-01 09:33:10 +00:00
Kim F. Storm
208cc91ffb (grep-read-files): Use buffer-name if no buffer-file-name.
Default to *.ext if no alias matches.
No default if no extension.
2006-04-28 23:39:02 +00:00
Kim F. Storm
0acfb7cea6 (defgroup grep): Doc fix.
(grep-auto-highlight): Remove.
(grep-template): New defcustom.
(grep-find-template): Rename from grep-tree-template.
(grep-files-aliases): Rename from grep-tree-files-aliases.
Remove "all" alias, add "l" alias.
(grep-tree-ignore-case, grep-tree-ignore-CVS-directories): Remove.
(grep-find-ignored-directories): New defcustom to replace
grep-tree-ignore-CVS-directories, to facilitate ignoring
subdirectories for multiple version control systems.
(grep-mode-map): Add Recursive grep item to GREP menu.
(grep-regexp-history, grep-files-history): New defvars.
(grep-probe): New helper function.
(grep-compute-defaults): Use it to simplify code.
Adapt to name changes.
Use `.' as base in grep-find-template rather than <D>.
(grep): Remove superfluous highlight-regexp arg.  Fix doc.
Call grep-compute-defaults unconditionally.
(grep-expand-keywords): New defconst.
(grep-expand-template): Rename from grep-expand-command-macros.
Simplify via grep-expand-keywords.  Look at case-fold-search instead
of grep-tree-ignore-case to add -i option.
Bind case-fold-search to nil while matching keywords.
(grep-tree-last-regexp, grep-tree-last-files): Remove.
(grep-read-regexp, grep-read-files): New helper functions.
(rgrep): Rename from grep-tree.	 Rework to use proper histories.
Adapt to changes in defcustoms and functions above.
(lgrep): New command, as grep, but using same interactive api as rgrep.
2006-04-28 22:22:01 +00:00