Permalink
Browse files

New option `ecb-tree-mouse-action-trigger'.

Fixed some internal docstrings.
  • Loading branch information...
1 parent 44f98e0 commit ff1cf6c351fe9e6a502c5bd0365b903e8124f913 berndl committed Jul 15, 2004
Showing with 698 additions and 81 deletions.
  1. +25 −9 NEWS
  2. +9 −0 README
  3. +10 −0 TODO
  4. +10 −2 ecb-file-browser.el
  5. +11 −2 ecb-help.el
  6. +11 −1 ecb-method-browser.el
  7. +2 −6 ecb-util.el
  8. +3 −3 ecb-winman-support.el
  9. +498 −41 ecb.el
  10. +45 −2 ecb.texi
  11. +74 −15 tree-buffer.el
View
@@ -8,8 +8,23 @@
`ecb-show-sources-in-directories-buffer') Thanks to Rob Walker
<rob.lists@tenfoot.org.uk> for tracking down the performance bottleneck and
supplying a first patch.
-
+** Per default all mouse-actions in the special ECB-buffers are now triggered
+ first after releasing the mouse-button and not when pressed as with
+ previous ECB-versions. This is the standard behavior of Emacs and of most
+ applications. But with the new option `ecb-tree-mouse-action-trigger' a
+ user can switch back to the old behavior.
+
+ As a side effect now the ECB-tree-buffers can be used during an active
+ isearch - at least with GNU Emacs. Thanks to Markus Gritsch
+ <gritsch@iue.tuwien.ac.at> for pointing to this problem.
+
+** Fixed bugs
+
+*** Now the command `ecb-expand-methods-nodes' and all the expand-* menu-entries
+ in the popup-menu of the methods-buffer work for non-semantic-buffers too.
+
+
* Changes for ECB version 2.25
@@ -508,17 +523,18 @@
*** Changes to the image-icons of the tree-buffers
-**** Alle image-files have been renamed from <IMAGENAME>.xpm to
+**** All image-files have been renamed from <IMAGENAME>.xpm to
ecb-<IMAGENAME>.xpm. This was necessary because the icons for "open" and
"close" in Emacs toolbar got superseeded by ECB's icons for "open" and
"close". The problem was, that ECB was using the same names for the icon
files "open.xpm" and "close.xpm" as emacs toolbar does. This problem
- occurs if the image-directory of ECB is contained in the `load-path' which
- is when ECB is installed in the site-lisp directory of Emacs with the
- default subdirs.el of Emacs which adds automatically all subdirectories to
- the load-path (and therefore also subdirectories which does not contain
- elisp-files but only images - btw: not really smart;-). Thanks for
- pointing out that to Roland Schaeuble <roland.schaeuble@siemens.com>.
+ occurs if the image-directory of ECB is contained in the `load-path'
+ which is when ECB is installed in the site-lisp directory of Emacs with
+ the default subdirs.el of Emacs which adds automatically all
+ subdirectories to the load-path (and therefore also subdirectories which
+ does not contain elisp-files but only images - btw: not really smart;-).
+ Thanks to Roland Schaeuble <roland.schaeuble@siemens.com> for pointing
+ out that.
**** Added all image-icons in a 10-point height.
Thanks to Nick Cross <nick@goots.org> for sizing down the images.
@@ -568,7 +584,7 @@
visibility-state of the ecb-windows or the compile-window. Called without a
prefix-arg this command now preserves the state of the ecb-windows as well
as the state of the compile-window. Called with TWO prefix-args means an
- emergence-redraw (see documentation of `ecb-redraw-layout').
+ emergency-redraw (see documentation of `ecb-redraw-layout').
** New command `ecb-display-news-for-upgrade'.
ECB autom. displays after an upgrade a short summary of the most important
View
@@ -192,3 +192,12 @@ Send comments, bug reports and improvement suggestions to:
ecb-list@lists.sourceforge.net
+*IMPORTANT*: Cause of extra appearance of SPAM in the mailing-lists,
+SourceForge has changed its policy: Now it is only possible to post to the
+mailing-list for users who have subscribed this mailing-list.
+
+So please be aware you will not be able to send comments, bug reports and
+improvement suggestions before you have subscribed the ECB-mailing-list. See
+the section "Mailing-list" at the ECB-website at http://ecb.sourceforge.net
+how to do this.
+
View
@@ -1,3 +1,13 @@
+- Distinction of include-tags by "" or <>. This can be done via
+ (semantic-tag-include-system-p TAG). Thanks to Markus grietsch.
+
+- Displaying the version-control-state of a file concerning (for this we can
+ probably steal 90% of the needed code from speedbar). Probably we should
+ display this with a appropriate suffix (or a image)
+
+- Displaying the read-only-state of a file (probably by using a different
+ face)
+
- (BUG) if a buffer is opened from within an archive (zip or tar) then
clicking onto a method in this buffer tries to jump somewhere in the archive
(tar or zip) buffer (Klaus)
View
@@ -23,7 +23,7 @@
;; GNU Emacs; see the file COPYING. If not, write to the Free Software
;; Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-;; $Id: ecb-file-browser.el,v 1.23 2004/07/02 05:49:19 berndl Exp $
+;; $Id: ecb-file-browser.el,v 1.24 2004/07/15 15:26:28 berndl Exp $
;;; Commentary:
@@ -738,6 +738,11 @@ key-bindings only for the history-buffer of ECB."
(defun ecb-expand-directory-tree (path node)
+ "Expands the directory part so the node representing PATH is visible.
+Start with the childrens of NODE. Return not nil when an expansion has been
+done \(so normally the tree-buffer must be rebuild). Return nil if the
+expansion-state of the tree can show without any further expansion the node
+representing PATH."
(catch 'exit
(dolist (child (tree-node-get-children node))
(let ((data (tree-node-get-data child)))
@@ -1194,7 +1199,7 @@ then nothing is done unless first optional argument FORCE is not nil."
(tree-node-is-expanded start)))
;; expand the best-match node itself
(tree-node-set-expanded start t)
- ;; This functions ensures a correct expandable-state of
+ ;; This function ensures a correct expandable-state of
;; start-node
(ecb-update-directory-node start))
;; start recursive expanding of either the best-matching node or
@@ -2279,6 +2284,7 @@ So you get a better overlooking. There are three choices:
(tree-buffer-create
ecb-directories-buffer-name
ecb-frame
+ ecb-tree-mouse-action-trigger
'ecb-interpret-mouse-click
'ecb-tree-buffer-node-select-callback
'ecb-tree-buffer-node-expand-callback
@@ -2327,6 +2333,7 @@ So you get a better overlooking. There are three choices:
(tree-buffer-create
ecb-sources-buffer-name
ecb-frame
+ ecb-tree-mouse-action-trigger
'ecb-interpret-mouse-click
'ecb-tree-buffer-node-select-callback
'ecb-tree-buffer-node-expand-callback
@@ -2368,6 +2375,7 @@ So you get a better overlooking. There are three choices:
(tree-buffer-create
ecb-history-buffer-name
ecb-frame
+ ecb-tree-mouse-action-trigger
'ecb-interpret-mouse-click
'ecb-tree-buffer-node-select-callback
'ecb-tree-buffer-node-expand-callback
View
@@ -26,7 +26,7 @@
;; GNU Emacs; see the file COPYING. If not, write to the Free Software
;; Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-;; $Id: ecb-help.el,v 1.105 2004/05/06 09:02:07 berndl Exp $
+;; $Id: ecb-help.el,v 1.106 2004/07/15 15:26:27 berndl Exp $
;;; Commentary:
;;
@@ -227,7 +227,16 @@ This command generates in the edit-window a problem-report which contains
already the current values of all ECB options, the current backtrace-buffer if
there is any and the current message-buffer. You will be asked for a
problem-report subject and then you must insert a description of the problem.
-Please describe the problem as detailed as possible!"
+Please describe the problem as detailed as possible!
+
+*IMPORTANT*: Cause of extra appearance of SPAM in the mailing-lists,
+SourceForge has changed its policy: Now it is only possible to post to the
+mailing-list for users who have subscribed this mailing-list. So please be
+aware you will not be able to send comments, bug reports and improvement
+suggestions before you have subscribed the ECB-mailing-list. See the section
+\"Mailing-list\" at the ECB-website at http://ecb.sourceforge.net how to do
+this."
+
(interactive)
(when (or ecb-minor-mode
(y-or-n-p "ECB should be active when submitting a problem-report. Force report? "))
View
@@ -24,7 +24,7 @@
;; GNU Emacs; see the file COPYING. If not, write to the Free Software
;; Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-;; $Id: ecb-method-browser.el,v 1.44 2004/06/14 11:02:18 berndl Exp $
+;; $Id: ecb-method-browser.el,v 1.45 2004/07/15 15:26:27 berndl Exp $
;;; Commentary:
@@ -3133,6 +3133,15 @@ Note: All this is only valid for file-types parsed by semantic. For other file
types which are parsed by imenu or etags \(see
`ecb-process-non-semantic-files') FORCE-ALL is always true!"
(save-selected-window
+ ;; for buffers which are not parsed by semantic we always set force-all to
+ ;; t! We "misuse" (ecb-methods-get-data-store
+ ;; 'semantic-symbol->name-assoc-list) to decide if a buffer is parsed by
+ ;; semantic or not because only semantic-parsed buffers can have a value
+ ;; not nil!
+ (setq force-all
+ (if (not (ecb-methods-get-data-store 'semantic-symbol->name-assoc-list))
+ t
+ force-all))
(ecb-exec-in-methods-window
(let ( ;; normalizing the elements of `ecb-methods-nodes-expand-spec'
;; and `ecb-methods-nodes-collapse-spec'.
@@ -3868,6 +3877,7 @@ pattern.")
(tree-buffer-create
ecb-methods-buffer-name
ecb-frame
+ ecb-tree-mouse-action-trigger
'ecb-interpret-mouse-click
'ecb-tree-buffer-node-select-callback
'ecb-tree-buffer-node-expand-callback
View
@@ -26,7 +26,7 @@
;; GNU Emacs; see the file COPYING. If not, write to the Free Software
;; Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-;; $Id: ecb-util.el,v 1.107 2004/05/06 09:02:04 berndl Exp $
+;; $Id: ecb-util.el,v 1.108 2004/07/15 15:26:27 berndl Exp $
;;; Commentary:
;;
@@ -297,10 +297,6 @@ If string STR1 is greater, the value is a positive number N;
(t)))
)))
-;; TODO: Klaus Berndl <klaus.berndl@sdm.de>: Jetzt neue optionen für die
-;; Sortierung von Sourcen und History-Eibnträgen, ob case-sensitive oder
-;; nicht. dann im Code anstelle ecb-string< bzw. ecb-string= mit dem Wert der
-;; neuen option als drittem Argument aufrufen.
(defsubst ecb-string= (str1 str2 &optional ignore-case)
(let ((s1 (or (and (stringp str1) str1) (symbol-name str1)))
(s2 (or (and (stringp str2) str2) (symbol-name str2))))
@@ -715,7 +711,7 @@ height is that fraction of the frame."
(error "Window is not alive!")))
;; stolen from query.el and slightly enhanced
-;; This for a small number of choices each of them a short string
+;; This is for a small number of choices each of them a short string
(defun ecb-query-string (prompt choices &optional other-prompt)
"Prints PROMPT and returns a string which must be one of CHOICES.
CHOICES is either a list of strings whereas the first choice is the default
@@ -21,7 +21,7 @@
;; GNU Emacs; see the file COPYING. If not, write to the Free Software
;; Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-;; $Id: ecb-winman-support.el,v 1.11 2004/05/06 09:02:04 berndl Exp $
+;; $Id: ecb-winman-support.el,v 1.12 2004/07/15 15:26:27 berndl Exp $
;;; Commentary
;;
@@ -149,7 +149,7 @@ escreen.el!"
(ecb-enable-advices ecb-winman-escreen-adviced-functions)
(add-hook 'escreen-goto-screen-hook
'ecb-winman-escreen-goto-escreen-hook)
- (message "ECB %s: support for escreen enabled." ecb-version))
+ (ecb-info-message "Support for escreen enabled."))
(error
(ecb-winman-escreen-disable-support)
(ecb-error "The escreen-support can not be properly installed!")))
@@ -209,7 +209,7 @@ winring.el!"
(progn
(require 'winring)
(ecb-enable-advices ecb-winman-winring-adviced-functions)
- (message "ECB %s: support for winring enabled." ecb-version))
+ (ecb-info-message "Support for winring enabled."))
(error
(ecb-winman-winring-disable-support)
(ecb-error "The winring-support can not be properly installed!")))
Oops, something went wrong. Retry.

0 comments on commit ff1cf6c

Please sign in to comment.