kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
From: geyslan@gmail.com (Geyslan G. Bem)
To: kernelnewbies@lists.kernelnewbies.org
Subject: Developing environments used for kernel development
Date: Thu, 14 Jan 2016 12:35:01 -0300	[thread overview]
Message-ID: <CAGG-pURFMd3BvGQKv7br+4odGA87wFTM73oEaxGHj-GwXLCn5Q@mail.gmail.com> (raw)
In-Reply-To: <CAF3SDA7J6Qt1XGn4PYUD_9jyoaUggyikDgEwXm0LN=6+r0CoAQ@mail.gmail.com>

2016-01-14 12:23 GMT-03:00 Daniel. <danielhilst@gmail.com>:
> I've tried using semantic mode but it gives me ""#<buffer jiffies.h> -
> Arithmetic error"*" all the time. I've also tried a ctags aproach, but it is
> quite slow on big projects, then I tried irony-mode which uses clang to
> parse sources.
Hmmm. I'm having this issue too using gtags.

>
> I never used autocompletion before but I'm having to deal with a code that
> came from a microcontroller and
> Have.Crasy.StrucsNamed.Like.This.With.ALot.Of.Useless.Members.Inside, so I
> got lines wrapping twice and lots of useless members, I never could remember
> the members names and the definition is less readable than the use so I
> really needed autocompletion to navigate
> that mess. Clang parsing seems fast to me, I've tried to avoid it but, well,
> it worked fine...

Nice. Could you share your .el? So the clang is used only for compile
warnings? If yes it may differ from gcc that is what kernel uses. Let
me know more. :-)

I'm using gtags following these recipes:
http://tuhdo.github.io/c-ide.html

>
> Regards,
>
> 2016-01-14 12:26 GMT-02:00 Geyslan G. Bem <geyslan@gmail.com>:
>>
>> 2016-01-14 10:06 GMT-03:00 Daniel. <danielhilst@gmail.com>:
>> > Thanks for the tip, I've past the last month trying vim again, but I'll
>> > keep
>> > with emacs anyway. I have so much code writen in elisp and my firgers
>> > are
>> > adicted to Ctrl keystrokes, so ... I could achieve autocomplete with
>> > company
>> > + irony + clang.
>>
>> Why clang?
>> >
>> > Best regards,
>> >
>> > 2016-01-13 22:37 GMT-02:00 Geyslan G. Bem <geyslan@gmail.com>:
>> >>
>> >> 2016-01-13 21:23 GMT-03:00 Ismael Luceno <ismael.luceno@gmail.com>:
>> >> > On Thu, Dec 24, 2015 at 11:57:32AM -0200, Daniel. wrote:
>> >> >> I had heard about emacs server, but never tried it.. This should fix
>> >> >> the
>> >> >> starting time, but not the learning curve :)
>> >> >
>> >> > You can wrap emacsclient to automatically start emacs --daemon with a
>> >> > script like this:
>> >> >
>> >> >     #!/bin/sh
>> >> >     exec emacsclient -a '' -c "$@"
>> >> >
>> >> > You may also want to pre-compile your elisp files.
>> >>
>> >> Themes may not load correctly when using emacs as daemon. But you can
>> >> fix (tweak) it with
>> >>
>> >> ;; theme
>> >> (defvar my:theme 'distinguished)
>> >> (defvar my:theme-window-loaded nil)
>> >> (defvar my:theme-terminal-loaded nil)
>> >>
>> >> (if (daemonp)
>> >>     (add-hook 'after-make-frame-functions(lambda (frame)
>> >>                        (select-frame frame)
>> >>                        (if (window-system frame)
>> >>                            (unless my:theme-window-loaded
>> >>                          (if my:theme-terminal-loaded
>> >>                              (enable-theme my:theme)
>> >>                            (load-theme my:theme t))
>> >>                          (setq my:theme-window-loaded t))
>> >>                          (unless my:theme-terminal-loaded
>> >>                            (if my:theme-window-loaded
>> >>                            (enable-theme my:theme)
>> >>                          (load-theme my:theme t))
>> >>                            (setq my:theme-terminal-loaded t)))))
>> >>   (progn
>> >>     (load-theme my:theme t)
>> >>     (if (display-graphic-p)
>> >>     (setq my:theme-window-loaded t)
>> >>       (setq my:theme-terminal-loaded t))))
>> >>
>> >> > _______________________________________________
>> >> > Kernelnewbies mailing list
>> >> > Kernelnewbies at kernelnewbies.org
>> >> > http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>> >>
>> >>
>> >>
>> >> --
>> >> Regards,
>> >>
>> >> Geyslan G. Bem
>> >> hackingbits.com
>> >
>> >
>> >
>> >
>> > --
>> > "Do or do not. There is no try"
>> >   Yoda Master
>>
>>
>>
>> --
>> Regards,
>>
>> Geyslan G. Bem
>> hackingbits.com
>
>
>
>
> --
> "Do or do not. There is no try"
>   Yoda Master



-- 
Regards,

Geyslan G. Bem
hackingbits.com

  reply	other threads:[~2016-01-14 15:35 UTC|newest]

Thread overview: 40+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-22 19:27 Developing environments used for kernel development Daniel.
     [not found] ` <CAJX_Q+2AOXLM=XWsSYzUbpG=MKH+p2D1Xf2k7xGFrQdn=_zPTQ@mail.gmail.com>
2015-12-22 21:26   ` Daniel.
2015-12-22 21:43     ` Lucas Tanure
2015-12-22 22:41       ` Daniel.
2015-12-22 22:15     ` Clemens Gruber
2015-12-23  0:06       ` Daniel.
2015-12-24 11:59         ` Andrey Skvortsov
2015-12-24 13:57           ` Daniel.
2016-01-14  0:23             ` Ismael Luceno
2016-01-14  0:37               ` Geyslan G. Bem
2016-01-14 13:06                 ` Daniel.
2016-01-14 13:53                   ` Geyslan G. Bem
2016-01-14 14:26                   ` Geyslan G. Bem
2016-01-14 15:23                     ` Daniel.
2016-01-14 15:35                       ` Geyslan G. Bem [this message]
2016-01-14 16:28                         ` Daniel.
2016-01-14 16:28                           ` Daniel.
2016-01-14 16:36                             ` Geyslan G. Bem
2016-01-14 16:52                             ` Daniel.
2016-01-14 16:58                               ` Geyslan G. Bem
2015-12-24 15:41           ` Ruben Safir
2015-12-24 17:33             ` Daniel.
2015-12-24 18:43             ` Valdis.Kletnieks at vt.edu
2015-12-24 20:13               ` Manuel Pégourié-Gonnard
2015-12-25  0:29               ` Ruben Safir
2015-12-25  0:52                 ` Valdis.Kletnieks at vt.edu
2015-12-25  1:42                   ` Ruben Safir
     [not found] ` <4E5779AD88B2F040B8A7E83ECF544D1A64AC5F@SJCPEX01CL03.citrite.net>
2015-12-23  1:18   ` Daniel.
2015-12-23 13:30     ` Daniel.
2015-12-23 14:45       ` amit mehta
2015-12-23 17:20         ` Daniel.
2016-01-14 19:19     ` Geyslan G. Bem
2016-01-14 20:08       ` Daniel.
2015-12-25 17:14 ` Raymond Jennings
2015-12-28 12:28   ` Daniel.
2015-12-28 12:57     ` Manuel Pégourié-Gonnard
2015-12-28 14:05       ` Fernando Apesteguía
2015-12-28 19:11         ` Daniel.
2015-12-29  5:10           ` Daniel.
2015-12-29  9:50             ` Manuel Pégourié-Gonnard

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

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

  git send-email \
    --in-reply-to=CAGG-pURFMd3BvGQKv7br+4odGA87wFTM73oEaxGHj-GwXLCn5Q@mail.gmail.com \
    --to=geyslan@gmail.com \
    --cc=kernelnewbies@lists.kernelnewbies.org \
    /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 NNTP newsgroup(s).