From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andrea Crotti Newsgroups: gmane.emacs.help Subject: Re: Auto complete not starting Date: Tue, 10 Aug 2010 00:05:09 +0200 Message-ID: References: <87ocdb1n4y.fsf@stats.ox.ac.uk> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1281391564 15361 80.91.229.12 (9 Aug 2010 22:06:04 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 9 Aug 2010 22:06:04 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Aug 10 00:06:03 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OiaTq-0001Vs-Nx for geh-help-gnu-emacs@m.gmane.org; Tue, 10 Aug 2010 00:06:03 +0200 Original-Received: from localhost ([127.0.0.1]:60159 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OiaTp-00081W-Dk for geh-help-gnu-emacs@m.gmane.org; Mon, 09 Aug 2010 18:06:01 -0400 Original-Received: from [140.186.70.92] (port=58501 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OiaTK-00081L-Dj for help-gnu-emacs@gnu.org; Mon, 09 Aug 2010 18:05:34 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OiaTF-0003Ev-Ti for help-gnu-emacs@gnu.org; Mon, 09 Aug 2010 18:05:30 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:34096) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OiaTF-0003EP-Go for help-gnu-emacs@gnu.org; Mon, 09 Aug 2010 18:05:25 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1OiaTB-0001Ae-P4 for help-gnu-emacs@gnu.org; Tue, 10 Aug 2010 00:05:21 +0200 Original-Received: from xdsl-89-0-7-95.netcologne.de ([89.0.7.95]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 10 Aug 2010 00:05:21 +0200 Original-Received: from andrea.crotti.0 by xdsl-89-0-7-95.netcologne.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 10 Aug 2010 00:05:21 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 31 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: xdsl-89-0-7-95.netcologne.de User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.2 (darwin) Cancel-Lock: sha1:Xs7jpy/cXaPPWpfhWM61qx1MmD8= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:74512 Archived-At: Dan Davison writes: > > Org extracts (tangles) a .el file from the org file, so you can > temporarily set this .el file as your ~/.emacs.el file and proceed as if > org had never been involved in your emacs config (e.g. proceed to use > bisection). > > Dan > Thanks God finally is fixed, it was the damn flyspell-prog-mode (which is pretty cool anyway). But the most funny part is that I was reading the code of auto-complete, and almost incidentally I evaluated the ac-flyspell-workaround function, and that's why it was working on this emacs instance. Fore the future here is how they both go together. --8<---------------cut here---------------start------------->8--- (defcustom to-spell-langs '(emacs-lisp-mode-hook python-mode-hook c-mode-hook nesc-mode-hook java-mode-hook jde-mode-hook haskell-mode-hook) "Set of programming modes for which I want to enable spelling in comments and strings" :type 'list) (dolist (lang-hook to-spell-langs) (add-hook lang-hook 'flyspell-prog-mode)) (require 'auto-complete) (ac-flyspell-workaround) --8<---------------cut here---------------end--------------->8---