From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Mike Garcia" Newsgroups: gmane.emacs.help Subject: Wanting to add drop down menus to a major mode Date: Tue, 16 Apr 2002 10:16:37 -0600 Organization: BinaryWave Sender: help-gnu-emacs-admin@gnu.org Message-ID: <002b01c1e562$161e8860$d902a00a@mgarcia2k> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0028_01C1E52F.CB06D210" X-Trace: main.gmane.org 1018973935 5269 127.0.0.1 (16 Apr 2002 16:18:55 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 16 Apr 2002 16:18:55 +0000 (UTC) Return-path: Original-Received: from fencepost.gnu.org ([199.232.76.164]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 16xVfS-0001Me-00 for ; Tue, 16 Apr 2002 18:18:54 +0200 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 16xVep-0005lt-00; Tue, 16 Apr 2002 12:18:15 -0400 Original-Received: from webmail.iccx.net ([166.93.205.11] helo=cgpro.iccx.net) by fencepost.gnu.org with smtp (Exim 3.34 #1 (Debian)) id 16xVdI-0005Sm-00 for ; Tue, 16 Apr 2002 12:16:40 -0400 Original-Received: from [64.236.239.245] (HELO mgarcia2k) by cgpro.iccx.net (CommuniGate Pro SMTP 3.4.6) with SMTP id 161861415 for help-gnu-emacs@gnu.org; Tue, 16 Apr 2002 10:18:37 -0600 Original-To: X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Errors-To: help-gnu-emacs-admin@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.0.9 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.help:97 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:97 This is a multi-part message in MIME format. ------=_NextPart_000_0028_01C1E52F.CB06D210 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable 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. =20 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. =20 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 =3D MyClass() ----- the mode will have to know that = aKlass is an instance of MyClass and therefore can call all its methods. = =20 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. =20 Sincerely, Fellow emacsian, Mike Garcia ------=_NextPart_000_0028_01C1E52F.CB06D210 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hello,
 
Emacs is my favorite IDE and I use it = all the=20 time.  I'd like to extend it some and was wondering if I could = get=20 some ideas on what it would take to add drop down menus to the = Python-mode (and=20 other modes that I work in too) in order to create auto-completion of = callable=20 objects.  I'm no IDE expert but I think this would be really handy = for me=20 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=20 to be displayed with the potential callable objects from which I could = select=20 one. 
 
I gather that this will require the = buffer to know=20 what callables are available for a particular class.  I think this = means=20 that for example in Python-mode, Emacs (on importing of a particular = Python=20 module) could scan a module for all the classes and functions = available for=20 those classes and retain collections of these callables.  I'm not = sure how=20 I could get Emacs to know that a certain 'symbol' equated to a = particular class=20 but, the mode would have to be able to do that.  For = example:
 
    aKlass =3D=20 MyClass()    -----  the mode will have to know that = aKlass=20 is an instance of MyClass and therefore can call all its methods. =20
 
 
If anyone knows whether this has been = done please=20 let me know before I embark down the path.  Any advice you have = regarding=20 this will be much appreciated. 
 
Sincerely,
Fellow emacsian,
Mike Garcia
------=_NextPart_000_0028_01C1E52F.CB06D210--