From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jambunathan K Newsgroups: gmane.emacs.help Subject: Re: Emacs key bindings not working Date: Sat, 30 Apr 2011 19:35:22 +0530 Message-ID: <81iptvq1gd.fsf@gmail.com> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1304172361 23465 80.91.229.12 (30 Apr 2011 14:06:01 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 30 Apr 2011 14:06:01 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Apr 30 16:05:57 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 1QGAnz-0002dZ-Ez for geh-help-gnu-emacs@m.gmane.org; Sat, 30 Apr 2011 16:05:55 +0200 Original-Received: from localhost ([::1]:38973 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QGAny-0003Hm-TO for geh-help-gnu-emacs@m.gmane.org; Sat, 30 Apr 2011 10:05:54 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:45307) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QGAnq-0003De-0w for help-gnu-emacs@gnu.org; Sat, 30 Apr 2011 10:05:46 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QGAnn-0005n3-G5 for help-gnu-emacs@gnu.org; Sat, 30 Apr 2011 10:05:45 -0400 Original-Received: from mail-pz0-f41.google.com ([209.85.210.41]:36069) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QGAnn-0005my-91 for help-gnu-emacs@gnu.org; Sat, 30 Apr 2011 10:05:43 -0400 Original-Received: by pzk4 with SMTP id 4so3518092pzk.0 for ; Sat, 30 Apr 2011 07:05:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-type; bh=CEj1MA7mNw+vXj9PX1iEdclhCPBzepBEMMfcmbMIuvQ=; b=MI9Z0O/Hulk46Sdg+BckZyCBG5rTTk63nwLaSwYUm9l49aL27/B8+HYtqWhUN5yB3/ oaI7mEW84PC3uydBc92N9XH0jjrao4gc3nWivTvNrxCLAAfIT3u9FkSkooRKzza++6ov ppjO2fYpSY1MB6veibvGF8YOUnbdEo4sGzrPs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; b=SB7oodBqvvhYwWWHPoQZzCs+vfM/KXySdr1NOOJyLqmNZ96G8JfF/DpsCYgB/ObIBj VNXdQQ6SD1FHhc5IrWZjsTdTV+lev/T5qJFP45YfYqcvJ6Ao7qMH1P7XlmtwgREejLRh 0JLpp0hfC3n7lWNwAXEfwi/1Jx3eF1SkLHtgU= Original-Received: by 10.143.27.17 with SMTP id e17mr2181936wfj.297.1304172342575; Sat, 30 Apr 2011 07:05:42 -0700 (PDT) Original-Received: from JAMBU-NETBOOK ([115.242.194.249]) by mx.google.com with ESMTPS id p10sm4557428wfl.9.2011.04.30.07.05.38 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 30 Apr 2011 07:05:41 -0700 (PDT) In-Reply-To: (Ravi Balasubramanian's message of "Fri, 29 Apr 2011 20:37:39 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (windows-nt) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.210.41 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:80883 Archived-At: writes: > Hi all, > I recently installed the p4.el library for emacs integration with > perforce. It makes life so much easier working with p4 and > emacs. However, I have installed the library and have added the > following lines to my .emacs: > > (require 'p4) > (load-library "p4") > > > The library is loaded perfectly fine and all functions are working > perfectly fine through emacs when I do a M-x and then the function > name. However, when I try to use the Key bindings, emacs always > complain saying the command is not found. For eg, when I try to synch > the files using C-x p G or do any other key binding listed in the > project page, I get the error saying > > C-x p G is undefined Looks like p4.el doesn't want to hijack the key --8<---------------cut here---------------start------------->8--- (if (not (keymapp (lookup-key global-map "\C-xp"))) (define-key global-map "\C-xp" p4-prefix-map)) --8<---------------cut here---------------end--------------->8--- If you do a M-: (lookup-key global-map "\C-xp") RET what do you get? You can also do C-h b and search for C-x p. Or you can add the following line to your .emacs with 'p' replaced by what is not in the global-map. (define-key global-map "\C-xp" p4-prefix-map) Jambunathan K.