07 October, 2006

OO Browser in XEmacs

Use OOBR(OO-Browser)

OORB shows class structures etc., when you make a program with the language which has classes like C++.

After you execute M-x oobr, you should answer the following questions. The directory under which source (header) files are, the directory under which library header files are, and the path of files such as OOBR, OOBR-FTR. The emacs window is divided after OOBR file is made. Frankly speaking, I am not familiar with OOBR yet. But I think you can use it with the following commands.

  • v : Show the definition of class.
  • e : Edit class.
  • m : Search class with the regular expression.
  • c : Show the list of child classes.
  • p : Show the list of parent classes.
  • t : Show the list of top classes.

narrowing

  1. Select the function
  2. Do narrowing.(C-x n n)
  3. Return to the top.(C-x C-x)

Then, you can see only this function. By typing C-x n w, you reset the state.

using emacs tags

etags source.cc
  • M-. [symbol-name] : Jump to the definition of the symbol.
  • C-x 4 . [symbol-name] : Show the definition of the symbol on another window.
  • M-, : Show the next matching.
  • M-? [symbol-name] : Show the declaration of the symbol on the mini-buffer.

04 October, 2006

Secondary Mark in Emacs

(global-set-key [(control shift down-mouse-1)] 'mouse-drag-secondary)

01 October, 2006