As a consequence of (interactive "r"), if you're typing away in a buffer that has no mark, calling powerthesaurus-lookup-word raises an error:
Debugger entered--Lisp error: (error "The mark is not set now, so there is no region")
call-interactively(powerthesaurus-lookup-word nil nil)
command-execute(powerthesaurus-lookup-word)
I expect the workaround will be managing the beginning and end by hand. I made a brief attempt to write such a wrapper but wasn't satisfied with the results.
As a consequence of
(interactive "r")
, if you're typing away in a buffer that has no mark, callingpowerthesaurus-lookup-word
raises an error:I expect the workaround will be managing the beginning and end by hand. I made a brief attempt to write such a wrapper but wasn't satisfied with the results.