Thread: [CEDET-devel] semantic-complete-jump-local fails to complete
Brought to you by:
zappo
From: Stephen B. <Ste...@gm...> - 2007-03-27 14:27:26
|
I do this: 1. emacs -Q 2. M-: (load-file "/<path to>/cedet/common/cedet.el") 3. M-: (semantic-load-enable-code-helpers) 4. C-x C-f /<path to>/emacs/lisp/calendar/calendar.el 5. C-c , j and at the prompt type `calendar' and the RET. You get the message "" I'm using CVS Cedet from 2007-03-25 on GNU Emacs 22.0.96.5 (i686-pc-linux-gnu, GTK+ Version 2.10.6) of 2007-03-27 on escher |
From: Stephen B. <Ste...@gm...> - 2007-03-27 14:37:39
|
(I accidentally sent an incomplete message, sorry. Here's the full one.) Do this: 1. emacs -Q 2. M-: (load-file "/<path to>/cedet/common/cedet.el") 3. M-: (semantic-load-enable-code-helpers) 4. C-x C-f /<path to>/emacs/lisp/calendar/calendar.el 5. C-c , j and at the prompt type `calendar' and the RET. You get the message "[Not Unique]", although `calendar' occurs as a defun in this file (and if found e.g. by imenu). If you type TAB you get completion candidates for "calendar-" but cannot just complete to `calendar'. I have found this problem only with this word in this file. In the same file, if instead `calendar' you type `diary' at the prompt, you correctly get "[Complete]", as well as completion candidates for "diary-" with TAB. I'm using CVS Cedet from 2007-03-25 on GNU Emacs 22.0.96.5 (i686-pc-linux-gnu, GTK+ Version 2.10.6) of 2007-03-27. Steve Berman |
From: Stephen B. <Ste...@gm...> - 2007-04-27 22:11:37
|
On Tue, 27 Mar 2007 16:36:35 +0200 Stephen Berman <Ste...@gm...> wrote: > Do this: > 1. emacs -Q > 2. M-: (load-file "/<path to>/cedet/common/cedet.el") > 3. M-: (semantic-load-enable-code-helpers) > 4. C-x C-f /<path to>/emacs/lisp/calendar/calendar.el > 5. C-c , j and at the prompt type `calendar' and the RET. You get the > message "[Not Unique]", although `calendar' occurs as a defun in this > file (and if found e.g. by imenu). If you type TAB you get completion > candidates for "calendar-" but cannot just complete to `calendar'. > > I have found this problem only with this word in this file. In the > same file, if instead `calendar' you type `diary' at the prompt, you > correctly get "[Complete]", as well as completion candidates for > "diary-" with TAB. I have done some testing and conclude that the above problem is due to calendar.el containing both (defun calendar ...) and (provide 'calendar). In general, if file X.el contains either more than one (def* X), where def* can be defun, defvar, defcustom, defface, and perhaps others -- but defgroup and defalias do not count --, or one (def* X) and a (provide 'X), then semantic-complete-jump-local will signal "[Not Unique]" and start cycling through all definitions that begin with X, i.e., also all X-* definitions. I guess this isn't really a bug after all, but it is a great inconvenience in the case of libraries like calendar, which contain dozens of calendar-* definitions. It would be nice if semantic-complete-jump-local could in such cases cycle through just the X definitions, ignoring X-*. Steve Berman |
From: Eric M. L. <er...@si...> - 2007-05-01 18:07:44
|
Hi, I have checked some changes to semantic-complete.el into CVS which will hopefully solve this problem. Consider the new implementation to have some experimental usability enhancements. ;) Now, for this case, if you keep pressing TAB or SPC, it will focus (highlight) the exact matches. Once you make it through the cycle, it will expand the list of completions to all the other items with matching prefix. As before, if you just type stuff in, it will start completing past that too. For the "not unique" problem, the focus feature will now kick in as it should have before, and allow you to select from multiple items with the same name. Please give it a try and let me know how it goes. Thanks! Eric >>> Stephen Berman <Ste...@gm...> seems to think that: >On Tue, 27 Mar 2007 16:36:35 +0200 Stephen Berman <Ste...@gm...> wrote: > >> Do this: >> 1. emacs -Q >> 2. M-: (load-file "/<path to>/cedet/common/cedet.el") >> 3. M-: (semantic-load-enable-code-helpers) >> 4. C-x C-f /<path to>/emacs/lisp/calendar/calendar.el >> 5. C-c , j and at the prompt type `calendar' and the RET. You get the >> message "[Not Unique]", although `calendar' occurs as a defun in this >> file (and if found e.g. by imenu). If you type TAB you get completion >> candidates for "calendar-" but cannot just complete to `calendar'. >> >> I have found this problem only with this word in this file. In the >> same file, if instead `calendar' you type `diary' at the prompt, you >> correctly get "[Complete]", as well as completion candidates for >> "diary-" with TAB. > >I have done some testing and conclude that the above problem is due to >calendar.el containing both (defun calendar ...) and (provide >'calendar). In general, if file X.el contains either more than one >(def* X), where def* can be defun, defvar, defcustom, defface, and >perhaps others -- but defgroup and defalias do not count --, or one >(def* X) and a (provide 'X), then semantic-complete-jump-local will >signal "[Not Unique]" and start cycling through all definitions that >begin with X, i.e., also all X-* definitions. I guess this isn't >really a bug after all, but it is a great inconvenience in the case of >libraries like calendar, which contain dozens of calendar-* >definitions. It would be nice if semantic-complete-jump-local could >in such cases cycle through just the X definitions, ignoring X-*. > >Steve Berman > > >------------------------------------------------------------------------- >This SF.net email is sponsored by DB2 Express >Download DB2 Express C - the FREE version of DB2 express and take >control of your XML. No limits. Just data. Click to get it now. >http://sourceforge.net/powerbar/db2/ >_______________________________________________ >Cedet-devel mailing list >Ced...@li... >https://lists.sourceforge.net/lists/listinfo/cedet-devel > -- Eric Ludlam: za...@gn..., er...@si... Home: http://www.ludlam.net Siege: www.siege-engine.com Emacs: http://cedet.sourceforge.net GNU: www.gnu.org |
From: Stephen B. <Ste...@gm...> - 2007-05-02 12:37:01
|
On Tue, 1 May 2007 14:07:33 -0400 "Eric M. Ludlam" <er...@si...> wrote: > Hi, > > I have checked some changes to semantic-complete.el into CVS which > will hopefully solve this problem. Consider the new implementation to > have some experimental usability enhancements. ;) > > Now, for this case, if you keep pressing TAB or SPC, it will focus > (highlight) the exact matches. Once you make it through the cycle, it > will expand the list of completions to all the other items with > matching prefix. > > As before, if you just type stuff in, it will start completing past > that too. > > For the "not unique" problem, the focus feature will now kick in as > it should have before, and allow you to select from multiple items > with the same name. > > Please give it a try and let me know how it goes. It works like a charm; many thanks! Steve Berman |