From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stuart McGraw Newsgroups: gmane.emacs.help Subject: Re: unassigning cntl-Z in cua mode Date: Sun, 22 Mar 2015 23:58:47 -0600 Message-ID: References: <87oankz5j4.fsf@gmail.com> <87k2y8z4jt.fsf@gmail.com> <87iodsz2zf.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1427090363 8242 80.91.229.3 (23 Mar 2015 05:59:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 23 Mar 2015 05:59:23 +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 Mar 23 06:59:15 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 1YZvOK-0003q5-Q7 for geh-help-gnu-emacs@m.gmane.org; Mon, 23 Mar 2015 06:59:12 +0100 Original-Received: from localhost ([::1]:53804 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YZvOK-00050N-7D for geh-help-gnu-emacs@m.gmane.org; Mon, 23 Mar 2015 01:59:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50280) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YZvO9-00050G-RS for help-gnu-emacs@gnu.org; Mon, 23 Mar 2015 01:59:02 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YZvO6-0000Dm-Lc for help-gnu-emacs@gnu.org; Mon, 23 Mar 2015 01:59:01 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:40195) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YZvO6-0000Cn-Ea for help-gnu-emacs@gnu.org; Mon, 23 Mar 2015 01:58:58 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1YZvO3-0003a4-0Z for help-gnu-emacs@gnu.org; Mon, 23 Mar 2015 06:58:55 +0100 Original-Received: from 65.183.81.59 ([65.183.81.59]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 23 Mar 2015 06:58:54 +0100 Original-Received: from smcg4191 by 65.183.81.59 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 23 Mar 2015 06:58:54 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 29 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 65.183.81.59 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 In-Reply-To: <87iodsz2zf.fsf@gmail.com> 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:103266 Archived-At: On 03/22/2015 11:39 PM, Alexis wrote: > On 2015-03-23T16:19:34+1100, Stuart McGraw said: > SM> On 03/22/2015 11:05 PM, Alexis wrote: > >> On 2015-03-23T15:54:01+1100, Stuart McGraw >> said: > >> SM> Ah, I was try to set it to nil. I just tried your suggestion > SM> >> instead but still no joy. No errors or messages but no effect >> > SM> either, ctrl-z still tries to do an undo. > >> >> Odd. What does Emacs say when you ask about the C-z >> keybinding: > >> >> C-h k C-z > > SM> Still seems to be bound to undo: > > SM> | C-z runs the command undo, which is an interactive compiled SM> > Lisp | function in `simple.el'. | | It is bound to C-z, C-_, SM> > , C-/, C-x u, . |... > > SM> The "(global-unset-key (kbd "C-z"))" line is at the bottom of my SM> > .emacs file, I didn't do something silly like putting it above SM> the > cua-enabling stuff. > > *nod* > > Perhaps instead try: > > (setq cua-remap-control-z nil) Bingo! When put above the cua-enabling code it works excellently. Thank you!!