This function prompts for a string and stores it in a variable.

(defun get-greek-word ()
    "Get a Greek word from the user and put it into a variable."
    (set-input-method 'greek)
    (setq greek-word (read-string "Greek or Latin word: " nil nil nil t)))

It sets the input method to greek before prompting, but, if evil mode is on, this only works in insert state, and not in normal state. How can I make it work also when the function is called from normal state?

  • When I invoke the command in Emacs 26, the input method is always set to Greek in the minibuffer. – Basil Jun 2 '17 at 10:46
  • @Basil, 26? pacman has nothing new, and the gnu page says 25.2 is the latest version. – Toothrot Jun 2 '17 at 11:03
  • Yes, it's the development version. Sorry about the confusion. – Basil Jun 2 '17 at 11:04
  • I see the same behaviour as the one I previously described on 25.1.1. – Basil Jun 2 '17 at 11:08
  • @Basil, sorry, I see this depends on evil mode; will edit. – Toothrot Jun 2 '17 at 12:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.