[Conkeror] Emacs hacks

Helmut Eller e9626484 at stud3.tuwien.ac.at
Tue Nov 9 19:33:42 EST 2004


Ahoy,

I've made a couple of improvements to the Emacs support.  Get the
files from[*].  The new stuff is:

C-c C-e and C-c c-r commands the evaluate the current region and line.
When called with a prefix argument the result is now inserted in the
current buffer

M-. should now also find methods.  Well, at least sometimes.

I added a debugger interface.  So when Emacs is connected to Mozilla
and a error occurs while evaluating a request, a debugger buffer pops
up in Emacs.  The debugger can be used to poke around in the backtrace
and to find the source location of the frame/error.  The keybindings in
the debugger are:
  
  v  shows the source line of the current frame
  t  shows the local variables in the current frame
  i  inspect a local variable
  q  quits the debugger.

The debugger is usually invoked on errors, e.g. when calling an
undefined function.  It can also be started explicitly with the
'debugger' keyword.  Use C-c C-b t to enable debugging on every throw.

The other new feature is a simple object inspector, bound to C-c C-d.
It displays the slots of objects.  You can then hit RET to inspect the
slot and so on.  The bindings in the inspector are:

  RET  inspect the current slot
  l    go back to the last object
  n    go forward to the next object
  a    apply the function in the current slot. Arguments can be
       supplied when invoked with a prefix argument.
  
Now that I have a half decent Emacs interface it's time to write some
real browser stuff :-)

Helmut.

[*] http://stud3.tuwien.ac.at/~e9626484/emacsslave.tgz


More information about the Conkeror mailing list