anki-editor icon indicating copy to clipboard operation
anki-editor copied to clipboard

Error on cloze deletion for multiple sequential words

Open JayDugger opened this issue 6 years ago • 3 comments

If I select multiple sequential words for cloze deletion and give M-x anki-editor-cloze-region, then I get the following error.

(wrong-number-of-arguments (4 . 4) 2)

This happens when I select "computer network interface" in this tree and give the command.

* Virtual network interface
  :PROPERTIES:
  :ANKI_DECK: @IMPORT
  :ANKI_NOTE_TYPE: Cloze
  :ANKI_TAGS: Computer_networks 
  :END:

** Text
A [[https://en.wikipedia.org/wiki/Virtual_network_interface][virtual network interface]] ({{c1::VIF}}) is an abstract virtualized representation of a computer network interface that may or may not correspond directly to a [[https://en.wikipedia.org/wiki/Network_interface_controller][network interface controller]].
** Extra

Emacs gives the following backtrace.

Debugger entered--Lisp error: (wrong-number-of-arguments (4 . 4) 2)
  anki-editor-cloze(385 393)
  anki-editor-cloze-region(1 "")
  funcall-interactively(anki-editor-cloze-region 1 "")
  call-interactively(anki-editor-cloze-region record nil)
  command-execute(anki-editor-cloze-region record)
  execute-extended-command(nil "anki-editor-cloze-region" nil)
  funcall-interactively(execute-extended-command nil "anki-editor-cloze-region" nil)
  call-interactively(execute-extended-command nil nil)
  command-execute(execute-extended-command)

JayDugger avatar Sep 18 '18 14:09 JayDugger

I also get the same error if I select a single word.

Emacs gives the following backtrace.

Debugger entered--Lisp error: (wrong-number-of-arguments (4 . 4) 2)
  anki-editor-cloze(3036 3040)
  anki-editor-cloze-region(1 "")
  funcall-interactively(anki-editor-cloze-region 1 "")
  call-interactively(anki-editor-cloze-region record nil)
  command-execute(anki-editor-cloze-region record)
  execute-extended-command(nil "anki-editor-cloze-region" nil)
  funcall-interactively(execute-extended-command nil "anki-editor-cloze-region" nil)
  call-interactively(execute-extended-command nil nil)
  command-execute(execute-extended-command)

JayDugger avatar Nov 16 '18 22:11 JayDugger

Closed in error. Reopened.

JayDugger avatar Nov 16 '18 22:11 JayDugger

Try with the latest build, it should work now.

louietan avatar Dec 31 '18 06:12 louietan