Hi Eric,
I checked-in a new version of senator.el with the following
improvements to the search functions:
- I replaced the functions `senator-search-forward-raw' and
`senator-search-backward-raw' by an unique enhanced function
`senator-search'. That increases readability and will simplify
maintenance ;-)
- That new function can use the new `senator-search-tag-filter'
option to limit search to certain tags.
- There is a new command `senator-search-set-tag-class-filter' which
allows to limit search scope in current buffer to entered tag
classes. For example:
M-x senator-search-set-tag-class-filter RET variable RET
Limit search (and incremental search) to tags of class variable.
M-x senator-search-set-tag-class-filter RET variable function RET
Limit search (and incremental search) to tags of class variable or
function.
M-x senator-search-set-tag-class-filter RET RET
Restore the default behavior defined by `senator-search-tag-filter'.
That command has a new shortcut key "C-c , f".
- The non-incremental repeat search commands automatically remember if
the last search was for a string or a regexp (like in development
version of Emacs 21). So, there is no more need for specialized
non-incremental repeat search command for string and regexp.
- The senator search sub menu is updated.
I also removed the autoload cookie that installs wisent-c (that needs
a lot of more work) as the default C parser.
Following is the change log.
Enjoy!
David
2003-08-17 David Ponce <david@...>
* semantic/senator.el
(senator-find-nonterminal-by-name)
(senator-find-nonterminal-by-name-regexp): Remove "." at end of
error message.
(senator-search-tag-filter): New option.
(senator-search-forward-raw)
(senator-search-backward-raw): Remove. Replace by...
(senator-search): New function.
(senator-re-search-forward, senator-re-search-backward)
(senator-word-search-forward, senator-word-search-backward)
(senator-search-forward, senator-search-backward): Use it.
(senator-last-search-type): New variable.
(senator-nonincremental-repeat-search-forward)
(senator-nonincremental-repeat-search-backward): Use it.
(senator-nonincremental-search-forward)
(senator-nonincremental-search-backward)
(senator-nonincremental-re-search-forward)
(senator-nonincremental-re-search-backward): Set it.
(senator-nonincremental-repeat-re-search-forward)
(senator-nonincremental-repeat-re-search-backward): Remove.
(senator-search-set-tag-class-filter): New command.
(senator-prefix-map): Add keyboard shortcut for it.
(senator-menu-bar): Update search sub menu.
* semantic/wisent/wisent-c.el
(c-mode-hook): Remove autoload cookie.
|