Fix: region-beginning / region-end are functions, not variables.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Fri, 17 Mar 2017 21:10:43 +0200
changeset 803 13f5485d81c6
parent 802 a812ec996022
child 804 7aa283584ee6
Fix: region-beginning / region-end are functions, not variables.
contrib/gadict.el
--- a/contrib/gadict.el	Fri Mar 17 21:07:20 2017 +0200
+++ b/contrib/gadict.el	Fri Mar 17 21:10:43 2017 +0200
@@ -357,7 +357,7 @@
   "Copy existing pronunciation of selected region or current word to `kill-ring'."
   (interactive
    (list (if (use-region-p)
-             (buffer-substring region-beginning region-end)
+             (buffer-substring (region-beginning) (region-end))
            (thing-at-point 'word))))
   (save-excursion
     (gadict-search-floor headword)