senny / cabbage

get the maximum out of emacs
http://senny.github.com/cabbage/
156 stars 21 forks source link

Plone: inspect zope 3 component registry from within emacs. #170

Closed jone closed 11 years ago

jone commented 11 years ago

Adds some tools for inspecting a zope 3 component registry from within emacs.

Adds new bindings to ergonomic bundle when plone bundle is active:

Adds a new vendor json.

@senny maybe cabbage-plone--buttonize-buffer could be factored out to the cabbage library. It links paths with line numbers (e.g. /path/to/my/file.py:57). Could that be useful for other things?

senny commented 11 years ago

@jone regarding the line numbering, can't the same be achieved using something like grep mode?

jone commented 11 years ago

That was my initial intend too. But just activating the compilation mode grep-mode did not do the trick. It might be something in the compilation stuff doing the linking, but I could not find it.

Did you already do something like that or know how to enable it?

senny commented 11 years ago

@jone I can't remember exactly but I thought that the grep mode or it's parent mode handles all that jazz. I think you need to set the default-directory to match the root of your paths.

If you have a few minutes, you should browse through the source of grep and compilation mode. I'm pretty sure they can do the trick.

@fred-o do we have something similar in emacs-eclim?

jone commented 11 years ago

@senny I took a look at it but couldn't get anything working. It might be possible to create a compilation minor mode with appropriate regexps for parsing the paths, but I'm not sure whether this is the right way, since we are not running any commands at all in this case.

I'd need to dig into it a little more as soon as I have time. Since it is working well at the moment, could we just merge it as it is and add an issue that we (meaning I) will refactor it later?

fred-o commented 11 years ago

A bit late, but I don't think emacs-eclim does anything special, it just formats things the way grep-mode expects it and uses that.