auto-complete / popup-el

Visual Popup Interface Library for Emacs
GNU General Public License v3.0
446 stars 96 forks source link

x-popup-menu as alternative backend? #9

Closed tkf closed 12 years ago

tkf commented 12 years ago

Reading open issues, it seems most of the problems are from overlays from other modules and non-uniform text size (e.g., proportional font). I guess these problems are difficult to solve, probably impossible for the later case. Alternatively I think we can use x-popup-menu as the "backend" and then these problems won't show up with it. I am just raising the idea and wondering if there is somebody already tried.

For those who are curious, you can try x-popup-menu easily by:

(x-popup-menu
 t
 '("Title"
   ("Title 1" ("Item 1-1" . 11) ("Item 1-2" . 12))
   ("Title 2" ("Item 2-1" . 21) ("Item 2-2" . 22))))
m2ym commented 12 years ago

x-popup-menu is not so flexible to implement auto-complete...

The best way to solve these problems is to implement popup.el in C. Vim already has such the feature. Why our GNU Emacs doesn't have yet?

tkf commented 12 years ago

If Emacs C core supports popup.el, that's more than perfect. Probably the core can just provide very primitive basis? That would be something like "floating buffer" or "nested buffer", like inline frame in html, where you can put a buffer over a buffer. And then you can implement popup.el on top of that using lisp. That would help implementing multi-major mode such as MuMaMo. Anyway, I know nothing about Emacs C so just an idea...