From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Riley Newsgroups: gmane.emacs.help Subject: Re: add-hook Date: Mon, 06 Jun 2011 01:33:27 +0200 Organization: aich tea tea pea dicky riley dot net Message-ID: References: <87pqmtbvk1.fsf@father.nostromo.wy> <87y61h4rfl.fsf@mithlond.arda> <87tyc5bg1q.fsf@father.nostromo.wy> <87d3isw1fl.fsf@father.nostromo.wy> <871uz7nca8.fsf@father.nostromo.wy> Reply-To: help-gnu-emacs@gnu.org NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1307316814 407 80.91.229.12 (5 Jun 2011 23:33:34 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 5 Jun 2011 23:33:34 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jun 06 01:33:27 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QTMow-00012x-Pe for geh-help-gnu-emacs@m.gmane.org; Mon, 06 Jun 2011 01:33:26 +0200 Original-Received: from localhost ([::1]:45919 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QTMov-0007Uq-TD for geh-help-gnu-emacs@m.gmane.org; Sun, 05 Jun 2011 19:33:26 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:50973) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QTMne-0007Uj-UZ for help-gnu-emacs@gnu.org; Sun, 05 Jun 2011 19:32:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QTMnd-0001mH-Pi for help-gnu-emacs@gnu.org; Sun, 05 Jun 2011 19:32:06 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:49872) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QTMnd-0001lB-Fu for help-gnu-emacs@gnu.org; Sun, 05 Jun 2011 19:32:05 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QTMnZ-0000kK-G6 for help-gnu-emacs@gnu.org; Mon, 06 Jun 2011 01:32:01 +0200 Original-Received: from 85.183.18.158 ([85.183.18.158]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 06 Jun 2011 01:32:01 +0200 Original-Received: from rileyrg by 85.183.18.158 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 06 Jun 2011 01:32:01 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: help-gnu-emacs@gnu.org Original-Lines: 80 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 85.183.18.158 Mail-Copies-To: never User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/23.2 (gnu/linux) Cancel-Lock: sha1:aB8gv5FlDoe8lzWxmBhNsHYzLyY= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 80.91.229.12 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:81300 Archived-At: dgiglio@iol.it (daniele.g) writes: > Richard Riley writes: > >> Dgiglio@iol.it (daniele.g) writes: >> >>> Richard Riley writes: >>> >>>> I think I mentioned it before, but auto-complete has an excellent >>>> completion mechanism which you can share/use across all modes for >>>> consistency and you can easily set the completion sources to use the >>>> semantic completion candidates in addition to the more common sources >>>> like dabbrev. >>> >>> Yes, you did. But it seems it doesn't work as it promises. It seems it >>> autompletes symbols only in a per session way (every time I start >>> editing a new file it resets all the simbols previously gathered), >>> and, >> >> What gathered symbols does semantic maintain? > > The ones I had written in the current session. > >>> What it's worst, its scope is limited on the open buffer, it doesn't >>> look for in included headers. >>> >>> But maybe it's only my emacs that is misconfigured. >> >> I suspect it is. >> >> As I said, it can use the semantic back end completion sets. > > Have you an .emacs file to show me. > Thanks sure. I stopped using semantic as I found it tripping over too often (in parsing files, not in completion candidates). But I'm using javascript and php and last I heard it doesnt really work with either.And I dont know what a "bovine thingy" is ;) ... So here's related completion stuff - it probably could be cleaned up. from my .emacs equivalent: (add-to-list 'load-path "~/.emacs.d/auto-complete") (require 'auto-complete) (require 'auto-complete-config) (ac-config-default) (add-to-list 'ac-dictionary-directories "~/.emacs.d/auto-complete/dict") (setq-default ac-sources '( ac-source-abbrev ac-source-gtags ac-source-dictionary ac-source-words-in-all-buffer ac-source-words-in-buffer ) ) (global-auto-complete-mode t) and in my custom.el '(ac-auto-show-menu 0.1) '(ac-auto-start 5) '(ac-candidate-limit 10) '(ac-dictionary-files (quote ("~/.dict" "/etc/dictionaries-common/words"))) '(ac-menu-height 20) '(ac-modes (quote (emacs-lisp-mode lisp-interaction-mode c-mode cc-mode c++-mode java-mode malabar-mode clojure-mode scala-mode scheme-mode ocaml-mode tuareg-mode haskell-mode perl-mode cperl-mode python-mode ruby-mode ecmascript-mode javascript-mode js-mode js2-mode php-mode css-mode makefile-mode sh-mode fortran-mode f90-mode ada-mode xml-mode sgml-mode jde-mode org-mode jde-mode latex-mode ledger-mode mail-mode message-mode text-mode))) '(ac-use-fuzzy nil) '(ac-user-dictionary-files (quote ("~/.dict" "/etc/dictionaries-common/words"))) I have only good things to say about auto-complete and its support. regards r.