Anyone with knowledge on how to have syntax-highlighting in the buffer used
when calling completing-read ?
It could be nice to have the correct colors while completing (it would be
easier to get an overivew of the completion possibilities)

With hope
 Max




""Max Rydahl Andersen"" <[EMAIL PROTECTED]> wrote in message
9quar7$776$[EMAIL PROTECTED]">news:9quar7$776$[EMAIL PROTECTED]...
> Well, I found that with a small addition to
> jde-complete-popup-completion-menu it could be easily customized :)
> So here is a new version of jde-complete-popup-completion-menu and a
boolean
> customization jde-complete-use-menu which makes it possible to either use
a
> "real"-menu or the more emacs-all-powerfull-completion-in-minibuffer
version
> that I wanted.
>
> Paul, you are free to add this to newer versions of JDE(E)...ps. how does
it
> go with the JDE "problem" ?
>
> ;; The following replaces the original function in jde-complete.el
> (defun jde-complete-popup-completion-menu (&optional title)
>   "Popup a completion menu for the object at point.
> The popup menu displays all of the possible completions for the object
> it was invoked on.  To automatically split large menus this function
> use `imenu--mouse-menu' to handle the popup menu."
>   (let (index-alist pair name)
>     (setq index-alist jde-complete-current-list)
>     (setq pair
>           (if (= (length index-alist) 1)
>               ;; if only one item match, return it
>               (car index-alist)
>             (if jde-complete-use-menu
>             ;; delegates menu handling to imenu :-)
>                 (imenu--mouse-menu index-alist
>                                    (jde-cursor-posn-as-event) ; Popup
window
> at text cursor
>                                    (or title "Completion"))
>           (assoc (completing-read (or title "Completion") index-alist)
> index-alist))
>     ))
>     (setq name (cdr pair))
>     (setq jde-complete-current-signature (car pair))
>     (jde-complete-insert-completion name)))
>
> (defcustom jde-complete-use-menu t
>   "*If non nil it will use a real menu in 'jde-complete-at-point-menu'
> otherwise it uses the mini-buffer for completion."
>   :group 'jde-project
>   :type 'boolean)
>
>
> ""Max Rydahl Andersen"" <[EMAIL PROTECTED]> wrote in message
> 9qu8q2$q41$[EMAIL PROTECTED]">news:9qu8q2$q41$[EMAIL PROTECTED]...
> > Hi!
> >
> > In JDE there is two modes of method-completion (that I have found) -
> either
> > via a real-menu (jde-complete-at-point-menu) or by cycling through the
> > possibilities via jde-complete-at-point.
> >
> > Is there not a method for using the standard completion buffers in emacs
?
> > Like a jde-complete-at-point-via-completion function ?
> >
> >
> > With hope
> >  Max
> >
>


Reply via email to