<div dir="ltr"><div>ops, forget the link:<br><a href="http://pastebin.com/uQkErV46">http://pastebin.com/uQkErV46</a><br><br></div>Cheers,<br><br></div><div class="gmail_extra"><br><div class="gmail_quote">2016-01-14 14:28 GMT-02:00 Daniel. <span dir="ltr">&lt;<a href="mailto:danielhilst@gmail.com" target="_blank">danielhilst@gmail.com</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>clang is used only for parsing, nothing to do with compilation :)<br><br></div>Here it is :)<br></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">2016-01-14 13:35 GMT-02:00 Geyslan G. Bem <span dir="ltr">&lt;<a href="mailto:geyslan@gmail.com" target="_blank">geyslan@gmail.com</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span>2016-01-14 12:23 GMT-03:00 Daniel. &lt;<a href="mailto:danielhilst@gmail.com" target="_blank">danielhilst@gmail.com</a>&gt;:<br>
&gt; I&#39;ve tried using semantic mode but it gives me &quot;&quot;#&lt;buffer jiffies.h&gt; -<br>
&gt; Arithmetic error&quot;*&quot; all the time. I&#39;ve also tried a ctags aproach, but it is<br>
&gt; quite slow on big projects, then I tried irony-mode which uses clang to<br>
&gt; parse sources.<br>
</span>Hmmm. I&#39;m having this issue too using gtags.<br>
<span><br>
&gt;<br>
&gt; I never used autocompletion before but I&#39;m having to deal with a code that<br>
&gt; came from a microcontroller and<br>
&gt; Have.Crasy.StrucsNamed.Like.This.With.ALot.Of.Useless.Members.Inside, so I<br>
&gt; got lines wrapping twice and lots of useless members, I never could remember<br>
&gt; the members names and the definition is less readable than the use so I<br>
&gt; really needed autocompletion to navigate<br>
&gt; that mess. Clang parsing seems fast to me, I&#39;ve tried to avoid it but, well,<br>
&gt; it worked fine...<br>
<br>
</span>Nice. Could you share your .el? So the clang is used only for compile<br>
warnings? If yes it may differ from gcc that is what kernel uses. Let<br>
me know more. :-)<br>
<br>
I&#39;m using gtags following these recipes:<br>
<a href="http://tuhdo.github.io/c-ide.html" rel="noreferrer" target="_blank">http://tuhdo.github.io/c-ide.html</a><br>
<div><div><br>
&gt;<br>
&gt; Regards,<br>
&gt;<br>
&gt; 2016-01-14 12:26 GMT-02:00 Geyslan G. Bem &lt;<a href="mailto:geyslan@gmail.com" target="_blank">geyslan@gmail.com</a>&gt;:<br>
&gt;&gt;<br>
&gt;&gt; 2016-01-14 10:06 GMT-03:00 Daniel. &lt;<a href="mailto:danielhilst@gmail.com" target="_blank">danielhilst@gmail.com</a>&gt;:<br>
&gt;&gt; &gt; Thanks for the tip, I&#39;ve past the last month trying vim again, but I&#39;ll<br>
&gt;&gt; &gt; keep<br>
&gt;&gt; &gt; with emacs anyway. I have so much code writen in elisp and my firgers<br>
&gt;&gt; &gt; are<br>
&gt;&gt; &gt; adicted to Ctrl keystrokes, so ... I could achieve autocomplete with<br>
&gt;&gt; &gt; company<br>
&gt;&gt; &gt; + irony + clang.<br>
&gt;&gt;<br>
&gt;&gt; Why clang?<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Best regards,<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; 2016-01-13 22:37 GMT-02:00 Geyslan G. Bem &lt;<a href="mailto:geyslan@gmail.com" target="_blank">geyslan@gmail.com</a>&gt;:<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; 2016-01-13 21:23 GMT-03:00 Ismael Luceno &lt;<a href="mailto:ismael.luceno@gmail.com" target="_blank">ismael.luceno@gmail.com</a>&gt;:<br>
&gt;&gt; &gt;&gt; &gt; On Thu, Dec 24, 2015 at 11:57:32AM -0200, Daniel. wrote:<br>
&gt;&gt; &gt;&gt; &gt;&gt; I had heard about emacs server, but never tried it.. This should fix<br>
&gt;&gt; &gt;&gt; &gt;&gt; the<br>
&gt;&gt; &gt;&gt; &gt;&gt; starting time, but not the learning curve :)<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt; You can wrap emacsclient to automatically start emacs --daemon with a<br>
&gt;&gt; &gt;&gt; &gt; script like this:<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt;     #!/bin/sh<br>
&gt;&gt; &gt;&gt; &gt;     exec emacsclient -a &#39;&#39; -c &quot;$@&quot;<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt; You may also want to pre-compile your elisp files.<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; Themes may not load correctly when using emacs as daemon. But you can<br>
&gt;&gt; &gt;&gt; fix (tweak) it with<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; ;; theme<br>
&gt;&gt; &gt;&gt; (defvar my:theme &#39;distinguished)<br>
&gt;&gt; &gt;&gt; (defvar my:theme-window-loaded nil)<br>
&gt;&gt; &gt;&gt; (defvar my:theme-terminal-loaded nil)<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; (if (daemonp)<br>
&gt;&gt; &gt;&gt;     (add-hook &#39;after-make-frame-functions(lambda (frame)<br>
&gt;&gt; &gt;&gt;                        (select-frame frame)<br>
&gt;&gt; &gt;&gt;                        (if (window-system frame)<br>
&gt;&gt; &gt;&gt;                            (unless my:theme-window-loaded<br>
&gt;&gt; &gt;&gt;                          (if my:theme-terminal-loaded<br>
&gt;&gt; &gt;&gt;                              (enable-theme my:theme)<br>
&gt;&gt; &gt;&gt;                            (load-theme my:theme t))<br>
&gt;&gt; &gt;&gt;                          (setq my:theme-window-loaded t))<br>
&gt;&gt; &gt;&gt;                          (unless my:theme-terminal-loaded<br>
&gt;&gt; &gt;&gt;                            (if my:theme-window-loaded<br>
&gt;&gt; &gt;&gt;                            (enable-theme my:theme)<br>
&gt;&gt; &gt;&gt;                          (load-theme my:theme t))<br>
&gt;&gt; &gt;&gt;                            (setq my:theme-terminal-loaded t)))))<br>
&gt;&gt; &gt;&gt;   (progn<br>
&gt;&gt; &gt;&gt;     (load-theme my:theme t)<br>
&gt;&gt; &gt;&gt;     (if (display-graphic-p)<br>
&gt;&gt; &gt;&gt;     (setq my:theme-window-loaded t)<br>
&gt;&gt; &gt;&gt;       (setq my:theme-terminal-loaded t))))<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt; _______________________________________________<br>
&gt;&gt; &gt;&gt; &gt; Kernelnewbies mailing list<br>
&gt;&gt; &gt;&gt; &gt; <a href="mailto:Kernelnewbies@kernelnewbies.org" target="_blank">Kernelnewbies@kernelnewbies.org</a><br>
&gt;&gt; &gt;&gt; &gt; <a href="http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies" rel="noreferrer" target="_blank">http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies</a><br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; --<br>
&gt;&gt; &gt;&gt; Regards,<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; Geyslan G. Bem<br>
&gt;&gt; &gt;&gt; <a href="http://hackingbits.com" rel="noreferrer" target="_blank">hackingbits.com</a><br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; --<br>
&gt;&gt; &gt; &quot;Do or do not. There is no try&quot;<br>
&gt;&gt; &gt;   Yoda Master<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; --<br>
&gt;&gt; Regards,<br>
&gt;&gt;<br>
&gt;&gt; Geyslan G. Bem<br>
&gt;&gt; <a href="http://hackingbits.com" rel="noreferrer" target="_blank">hackingbits.com</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; &quot;Do or do not. There is no try&quot;<br>
&gt;   Yoda Master<br>
<br>
<br>
<br>
--<br>
Regards,<br>
<br>
Geyslan G. Bem<br>
<a href="http://hackingbits.com" rel="noreferrer" target="_blank">hackingbits.com</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><div><div style="text-align:right"><i>&quot;Do or do not. There is no try&quot;</i><br><i>  </i><i><b>Yoda Master</b></i><br></div></div>
</div>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature"><div style="text-align:right"><i>&quot;Do or do not. There is no try&quot;</i><br><i>  </i><i><b>Yoda Master</b></i><br></div></div>
</div>