| Newsgroups |
gmane.emacs.code-browser |
| Message-ID |
<[email protected]> |
Hi,
Thanks for reporting this bug!
But the bug was not in ecb-methfods-filter-regexp but in ecb-methods-filter-internal... All other commands ecb-methods-filter-* failed too...
So please use the old version of ecb-methods-filter-regexp without your fix and use this:
(defun ecb-methods-filter-internal (inverse &optional filter-type)
"FILTER-TYPE has to be one of the symbols 'regexp, 'protection,
'tag-class, 'curr-type, 'function, 'no-filter or 'delete-last."
(if (save-excursion
(set-buffer ecb-methods-buffer-name)
(tree-buffer-empty-p))
(message "There is nothing to filter in an empty Methods-buffer!")
(let* ((source-buffer (ecb-get-source-buffer-for-tag-filter))
(semantic-source-p (save-excursion
(set-buffer source-buffer)
(ecb--semantic-active-p)))
(choice (or filter-type
(intern (ecb-query-string
(format "Apply %sfilter:"
(if inverse "inverse " ""))
(delq nil (list "regexp"
(if semantic-source-p "protection")
(if semantic-source-p "tag-class")
(if semantic-source-p "curr-type")
"function" "no-filter" "delete-last"))))
'no-filter-specified)))
(case choice
(protection
(ecb-methods-filter-by-prot inverse source-buffer))
(tag-class
(ecb-methods-filter-by-tag-class inverse source-buffer))
(regexp
(ecb-methods-filter-by-regexp inverse source-buffer))
(curr-type
(ecb-methods-filter-by-current-type inverse source-buffer))
(function
(ecb-methods-filter-by-function inverse source-buffer))
(delete-last
(ecb-methods-filter-apply nil nil nil "" "" source-buffer t))
(no-filter
(ecb-methods-filter-apply nil nil nil "" "" source-buffer))
(otherwise
(ecb-methods-filter-apply nil nil nil "" "" source-buffer))))))
I have checked in the fixed code and it will be contained in the next release, which is near the finish-line...
Klaus
-----Ursprüngliche Nachricht-----
Von: [email protected] [mailto:[email protected]]
Gesendet: Dienstag, 14. April 2009 04:07
An: [email protected]
Betreff: [ECB-list] one little bug
Hi.
I think :
ecb-method-browser.el (2197)
(defun ecb-methods-filter-regexp (&optional inverse)
"Filter the methods-buffer by a regexp. If INVERSE is not nil \(called with a prefix arg) then an inverse filter is applied. For further details see `ecb-methods-filter'."
(interactive "P")
(ecb-methods-filter-internal inverse 'regexp))
should be:
(defun ecb-methods-filter-regexp (&optional inverse)
"Filter the methods-buffer by a regexp. If INVERSE is not nil \(called with a prefix arg) then an inverse filter is applied. For further details see `ecb-methods-filter'."
(interactive "P")
(ecb-methods-filter-internal inverse "regexp"))
--
cj.fu(fu chunjun)
MIS
2005
[email protected]
------------------------------------------------------------------------------
Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today.
Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________
Ecb-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ecb-list
------------------------------------------------------------------------------
Stay on top of everything new and different, both inside and
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today.
Use priority code J9JMT32. http://p.sf.net/sfu/p