emacs-pretest-bug
[Top][All Lists]
Advanced

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

CUA property not set for multiple functions


From: M Jared Finder
Subject: CUA property not set for multiple functions
Date: Mon, 26 Sep 2005 00:00:23 -0700
User-agent: Debian Thunderbird 1.0.6 (X11/20050802)

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




reply via email to

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