git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] git.el: Add a git-grep command

From
David Kågedal <davidk@lysator.liu.se>
Date
Feb 22, 2008, 10:44 UTC
Message-ID
<87ir0h9soh.fsf@lysator.liu.se>
In-Reply-To
<200802221121.35706.jnareb@gmail.com>
Jakub Narebski <jnareb@gmail.com> writes:
Show 24 quoted lines
> On Fri, 22 Feb 2008, David Kågedal wrote:
>> Jakub Narebski <jnareb@gmail.com> writes:
>>> David Kågedal <davidk@lysator.liu.se> writes:
>>>
>>>> This works for me, but before including it someone else should try
>>>> it. It might only work in Emacs 22, for instance.
>>>
>>> emacs -batch -f batch-byte-compile git.el
>>> [...]
>>> While compiling toplevel forms in file git/contrib/emacs/git.el:
>>>   !! File error (("Cannot open load file" "grep"))
>>> Done
>>> make: *** [git.elc] Error 1
>>>
>>> 1078:[emacs@git/contrib/emacs]# emacs --version
>>> GNU Emacs 21.4.1
>> 
>> As I suspected. The problem is that the grep commands were rewritten
>> for Emacs 22, and lots of it can be reused. So to write a similar
>> command for Emacs 21 probably requires a bit more work. And since I
>> use Emacs 22 I'm not sure I will feel motivated enough...
>
> Could you make it at least conditional on the Emacs version used,
> or even better depending on the fact if "grep" 'library' is available?
Sure. We could e.g. put it in its own file, git-grep.el.
> I'd like to be able to use git.el with my Emacs, even without some
> functionality. TIA.
Absolutely, I hope this doesn't get included until this is resolved. 
-- 
David Kågedal
Previous: Jakub NarebskiNext: Remi Vanicat
Message 11 of 17 in “git.el: Add a git-grep command”
  1. git.el: Add a git-grep commandDavid Kågedal, Feb 19, 2008
  2. Remi VanicatFeb 21, 2008
  3. David KågedalFeb 21, 2008
  4. Xavier MaillardFeb 22, 2008
  5. Karl HasselströmFeb 22, 2008
  6. David KågedalFeb 22, 2008
  7. Karl HasselströmFeb 22, 2008
  8. Jakub NarebskiFeb 22, 2008
  9. David KågedalFeb 22, 2008
  10. Jakub NarebskiFeb 22, 2008
  11. David KågedalFeb 22, 2008
  12. Remi VanicatFeb 22, 2008
  13. David KågedalFeb 22, 2008
  14. Xavier MaillardFeb 23, 2008
  15. Remi VanicatFeb 23, 2008
  16. Xavier MaillardFeb 23, 2008
  17. Xavier MaillardFeb 24, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.