emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

grep.el and `function-name' ?


From: Michaël Cadilhac
Subject: grep.el and `function-name' ?
Date: Thu, 05 Oct 2006 16:05:20 +0200
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (gnu/linux)

Hi!

In the font-locking mechanism of grep.el, the following appears :

(defvar grep-mode-font-lock-keywords
   '(;; Command output lines.
     ("^\\([A-Za-z_0-9/\.+-]+\\)[ \t]*:" 1 font-lock-function-name-face)

I don't see what this regexp is meant to match. In fact, it doesn't
give a good result with a file like:

/<<<<<<<<<<<<<<<<<<
(make-network-process
   :name "--"
   :family 'local
   :buffer nil
   :service (expand-file-name file))
/>>>>>>>>>>>>>>>>>>>

With a M-x grep RET grep -nH -e expand FILE -B1 RET:

/<<<<<<<<<<<<<<<<<<
grep -nH -e expand /delete-daily/* -B1
/delete-daily/tst-4-   :buffer nil                          <= Here.
/delete-daily/tst:5:   :service (expand-file-name file))
/>>>>>>>>>>>>>>>>>>>

Maybe it's just too minor.

-- 
/!\ My mail address changed, please update your files accordingly.
 |      Michaël `Micha' Cadilhac   |  Un certain Blaise Pascal              |
 |         Epita/LRDE Promo 2007   |    etc... etc...                       |
 |  http://michael.cadilhac.name   |  -- Prévert (Les paris stupides)       |
 `--  -   JID: address@hidden --'                                   -  --'

Attachment: pgp1izhwfscyl.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]