From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Paulo J. Matos" Newsgroups: gmane.emacs.help Subject: Re: Adding Key bindings Date: Fri, 21 Jul 2006 01:40:50 +0100 Message-ID: <11b141710607201740t1fda2df6k22dc05813b508016@mail.gmail.com> References: <11b141710607200551j5d93c422yce9c8d5dba5d5530@mail.gmail.com> Reply-To: pocm@sat.inesc-id.pt NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1153442488 29347 80.91.229.2 (21 Jul 2006 00:41:28 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 21 Jul 2006 00:41:28 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jul 21 02:41:22 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1G3j4q-00075K-BI for geh-help-gnu-emacs@m.gmane.org; Fri, 21 Jul 2006 02:41:13 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G3j4p-0005jW-RI for geh-help-gnu-emacs@m.gmane.org; Thu, 20 Jul 2006 20:41:11 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1G3j4X-0005gY-60 for help-gnu-emacs@gnu.org; Thu, 20 Jul 2006 20:40:53 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1G3j4V-0005fr-F5 for help-gnu-emacs@gnu.org; Thu, 20 Jul 2006 20:40:52 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G3j4V-0005fn-Bc for help-gnu-emacs@gnu.org; Thu, 20 Jul 2006 20:40:51 -0400 Original-Received: from [64.233.182.186] (helo=nf-out-0910.google.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1G3j4n-0005kt-Se for help-gnu-emacs@gnu.org; Thu, 20 Jul 2006 20:41:10 -0400 Original-Received: by nf-out-0910.google.com with SMTP id n28so10592nfc for ; Thu, 20 Jul 2006 17:40:50 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=TW/mfv4BeaWegw8sIbREjnOFkRqPslyZAo3XXaDHl6tirlPvZqD2obQ4KXNd6VOskvulrVntjq3p00knHI4NZO8zOrQ+94rE30N/1mHZlmCEfgpKiOi3wneBNgZwjgRaaGbklrd+uatk7+sN/puRhP7pP5Ryzm7akMnCdXfklKE= Original-Received: by 10.78.165.16 with SMTP id n16mr16958hue; Thu, 20 Jul 2006 17:40:50 -0700 (PDT) Original-Received: by 10.78.119.7 with HTTP; Thu, 20 Jul 2006 17:40:50 -0700 (PDT) Original-To: help-gnu-emacs@gnu.org In-Reply-To: <11b141710607200551j5d93c422yce9c8d5dba5d5530@mail.gmail.com> Content-Disposition: inline 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:36136 Archived-At: On 20/07/06, Paulo J. Matos wrote: > Hi all, > > In C++ user mode, TAB key indents the current line, but I would also > like it to auto-complete if possible the current symbol. I would like > it to call: semantic-ia-complete-symbol > Hi all, I did: (add-hook 'c++-mode-hook '(lambda () (define-key c++-mode-map "\011" 'semantic-ia-complete-symbol))) However, this rebinds TAB to semantic-ia-complete-symbol and it will not indent anymore. I don't want previous actions to disappear, I want to add semantic-ia-complete-symbol action to the TAB key. How can I mend this? Cheers, -- Paulo Jorge Matos - pocm at sat inesc-id pt Web: http://sat.inesc-id.pt/~pocm Computer and Software Engineering INESC-ID - SAT Group