Skip to content

怎么能够在调用pyim-convert-string-at-point且选完词之后关闭pyim? #455

Answered by tumashu
zbelial asked this question in Q&A
Discussion options

You must be logged in to vote
(defun test ()
  (interactive)
  (let* ((scheme (pyim-scheme-current))
         (entered-info (pyim-process--find-entered-at-point))
         (entered (nth 0 entered-info))
         (char-num-need-delete (nth 1 entered-info))
         (imobjs (pyim-imobjs-create entered scheme))
         (candidates
          (or (delete-dups
               (pyim-candidates-create imobjs scheme))
              (list entered))))
    (delete-backward-char char-num-need-delete)
    (insert (car candidates))))

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@zbelial
Comment options

@zbelial
Comment options

@tumashu
Comment options

Answer selected by zbelial
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants