From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Matthew Calhoun Newsgroups: gmane.emacs.help Subject: Re: C-j is not doing as it is being told Date: Mon, 8 Mar 2004 10:37:29 -0800 Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: <200403060636.i266aWUl012312@mac.com> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 (Apple Message framework v612) Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1079205307 24715 80.91.224.253 (13 Mar 2004 19:15:07 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 13 Mar 2004 19:15:07 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Mar 13 20:15:02 2004 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1B2Eb8-0005mQ-00 for ; Sat, 13 Mar 2004 20:15:02 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1B1OgD-00076f-9y for geh-help-gnu-emacs@m.gmane.org; Thu, 11 Mar 2004 06:48:49 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1B0Pdj-0004zm-NZ for help-gnu-emacs@gnu.org; Mon, 08 Mar 2004 13:38:11 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1B0Pd9-0004t4-LP for help-gnu-emacs@gnu.org; Mon, 08 Mar 2004 13:38:07 -0500 Original-Received: from [17.250.248.86] (helo=smtpout.mac.com) by monty-python.gnu.org with esmtp (Exim 4.30) id 1B0Pd9-0004sk-1b for help-gnu-emacs@gnu.org; Mon, 08 Mar 2004 13:37:35 -0500 Original-Received: from mac.com (smtpin08-en2 [10.13.10.153]) by smtpout.mac.com (Xserve/MantshX 2.0) with ESMTP id i28IbTQs005439 for ; Mon, 8 Mar 2004 10:37:29 -0800 (PST) Original-Received: from [42.99.177.26] (vernieras.sfsu.edu [130.212.108.241]) (authenticated bits=0) by mac.com (Xserve/smtpin08/MantshX 3.0) with ESMTP id i28IbTel023701 for ; Mon, 8 Mar 2004 10:37:29 -0800 (PST) In-Reply-To: <200403060636.i266aWUl012312@mac.com> Original-To: help-gnu-emacs@gnu.org X-Mailer: Apple Mail (2.612) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.4 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 Xref: main.gmane.org gmane.emacs.help:17568 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:17568 I was being frustrated by a similar problem until I looked at the=20 documentation for global-set-key. It mentions that "if KEY has a local=20= binding in the current buffer, that local binding will continue to=20 shadow any global binding that you make with this function." So I tried=20= inserting a call to local-set-key in the hook of the appropriate mode.=20= I can't say whether this is the "right" way to go about it, but it=20 seems to work. Matt El Mar 5, 2004, a las 10:36 PM, help-gnu-emacs-request@gnu.org escribi=F3:= > Hi > > I wanted to remap some key combinations, including C-j. I use > global-unset-key followed by global-set-key for each key combo and it > works fine most of the time apart from when emacs enters Latex-mode > where C-j reverts to its default behavoir and ignores my remapping. > Any suggestion what is causing this and what I can do to stop it? > > Cheers, > kjitta=