port x-symbol to GNU emacs 24.