cua-mode requires any movement function's symbol to have the CUA property be set to the symbol move. (See cua--pre-command-handler-1.) The following functions come with Emacs but do not have the property set appropriately:

forward-button
forward-comment
forward-line
forward-list
forward-page
forward-same-syntax
forward-sexp
forward-symbol
forward-thing
forward-to-indentation
forward-visible-line
forward-whitespace

(and that's just the functions that start with "forward"!)

All movement functions that come bundled with Emacs should work correctly with CUA. Executing the following code listed 494 symbols that need to have the CUA property set:

(let ((move-symbols '()))
  (do-all-symbols (symbol)
    (ignore-errors
      (when (and (string-match "move" (documentation symbol))
                 (not (eq (get symbol 'CUA) 'move)))
        (push symbol move-symbols))))
    move-symbols)

  -- MJF


_______________________________________________
Emacs-pretest-bug mailing list
Emacs-pretest-bug@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug

Reply via email to