* lisp/emulation/cua-base.el (cua--select-keymaps): Use region-active-p.
(cua-set-mark, cua--pre-command-handler-1,cua--post-command-handler-1):
* lisp/emulation/cua-gmrk.el (cua-cancel-global-mark): Same.
* callproc.c (encode_current_directory): Encode dir at the end.
* net/tramp.el (tramp-check-cached-permissions): Include hop in
the constructed Tramp file name.