From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Ketil Karstad Newsgroups: gmane.emacs.help Subject: C-j is not doing as it is being told Date: Wed, 03 Mar 2004 18:53:40 +0100 Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <000201c40148$7647da30$3382c281@Bliss> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1347179243==" X-Trace: sea.gmane.org 1078524667 17844 80.91.224.253 (5 Mar 2004 22:11:07 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 5 Mar 2004 22:11:07 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Mar 05 23:10:59 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 1AzNX1-0008TQ-00 for ; Fri, 05 Mar 2004 23:10:59 +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 1AzNVN-0001x7-3X for geh-help-gnu-emacs@m.gmane.org; Fri, 05 Mar 2004 17:09:17 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1AyaZm-0006Xn-CA for help-gnu-emacs@gnu.org; Wed, 03 Mar 2004 12:54:34 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1AyaZF-0006J2-Po for help-gnu-emacs@gnu.org; Wed, 03 Mar 2004 12:54:32 -0500 Original-Received: from [129.194.9.229] (helo=mbx.unige.ch) by monty-python.gnu.org with esmtp (Exim 4.30) id 1AyaYz-0006A6-2J for help-gnu-emacs@gnu.org; Wed, 03 Mar 2004 12:53:45 -0500 Original-Received: from CONVERSION-DAEMON.mbx.unige.ch by mbx.unige.ch (PMDF V6.2-X17 #30787) id <0HU000C01HPFIX@mbx.unige.ch> for help-gnu-emacs@gnu.org; Wed, 03 Mar 2004 18:53:40 +0100 (MET) Original-Received: from Bliss ([129.194.130.51]) by mbx.unige.ch (PMDF V6.2-X17 #30787) with ESMTP id <0HU000C17HPFEA@mbx.unige.ch> for help-gnu-emacs@gnu.org; Wed, 03 Mar 2004 18:53:39 +0100 (MET) Original-To: help-gnu-emacs@gnu.org X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-Mailer: Microsoft Outlook, Build 10.0.2616 Importance: Normal X-Priority: 3 (Normal) X-MSMail-priority: Normal X-Comment: This message was scanned against viruses by mbx.unige.ch. X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 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:17422 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:17422 This is a multi-part message in MIME format. --===============1347179243== Content-type: multipart/alternative; boundary="Boundary_(ID_/v44QXeFLX8QaKEe5xs5Og)" This is a multi-part message in MIME format. --Boundary_(ID_/v44QXeFLX8QaKEe5xs5Og) Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7BIT 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 --Boundary_(ID_/v44QXeFLX8QaKEe5xs5Og) Content-type: text/html; charset=us-ascii Content-transfer-encoding: QUOTED-PRINTABLE Message
Hi
 
I w= anted to remap=20 some key combinations, including C-j. I use global-unset-key followed= by=20 global-set-key for each key combo and it works fine most of the time = apart from=20 when emacs enters Latex-mode where C-j reverts to its default behavoi= r and=20 ignores my remapping.
Any= suggestion what=20 is causing this and what I can do to stop it?
 
Cheers,
kjitta
--Boundary_(ID_/v44QXeFLX8QaKEe5xs5Og)-- --===============1347179243== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Help-gnu-emacs mailing list Help-gnu-emacs@gnu.org http://mail.gnu.org/mailman/listinfo/help-gnu-emacs --===============1347179243==-- From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Barry Margolin Newsgroups: gmane.emacs.help Subject: Re: C-j is not doing as it is being told Date: Fri, 05 Mar 2004 17:56:14 -0500 Organization: Looking for work Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1078883783 29923 80.91.224.253 (10 Mar 2004 01:56:23 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 10 Mar 2004 01:56:23 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Mar 10 02:56:14 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 1B0sxB-0004fm-00 for ; Wed, 10 Mar 2004 02:56:13 +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 1B0srS-0006lj-3w for geh-help-gnu-emacs@m.gmane.org; Tue, 09 Mar 2004 20:50:18 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!cyclone.bc.net!sjc70.webusenet.com!news.usenetserver.com!border1.nntp.sjc.giganews.com!nntp.giganews.com!local1.nntp.sjc.giganews.com!nntp.comcast.com!news.comcast.com.POSTED!not-for-mail Original-NNTP-Posting-Date: Fri, 05 Mar 2004 16:56:14 -0600 Original-Newsgroups: gnu.emacs.help Mail-Copies-To: nobody User-Agent: MT-NewsWatcher/3.4b4 (PPC Mac OS X) X-Copies-To: never Original-Lines: 18 Original-NNTP-Posting-Host: 24.34.107.202 Original-X-Trace: sv3-5GCal/1m55lgLfcEvsek04uFamo6bhDThCz2JAaU6VvEvuw1jJ55lWyisN/COEp5lnDTJlNbQl9gG0r!s9jZn2XdXRx3BEyi+h51+NXELw/h+mJrGo0dPiSV2UUcki8d95mitDBIEfAEz33EuDwlpnsW+nJv!ykDBhBOO6cE= Original-X-Complaints-To: abuse@comcast.net X-DMCA-Complaints-To: dmca@comcast.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.1 Original-Xref: shelby.stanford.edu gnu.emacs.help:121498 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 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:17493 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:17493 In article , Ketil Karstad wrote: > 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? Latex-mode has a local key binding. Global bindings are defaults that local bindings can override. -- Barry Margolin, barmar@alum.mit.edu Arlington, MA *** PLEASE post questions in newsgroups, not directly to me *** From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.help Subject: Re: C-j is not doing as it is being told Date: Sat, 6 Mar 2004 09:28:04 +0000 Organization: muc.de e.V. -- private internet access Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <4j5c2c.q5.ln@acm.acm> References: NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1078950338 26653 80.91.224.253 (10 Mar 2004 20:25:38 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 10 Mar 2004 20:25:38 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Mar 10 21:25:15 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 1B1AGQ-0005nt-00 for ; Wed, 10 Mar 2004 21:25:14 +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 1B1AFl-00034U-58 for geh-help-gnu-emacs@m.gmane.org; Wed, 10 Mar 2004 15:24:33 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!bloom-beacon.mit.edu!npeer.de.kpn-eurorings.net!newsfeed.stueberl.de!news.space.net!news.muc.de!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 36 Original-NNTP-Posting-Host: acm.muc.de Original-X-Trace: marvin.muc.de 1078594062 55398 193.149.49.134 (6 Mar 2004 17:27:42 GMT) Original-X-Complaints-To: news-admin@muc.de Original-NNTP-Posting-Date: 6 Mar 2004 17:27:42 GMT User-Agent: tin/1.4.5-20010409 ("One More Nightmare") (UNIX) (Linux/2.0.35 (i686)) Original-Xref: shelby.stanford.edu gnu.emacs.help:121507 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 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:17501 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:17501 Ketil Karstad wrote on Wed, 03 Mar 2004 18:53:40 +0100: > This is a multi-part message in MIME format. You might win friends by posting in plain text format. The MIME stuff made your post ~5 times bigger, without adding any content. > 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? Latex Mode binds C-j in its local keymap. Anything in a local keymap will override global bindings. First of all, are you _sure_ you want to change this binding? I don't use Latex Mode, but looking in its manual (C-h C-k C-j) find that C-j is bound to `tex-terminate-paragraph', which does useful things like checking for unbalanced braces, and so on. Assuming you really are sure, the thing to do is to remove C-j from the Latex Mode keymap. Try this in your .emacs (untested): (eval-after-load "tex-mode" '(define-key tex-mode-map "\C-j" nil)) > Cheers, kjitta -- Alan Mackenzie (Munich, Germany) Email: aacm@muuc.dee; to decode, wherever there is a repeated letter (like "aa"), remove half of them (leaving, say, "a"). 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=