Emacs 24 kill-region and yank

To restore the old kill-region and yank behaviour, add the following to .emacs:

(setq x-select-enable-clipboard nil)
(setq x-select-enable-primary t) 
(setq  mouse-drag-copy-region t)
(setq select-active-regions nil)
(global-set-key [mouse-2] 'mouse-yank-at-click)

Emacs-24 Space bar () complete file

This was changed to allow entering file name with space without quote.  The old behaviour can be restored with

class="lisp">(define-key minibuffer-local-filename-completion-map (kbd "SPC")
       'minibuffer-complete-word)
     
(define-key minibuffer-local-must-match-filename-map (kbd "SPC")
       'minibuffer-complete-word)

gpg hangs

I am not sure why it hangs, since I have a lot of entropy.
$ cat /proc/sys/kernel/random/entropy_avail
4096

The solution worked for me is "Ctrl-z" then type "fg".  I do not know why suspend then restart it would make a difference.  This is on Centos 5.

This is a workaround rather than a permanent fix.

using strace on it also wakes it up.