From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Xah Newsgroups: gmane.emacs.help Subject: Re: CUA mode, turn off Shift+Curvor Move to Select Date: Thu, 4 Sep 2008 13:20:37 -0700 (PDT) Organization: http://groups.google.com Message-ID: <2c82a057-54f5-4731-bd7f-1fa88ab3f858@a2g2000prm.googlegroups.com> References: <2d6948d6-f1d5-4b89-bd2a-cd8886e8f7a2@t1g2000pra.googlegroups.com> <51a05da4-537d-4ad5-a023-2c138b4e0969@a8g2000prf.googlegroups.com> <790b223e-2a0d-4407-a8a7-61eb0517afbc@r35g2000prm.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1220560841 15861 80.91.229.12 (4 Sep 2008 20:40:41 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 4 Sep 2008 20:40:41 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Sep 04 22:41:35 2008 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 1KbLe3-0000de-8H for geh-help-gnu-emacs@m.gmane.org; Thu, 04 Sep 2008 22:41:35 +0200 Original-Received: from localhost ([127.0.0.1]:51042 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KbLd3-0007hL-Sa for geh-help-gnu-emacs@m.gmane.org; Thu, 04 Sep 2008 16:40:33 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!a2g2000prm.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 92 Original-NNTP-Posting-Host: 24.6.185.159 Original-X-Trace: posting.google.com 1220559637 478 127.0.0.1 (4 Sep 2008 20:20:37 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Thu, 4 Sep 2008 20:20:37 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: a2g2000prm.googlegroups.com; posting-host=24.6.185.159; posting-account=bRPKjQoAAACxZsR8_VPXCX27T2YcsyMA User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10_4_11; en) AppleWebKit/525.18 (KHTML, like Gecko) Version/3.1.2 Safari/525.22, gzip(gfe), gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:161936 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:57279 Archived-At: Thanks a lot for the info Lennart. I read the elisp doc on symbol properties. I also tried the suggested solution, for some reason it doesn't seems to work. eval the following code and turn on cua mode. (global-set-key (kbd "M-T") 'scroll-up) (global-set-key (kbd "M-C") 'scroll-down) (global-set-key (kbd "M-G") 'backward-paragraph) (global-set-key (kbd "M-R") 'forward-paragraph) ; etc other commands bound with Shift key. (add-hook 'cua-mode-hook (lambda () (put cua-scroll-down 'CUA nil) (put cua-scroll-up 'CUA nil) (put backward-paragraph 'CUA nil) (put forward-paragraph 'CUA nil) (put beginning-of-buffer 'CUA nil) (put end-of-buffer 'CUA nil) (put move-end-of-line 'CUA nil) ;;(define-key cua-global-keymap (kbd "M-C") 'no-select-cua-scroll- down) ;;(define-key cua-global-keymap (kbd "M-T") 'no-select-cua-scroll- up) ;;(define-key cua-global-keymap (kbd "M-G") 'no-select-backward- paragraph) ;;(define-key cua-global-keymap (kbd "M-R") 'no-select-forward- paragraph) ;;(define-key cua-global-keymap (kbd "M-H") 'no-select-beginning-of- buffer) ;;(define-key cua-global-keymap (kbd "M-N") 'no-select-end-of- buffer) ;;(define-key cua-global-keymap (kbd "M-D") 'no-select-move-end-of- line) ) ) then, when you do a scroll-up/down via the keys above, scroll-down still activates region selection. Though, scroll-up does not. Could this be a bug? Also, backward-paragraph, forward-paragraph, beginning-of-buffer, end- of-buffer all still activates region selection... Xah =E2=88=91 http://xahlee.org/ =E2=98=84 On Sep 2, 9:12 am, "Lennart Borgman (gmail)" wrote: > Xahwrote: > >Xahwrote: =C2=ABCUA mode, turn off Shift+Curvor Move to Select=C2=BB > > > Lennart Borgman wrote: =C2=AB (put 'cua-scroll-up 'CUA 'move)=C2=BB > > > Damn. Why didn't u be explicit before? > > Sorry, I did not remember the name then and thought I gave you enough inf= o. > > > Ok, so if i want to use that, how excatly do i change it? remove the > > property? change it to some other value? > > I have never done it, but I guess changing it to something else will do, > for example > > (put 'cua-scroll-up 'CUA nil) > > > am not familiar with lisp's function's properties. Will have to spend > > a couple hours on this... but seems the solution i have works now. I > > looked at cua-mode source code trying to find some comment or doc > > about it but didn't see much... if you can give direct pointer, > > that'll be great. Thanks. > > There is only symbol properties, not functions or variables dito. > > There is not much to learn > > (info "(elisp) Symbol Plists") > > > Xah > > =E2=88=91http://xahlee.org/ > > > =E2=98=84