From mboxrd@z Thu Jan 1 00:00:00 1970 From: "numbchild@gmail.com" Subject: Re: make slim auto-complete work in Org-mode (delete some ac-source in Org-mode). Date: Thu, 7 Aug 2014 16:52:58 +0800 Message-ID: References: <87r413edu0.fsf@gmail.com> <867g2n2j2p.fsf@somewhere.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7b8739a8f3b72005000638f9 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:32911) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XFJRz-00010u-JU for emacs-orgmode@gnu.org; Thu, 07 Aug 2014 04:53:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XFJRy-0000yk-5u for emacs-orgmode@gnu.org; Thu, 07 Aug 2014 04:53:31 -0400 Received: from mail-wi0-x235.google.com ([2a00:1450:400c:c05::235]:49186) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XFJRx-0000xs-P6 for emacs-orgmode@gnu.org; Thu, 07 Aug 2014 04:53:30 -0400 Received: by mail-wi0-f181.google.com with SMTP id bs8so4550683wib.8 for ; Thu, 07 Aug 2014 01:53:28 -0700 (PDT) In-Reply-To: <867g2n2j2p.fsf@somewhere.org> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Sebastien Vauban Cc: Org-mode --047d7b8739a8f3b72005000638f9 Content-Type: text/plain; charset=UTF-8 I test those ac-source one by one manually. And also I have extension org-ac. Then they are more heavy. And I open many big org files usually. So I found they are heavy. [stardiviner] GPG key ID: 47C32433 IRC(freeenode): stardiviner Twitter: @numbchild Key fingerprint = 9BAA 92BC CDDD B9EF 3B36 CB99 B8C4 B8E5 47C3 2433 Blog: http://nagatopain-blog.logdown.com/ On Tue, Aug 5, 2014 at 8:54 PM, Sebastien Vauban wrote: > stardiviner wrote: > > I setup default =ac-sources= for auto-complete like this: > > > > #+BEGIN_SRC emacs-lisp > > (setq-default ac-sources > > '(ac-source-yasnippet > > ac-source-abbrev > > ac-source-filename > > ac-source-files-in-current-dir > > ac-source-dictionary > > ac-source-words-in-same-mode-buffers > > )) > > #+END_SRC > > > > And I found =ac-source-dictionary= and > =ac-source-words-in-same-mode-buffers= is > > heavy for Org-mode, So I try to remove them only in Org-mode. > > Do you have some evidence of this? Profiling with/without? It'd be > interesting. > > Other point: I'm surprised you don't have the source > `ac-source-words-in-buffer' (maybe instead of > `ac-source-words-in-same-mode-buffers')... > > Best regards, > Seb > > -- > Sebastien Vauban > > > --047d7b8739a8f3b72005000638f9 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
I test those ac-source one by one manually.
And also I = have extension org-ac. Then they are more heavy.
And I open many big org= files usually. So I found they are heavy.

[stardiviner]=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 <Hack this world!>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 GPG key ID: 47C3= 2433
IRC(freeenode): stardiviner =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= Twitter:=C2=A0 @numbchild
Key fingerprint =3D 9BAA 92BC CDDD B9EF 3B36=C2=A0 CB99 B8C4 B8E5 47C3 2433=
Blog: http://nagatopain-blog.logdown.com/


On Tue, Aug 5, 2014 at 8:54 PM, Sebastie= n Vauban <sva-news@mygooglest.com> wrote:
stardiviner wrote:
> I setup default =3Dac-sources=3D for auto-complete like this:
>
> #+BEGIN_SRC emacs-lisp
> (setq-default ac-sources
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 '(ac-source-yasni= ppet
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ac-source-abbr= ev
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ac-source-file= name
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ac-source-file= s-in-current-dir
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ac-source-dict= ionary
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ac-source-word= s-in-same-mode-buffers
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ))
> #+END_SRC
>
> And I found =3Dac-source-dictionary=3D and =3Dac-source-words-in-same-= mode-buffers=3D is
> heavy for Org-mode, So I try to remove them only in Org-mode.

Do you have some evidence of this? =C2=A0Profiling with/without? =C2= =A0It'd be
interesting.

Other point: I'm surprised you don't have the source
`ac-source-words-in-buffer' (maybe instead of
`ac-source-words-in-same-mode-buffers')...

Best regards,
=C2=A0 Seb

--
Sebastien Vauban



--047d7b8739a8f3b72005000638f9--