all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Wanting to add drop down menus to a major mode
@ 2002-04-16 16:16 Mike Garcia
  0 siblings, 0 replies; only message in thread
From: Mike Garcia @ 2002-04-16 16:16 UTC (permalink / raw)


[-- Attachment #1: Type: text/plain, Size: 1435 bytes --]

Hello,

Emacs is my favorite IDE and I use it all the time.  I'd like to extend it some and was wondering if I could get some ideas on what it would take to add drop down menus to the Python-mode (and other modes that I work in too) in order to create auto-completion of callable objects.  I'm no IDE expert but I think this would be really handy for me and probably others too.  

Essentially if I was to type --

  some_instance.some_func()

when I type the '.' (period) I'd like a popup menu to be displayed with the potential callable objects from which I could select one.  

I gather that this will require the buffer to know what callables are available for a particular class.  I think this means that for example in Python-mode, Emacs (on importing of a particular Python module) could scan a module for all the classes and functions available for those classes and retain collections of these callables.  I'm not sure how I could get Emacs to know that a certain 'symbol' equated to a particular class but, the mode would have to be able to do that.  For example:

    aKlass = MyClass()    -----  the mode will have to know that aKlass is an instance of MyClass and therefore can call all its methods.  


If anyone knows whether this has been done please let me know before I embark down the path.  Any advice you have regarding this will be much appreciated.  

Sincerely,
Fellow emacsian,
Mike Garcia

[-- Attachment #2: Type: text/html, Size: 2734 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-04-16 16:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-04-16 16:16 Wanting to add drop down menus to a major mode Mike Garcia

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.