From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Florian Lindner Newsgroups: gmane.emacs.help Subject: Setting ac-sources Date: Mon, 16 Feb 2015 10:35:29 +0100 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7Bit X-Trace: ger.gmane.org 1424079370 23386 80.91.229.3 (16 Feb 2015 09:36:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 16 Feb 2015 09:36:10 +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 Feb 16 10:36:03 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YNI5y-00017A-I3 for geh-help-gnu-emacs@m.gmane.org; Mon, 16 Feb 2015 10:36:02 +0100 Original-Received: from localhost ([::1]:38375 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YNI5x-0004wp-UI for geh-help-gnu-emacs@m.gmane.org; Mon, 16 Feb 2015 04:36:01 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58468) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YNI5j-0004mK-BQ for help-gnu-emacs@gnu.org; Mon, 16 Feb 2015 04:35:48 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YNI5f-00049Z-QZ for help-gnu-emacs@gnu.org; Mon, 16 Feb 2015 04:35:47 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:45711) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YNI5f-00049F-ED for help-gnu-emacs@gnu.org; Mon, 16 Feb 2015 04:35:43 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1YNI5d-0000uy-42 for help-gnu-emacs@gnu.org; Mon, 16 Feb 2015 10:35:41 +0100 Original-Received: from lapsgs09.informatik.uni-stuttgart.de ([129.69.213.139]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 16 Feb 2015 10:35:41 +0100 Original-Received: from mailinglists by lapsgs09.informatik.uni-stuttgart.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 16 Feb 2015 10:35:41 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 20 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: lapsgs09.informatik.uni-stuttgart.de User-Agent: KNode/4.14.5 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 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:102743 Archived-At: Hello, I set my ac-sources of auto-complete like that (add-hook 'c-mode-common-hook (lambda() (setq ac-sources '(ac-source-semantic ac-source-yasnippet)))) Now I open a cpp file and look at the variable ac-sources which has the value: (ac-source-yasnippet ac-source-gtags ac-source-semantic ac-source-yasnippet) Why not just (ac-source-semantic ac-source-yasnippet)? It seems the setq appended instead of setting the list? I'm a elisp newbie and hope for an explanation. Thanks, Florian