From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: justareader Newsgroups: gmane.emacs.help Subject: CUA mode behavior Date: Tue, 20 Oct 2009 17:41:29 -0700 (PDT) Organization: http://groups.google.com Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1256099326 22193 80.91.229.12 (21 Oct 2009 04:28:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 21 Oct 2009 04:28:46 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Oct 21 06:28:36 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1N0SoO-0004aq-EL for geh-help-gnu-emacs@m.gmane.org; Wed, 21 Oct 2009 06:28:36 +0200 Original-Received: from localhost ([127.0.0.1]:48451 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N0SoN-0007NB-IW for geh-help-gnu-emacs@m.gmane.org; Wed, 21 Oct 2009 00:28:35 -0400 Original-Path: news.stanford.edu!usenet.stanford.edu!postnews.google.com!r31g2000vbi.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 37 Original-NNTP-Posting-Host: 131.107.0.82 Original-X-Trace: posting.google.com 1256085689 6905 127.0.0.1 (21 Oct 2009 00:41:29 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Wed, 21 Oct 2009 00:41:29 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: r31g2000vbi.googlegroups.com; posting-host=131.107.0.82; posting-account=D_o8bAoAAAAQfCYZvyVRv2dnwxIh5dVS User-Agent: G2/1.0 X-HTTP-Via: 1.1 RED-PRXY-05 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.2),gzip(gfe),gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:174036 X-Mailman-Approved-At: Wed, 21 Oct 2009 00:18:12 -0400 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:69120 Archived-At: I am relatively a new user of emacs trying to get learn emacs. I am coming from Windows world. I have enabled cua-mode in my .emacs to use the standard keyboard bindings for the cut/copy/paste behavior. Cut and Copy works well but I see paste behavior is inconsistent. For eg, if I select a word say "Word1", copy it using Ctrl+C and later select another word say "Word2" and now paste using Ctrl+V, the "Word2" is replaced with "Word1" but then "Word2" replaces "Word1" in the clipboard. This does not occur in windows, unix or other OS applications. In other apps, Word1 is still in Clipboard and subsequent paste replaces the selected word with "Word1". How can I enable this behavior in emacs. Following is the CUA related initialization segment in my .emacs file. ;; Enable cua-mode (cua-mode t) (setq cua-keep-region-after-copy t) Any help would be greatly appreciated. Thanks