all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Autocomplete for Objective-C
@ 2014-02-09  0:59 Germán Arias
  2014-02-10 14:51 ` Doug Lewan
  2014-02-16 16:27 ` Dmitry Gutov
  0 siblings, 2 replies; 7+ messages in thread
From: Germán Arias @ 2014-02-09  0:59 UTC (permalink / raw)
  To: help-gnu-emacs

Hi,

Is there available autocomplete for Objective-C, using GCC? If not, is there an example about how do this? I know that etags allows you create tables. But not sure how this works.

Regards.
Germán.




^ permalink raw reply	[flat|nested] 7+ messages in thread

* RE: Autocomplete for Objective-C
  2014-02-09  0:59 Autocomplete for Objective-C Germán Arias
@ 2014-02-10 14:51 ` Doug Lewan
  2014-02-11 16:11   ` David Engster
  2014-02-16 16:27 ` Dmitry Gutov
  1 sibling, 1 reply; 7+ messages in thread
From: Doug Lewan @ 2014-02-10 14:51 UTC (permalink / raw)
  To: germanandre@gmx.es, help-gnu-emacs@gnu.org

Germán,

You might consider looking at CEDET/EDE/Semantic. I'm hardly an expert, but it has some very good tools for different languages.

WRT tags: Tags let you jump to a symbol's definition (and back again). It's very useful, but doesn't address your explicit question. To use etags with Objective C, I would go to the root of your source tree and type:
    $ etags $(find . -type f -name '*.m')
M-. will ask you for a tag (or use the symbol at point if you want). The first time you use it, it will ask you for a TAGS table. Just give it the root directory of your source tree.

,Douglas
Douglas Lewan
Shubert Ticketing
(201) 489-8600 ext 224

Of course, shells have one feature that no other language has: subshells.


> -----Original Message-----
> From: help-gnu-emacs-bounces+dougl=shubertticketing.com@gnu.org
> [mailto:help-gnu-emacs-bounces+dougl=shubertticketing.com@gnu.org] On
> Behalf Of Germán Arias
> Sent: Saturday, 2014 February 08 20:00
> To: help-gnu-emacs@gnu.org
> Subject: Autocomplete for Objective-C
> 
> Hi,
> 
> Is there available autocomplete for Objective-C, using GCC? If not, is
> there an example about how do this? I know that etags allows you create
> tables. But not sure how this works.
> 
> Regards.
> Germán.
> 




^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Autocomplete for Objective-C
  2014-02-10 14:51 ` Doug Lewan
@ 2014-02-11 16:11   ` David Engster
  2014-02-12  7:41     ` Germán Arias
  0 siblings, 1 reply; 7+ messages in thread
From: David Engster @ 2014-02-11 16:11 UTC (permalink / raw)
  To: help-gnu-emacs

Doug Lewan writes:
> You might consider looking at CEDET/EDE/Semantic. I'm hardly an
> expert, but it has some very good tools for different languages.

CEDET does not support Obj-C.

-David




^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Autocomplete for Objective-C
  2014-02-11 16:11   ` David Engster
@ 2014-02-12  7:41     ` Germán Arias
  2014-02-12 15:52       ` Doug Lewan
  0 siblings, 1 reply; 7+ messages in thread
From: Germán Arias @ 2014-02-12  7:41 UTC (permalink / raw)
  To: help-gnu-emacs

On 2014-02-11 10:11:32 -0600 David Engster <deng@randomsample.de> wrote:

> Doug Lewan writes:
>> You might consider looking at CEDET/EDE/Semantic. I'm hardly an
>> expert, but it has some very good tools for different languages.
> 
> CEDET does not support Obj-C.
> 
> -David
> 

Yes, I noticed this today. But, can I use a table to do basic completion? Or I need write some semantic rules?

Germán.




^ permalink raw reply	[flat|nested] 7+ messages in thread

* RE: Autocomplete for Objective-C
  2014-02-12  7:41     ` Germán Arias
@ 2014-02-12 15:52       ` Doug Lewan
  2014-02-16  5:58         ` Germán Arias
  0 siblings, 1 reply; 7+ messages in thread
From: Doug Lewan @ 2014-02-12 15:52 UTC (permalink / raw)
  To: germanandre@gmx.es, help-gnu-emacs@gnu.org

If you use tags, then M-/ (dabbrev-expand) may just do what you want without anything new.

I don't know if the etags that is delivered with emacs supports Objective C, but Exuberant Ctags (http://ctags.sourceforge.net/) is very flexible. While it does not claim to support Objective C, it can be extended for new languages via regular expressions. I use something like the following to get support for a somewhat obscure language called Passport:

etags --langdef=pl --regex-pl="/procedure[[:blank:]]+([_[:alnum:]]+)/\1/" --language-force=pl

,Douglas
Douglas Lewan
Shubert Ticketing
(201) 489-8600 ext 224

Of course, shells have one feature that no other language has: subshells.


> -----Original Message-----
> From: help-gnu-emacs-bounces+dougl=shubertticketing.com@gnu.org
> [mailto:help-gnu-emacs-bounces+dougl=shubertticketing.com@gnu.org] On
> Behalf Of Germán Arias
> Sent: Wednesday, 2014 February 12 02:42
> To: help-gnu-emacs@gnu.org
> Subject: Re: Autocomplete for Objective-C
> 
> On 2014-02-11 10:11:32 -0600 David Engster <deng@randomsample.de>
> wrote:
> 
> > Doug Lewan writes:
> >> You might consider looking at CEDET/EDE/Semantic. I'm hardly an
> >> expert, but it has some very good tools for different languages.
> >
> > CEDET does not support Obj-C.
> >
> > -David
> >
> 
> Yes, I noticed this today. But, can I use a table to do basic
> completion? Or I need write some semantic rules?
> 
> Germán.
> 




^ permalink raw reply	[flat|nested] 7+ messages in thread

* RE: Autocomplete for Objective-C
  2014-02-12 15:52       ` Doug Lewan
@ 2014-02-16  5:58         ` Germán Arias
  0 siblings, 0 replies; 7+ messages in thread
From: Germán Arias @ 2014-02-16  5:58 UTC (permalink / raw)
  To: help-gnu-emacs

On 2014-02-12 09:52:40 -0600 Doug Lewan <dougl@shubertticketing.com> wrote:

> If you use tags, then M-/ (dabbrev-expand) may just do what you want without 
> anything new.
> 
> I don't know if the etags that is delivered with emacs supports Objective C, 
> but Exuberant Ctags (http://ctags.sourceforge.net/) is very flexible. While 
> it does not claim to support Objective C, it can be extended for new 
> languages via regular expressions. I use something like the following to get 
> support for a somewhat obscure language called Passport:
> 
> etags --langdef=pl --regex-pl="/procedure[[:blank:]]+([_[:alnum:]]+)/\1/" 
> --language-force=pl
> 
> ,Douglas
> Douglas Lewan

Thanks, took me some time understand the syntax of regex. But I achieved it, now I need refine my regexp.

Germán.




^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Autocomplete for Objective-C
  2014-02-09  0:59 Autocomplete for Objective-C Germán Arias
  2014-02-10 14:51 ` Doug Lewan
@ 2014-02-16 16:27 ` Dmitry Gutov
  1 sibling, 0 replies; 7+ messages in thread
From: Dmitry Gutov @ 2014-02-16 16:27 UTC (permalink / raw)
  To: Germán Arias; +Cc: help-gnu-emacs

Germán Arias <germanandre@gmx.es> writes:

> Is there available autocomplete for Objective-C, using GCC?

If you don't mind using Clang for completion, you can try Company:

http://company-mode.github.io/

The bundled company-clang backend supports Objective-C.



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2014-02-16 16:27 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-09  0:59 Autocomplete for Objective-C Germán Arias
2014-02-10 14:51 ` Doug Lewan
2014-02-11 16:11   ` David Engster
2014-02-12  7:41     ` Germán Arias
2014-02-12 15:52       ` Doug Lewan
2014-02-16  5:58         ` Germán Arias
2014-02-16 16:27 ` Dmitry Gutov

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.