Subject: bug#10497: cua mode C-x not working

From: Glenn Morris <[email-masked]>
Date: Fri, 13 Jan 2012 16:53:57 -0500

Mike Fitzgerald wrote:

> 1) emacs-q
> 2) M-x cua-mode
> 3) C-x b
> 4) type in some random letters to create a randomly named buffer
> 5) type in some random letters to create a random word in my new buffer
> 6) select the new word
> 7) C-x (expect to cut the selected text)
> 8) get message in mode line:
>    'Symbol's function definition is void: cua--register'
[...]
> In GNU Emacs 23.3.1 (i386-mingw-nt6.1.7600)
[...]
> Cua mode enabled
> cua-cut-region: Symbol's function definition is void: cua--register

Thanks for the report, but I cannot reproduce this with Emacs 23.3 on
GNU/Linux. cua--register is a variable, not a function. It's hard to see
how this error could happen. It almost looks like your cua-base.el has
been mis-compiled, since the only reference to cua--register in
cua-cut-region is:

(cond
   (cua--register
    (copy-to-register cua--register start end t))
    ...)