unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: "Mike Garcia" <mike_g@binarywave.com>
Subject: Wanting to add drop down menus to a major mode
Date: Tue, 16 Apr 2002 10:16:37 -0600	[thread overview]
Message-ID: <002b01c1e562$161e8860$d902a00a@mgarcia2k> (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 --]

                 reply	other threads:[~2002-04-16 16:16 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='002b01c1e562$161e8860$d902a00a@mgarcia2k' \
    --to=mike_g@binarywave.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).