emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/lisp/emulation/cua-base.el


From: Juanma Barranquero
Subject: [Emacs-diffs] Changes to emacs/lisp/emulation/cua-base.el
Date: Thu, 21 Jul 2005 05:38:13 -0400

Index: emacs/lisp/emulation/cua-base.el
diff -c emacs/lisp/emulation/cua-base.el:1.58 
emacs/lisp/emulation/cua-base.el:1.59
*** emacs/lisp/emulation/cua-base.el:1.58       Wed Jul 20 11:03:41 2005
--- emacs/lisp/emulation/cua-base.el    Thu Jul 21 09:38:13 2005
***************
*** 62,68 ****
  ;; If you really need to perform a command which starts with one of
  ;; the prefix keys even when the region is active, you have three options:
  ;; - press the prefix key twice very quickly (within 0.2 seconds),
! ;; - press the prefix key and the following key within 0.2 seconds), or
  ;; - use the SHIFT key with the prefix key, i.e. C-X or C-C
  ;;
  ;; This behaviour can be customized via the
--- 62,68 ----
  ;; If you really need to perform a command which starts with one of
  ;; the prefix keys even when the region is active, you have three options:
  ;; - press the prefix key twice very quickly (within 0.2 seconds),
! ;; - press the prefix key and the following key within 0.2 seconds, or
  ;; - use the SHIFT key with the prefix key, i.e. C-X or C-C
  ;;
  ;; This behaviour can be customized via the
***************
*** 274,280 ****
  (defcustom cua-enable-cua-keys t
    "*Enable using C-z, C-x, C-c, and C-v for undo, cut, copy, and paste.
  If the value is t, these mappings are always enabled.  If the value is
! 'shift, these keys are only enabled if the last region was marked with
  a shifted movement key.  If the value is nil, these keys are never
  enabled."
    :type '(choice (const :tag "Disabled" nil)
--- 274,280 ----
  (defcustom cua-enable-cua-keys t
    "*Enable using C-z, C-x, C-c, and C-v for undo, cut, copy, and paste.
  If the value is t, these mappings are always enabled.  If the value is
! `shift', these keys are only enabled if the last region was marked with
  a shifted movement key.  If the value is nil, these keys are never
  enabled."
    :type '(choice (const :tag "Disabled" nil)
***************
*** 314,322 ****
    "*If non-nil, registers are supported via numeric prefix arg.
  If the value is t, any numeric prefix arg in the range 0 to 9 will be
  interpreted as a register number.
! If the value is not-ctrl-u, using C-u to enter a numeric prefix is not
  interpreted as a register number.
! If the value is ctrl-u-only, only numeric prefix entered with C-u is
  interpreted as a register number."
    :type '(choice (const :tag "Disabled" nil)
                 (const :tag "Enabled, but C-u arg is not a register" 
not-ctrl-u)
--- 314,322 ----
    "*If non-nil, registers are supported via numeric prefix arg.
  If the value is t, any numeric prefix arg in the range 0 to 9 will be
  interpreted as a register number.
! If the value is `not-ctrl-u', using C-u to enter a numeric prefix is not
  interpreted as a register number.
! If the value is `ctrl-u-only', only numeric prefix entered with C-u is
  interpreted as a register number."
    :type '(choice (const :tag "Disabled" nil)
                 (const :tag "Enabled, but C-u arg is not a register" 
not-ctrl-u)
***************
*** 331,337 ****
  
  (defcustom cua-use-hyper-key nil
    "*If non-nil, bind rectangle commands to H-... instead of M-....
! If set to 'also, toggle region command is also on C-return.
  Must be set prior to enabling CUA."
    :type '(choice (const :tag "Meta key and C-return" nil)
                 (const :tag "Hyper key only" only)
--- 331,337 ----
  
  (defcustom cua-use-hyper-key nil
    "*If non-nil, bind rectangle commands to H-... instead of M-....
! If set to `also', toggle region command is also on C-return.
  Must be set prior to enabling CUA."
    :type '(choice (const :tag "Meta key and C-return" nil)
                 (const :tag "Hyper key only" only)
***************
*** 362,368 ****
    "*If non-nil, rectangles have virtual straight edges.
  Note that although rectangles are always DISPLAYED with straight edges, the
  buffer is NOT modified, until you execute a command that actually modifies it.
! \[M-p] toggles this feature when a rectangle is active."
    :type 'boolean
    :group 'cua)
  
--- 362,368 ----
    "*If non-nil, rectangles have virtual straight edges.
  Note that although rectangles are always DISPLAYED with straight edges, the
  buffer is NOT modified, until you execute a command that actually modifies it.
! M-p toggles this feature when a rectangle is active."
    :type 'boolean
    :group 'cua)
  
***************
*** 1175,1181 ****
  
  (defun cua--M/H-key (map key fct)
    ;; bind H-KEY or M-KEY to FCT in MAP
!   (if (eq key 'space) (setq key ? ))
    (unless (listp key) (setq key (list key)))
    (define-key map (vector (cons (if cua-use-hyper-key 'hyper 'meta) key)) 
fct))
  
--- 1175,1181 ----
  
  (defun cua--M/H-key (map key fct)
    ;; bind H-KEY or M-KEY to FCT in MAP
!   (if (eq key 'space) (setq key ?\s))
    (unless (listp key) (setq key (list key)))
    (define-key map (vector (cons (if cua-use-hyper-key 'hyper 'meta) key)) 
fct))
  
***************
*** 1244,1250 ****
      (cua--M/H-key cua-global-keymap 'space    'cua-set-rectangle-mark)
      (define-key cua-global-keymap [(hyper mouse-1)] 
'cua-mouse-set-rectangle-mark))
  
!   (define-key cua-global-keymap [(shift control ? )]  'cua-toggle-global-mark)
  
    ;; replace region with rectangle or element on kill ring
    (define-key cua-global-keymap [remap yank]          'cua-paste)
--- 1244,1250 ----
      (cua--M/H-key cua-global-keymap 'space    'cua-set-rectangle-mark)
      (define-key cua-global-keymap [(hyper mouse-1)] 
'cua-mouse-set-rectangle-mark))
  
!   (define-key cua-global-keymap [(shift control ?\s)] 'cua-toggle-global-mark)
  
    ;; replace region with rectangle or element on kill ring
    (define-key cua-global-keymap [remap yank]          'cua-paste)
***************
*** 1346,1357 ****
  the prefix keys even when the region is active, you have three
  options:
  - press the prefix key twice very quickly (within 0.2 seconds),
! - press the prefix key and the following key within 0.2 seconds), or
  - use the SHIFT key with the prefix key, i.e. C-S-x or C-S-c.
  
  You can customize `cua-enable-cua-keys' to completely disable the
  CUA bindings, or `cua-prefix-override-inhibit-delay' to change
! the prefix fallback behaviour."
    :global t
    :group 'cua
    :set-after '(cua-enable-modeline-indications cua-use-hyper-key)
--- 1346,1357 ----
  the prefix keys even when the region is active, you have three
  options:
  - press the prefix key twice very quickly (within 0.2 seconds),
! - press the prefix key and the following key within 0.2 seconds, or
  - use the SHIFT key with the prefix key, i.e. C-S-x or C-S-c.
  
  You can customize `cua-enable-cua-keys' to completely disable the
  CUA bindings, or `cua-prefix-override-inhibit-delay' to change
! the prefix fallback behavior."
    :global t
    :group 'cua
    :set-after '(cua-enable-modeline-indications cua-use-hyper-key)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]