(let (deactivate-mark) (switch-to-buffer (get-buffer-create "t")) (insert "hello") (set-mark-command nil) (move-beginning-of-line nil))