1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-17 10:06:13 +00:00
emacs/etc/grep.txt
Juri Linkov 7a1d7ba7d2 * lisp/progmodes/grep.el (grep-mode-font-lock-keywords): Support =linenumber=
format used by git-grep for lines with function names.

Fixes: debbugs:13549
2013-05-24 23:54:38 +03:00

117 lines
4.3 KiB
Plaintext
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

* Introduction -*-grep-*- (See the end of file for copyright information)
This shows the different kinds of messages grep recognizes by default and
how they are rendered. It is intended both to help you decide which matchers
you need and as a test of the matchers. Move the mouse over a colored part
to see how much text was actually matched.
Please do not edit this file in grep-mode, it may lose escape
sequences on saving. Visit this file literally for editing.
* GNU grep 2.5.1
grep -nH -e "INFO tree" ../info/*
../info/dir:6:File: dir Node: Top This is the top of the INFO tree
* GNU grep 2.5.1 with default colors
grep -nH --color=always -e "INFO tree" ../info/*
../info/dir:6:File: dir Node: Top This is the top of the INFO tree
* GNU grep 2.5.1-cvs with the specified matching color
GREP_COLORS='mt=01;31:fn=:ln=:bn=:se=:ml=:cx=:ne' grep -nH --color=always -e "INFO tree" ../info/*
../info/dir:6:File: dir Node: Top This is the top of the INFO tree
* GNU grep 2.5.1-cvs with colors for the file name, line number and match
GREP_COLORS='mt=01;31:fn=35:ln=32:bn=:se=:ml=36:cx=37:ne' grep -nH --color=always -e "INFO tree" ../info/*
../info/dir:6:File: dir Node: Top This is the top of the INFO tree
1:2:3:4:text
1:2:3:4:text
1:2:3:4:text
* GNU grep 2.5.1-cvs with default colors
grep -nH --color=always -e "INFO tree" ../info/*
../info/dir:6:File: dir Node: Top This is the top of the INFO tree
* GNU grep 2.5.1 on lines starting with a number and colon
grep -nH -e "Universal Time" ../lispref/*
../lispref/os.texi:1010:0:00 January 1, 1970 UTC (Coordinated Universal Time)
* GNU grep 2.5.1 with context lines
grep -C 2 -nH --color=always -e "INFO tree" ../info/*
../info/dir-4-looking at that node, which is (dir)Top.
../info/dir-5-
../info/dir:6:File: dir Node: Top This is the top of the INFO tree
../info/dir-7-
../info/dir-8-The Info Directory
* GNU grep 2.5.1 on files recognized as binary
Binary file emacs-7 matches
Binary file 2005-06 matches
* GNU grep 2.5.1: other messages
Grep started at Tue Jul 19 15:41:30
grep: ../info/dirinfo: No such file or directory
Grep interrupt at Tue Jul 19 15:42:31
Grep killed at Tue Jul 19 15:42:31
Grep terminated at Tue Jul 19 15:42:31
Grep exited abnormally with code 2 at Tue Jul 19 15:42:31
Grep finished with no matches found at Tue Jul 19 15:43:12
Grep finished (matches found) at Thu Jul 21 15:02:15
* agrep
agrep -n "INFO tree" ../info/*
../info/dir: 6: File: dir Node: Top This is the top of the INFO tree
* git-grep
with `[diff "el"] xfuncname = "^(\\(.*)$"' in .gitconfig
and `*.el diff=el' in .gitattributes
git grep -inH -p -e "org-element-map"
lisp/org/org.el=20969=(defun org-fill-paragraph (&optional justify)
lisp/org/org.el:21047: (org-element-map
* unknown greps
grep -nH -e "xyzxyz" ../info/*
../info/emacs-2:1205:10:inserts `xyzxyzxyzxyz' in the current buffer.
../info/emacs-2:1205:10-15:inserts `xyzxyzxyzxyz' in the current buffer.
../info/emacs-2:1205.10-1205.15:inserts `xyzxyzxyzxyz' in the current buffer.
../info/emacs-2 1205.10-15 inserts `xyzxyzxyzxyz' in the current buffer.
../info/emacs-2 1205.10-1205.15 inserts `xyzxyzxyzxyz' in the current buffer.
../info/emacs-2 1205 inserts `xyzxyzxyzxyz' in the current buffer.
Copyright (C) 2005-2013 Free Software Foundation, Inc.
COPYING PERMISSIONS:
This document is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
;;; Local Variables:
;;; eval: (let ((inhibit-read-only t) (compilation-filter-start (point-min))) (save-excursion (goto-char (point-max)) (grep-filter) (set-buffer-modified-p nil)))
;;; buffer-read-only: t
;;; End: