From: Chris Mann Date: Mon, 2 Mar 2009 04:54:00 +0000 (+1030) Subject: * wesnoth-mode.el (wesnoth-complete-macro): No longer force macros to be X-Git-Url: https://repo.or.cz/w/wesnoth-mode.git/commitdiff_plain/0a90019eddc7c29e601249c68541fd9c114691fe * wesnoth-mode.el (wesnoth-complete-macro): No longer force macros to be placed on a newline; insert at point. --- diff --git a/wesnoth-mode.el b/wesnoth-mode.el index e39c3bc..5e4468e 100644 --- a/wesnoth-mode.el +++ b/wesnoth-mode.el @@ -687,10 +687,10 @@ If COMPLETEP is non-nil, attempt to complete the macro at point." (progn ;; Delete the region corresponding to the current macro. (delete-region (nth 1 details) (nth 2 details)) - (insert "{" macro (if args " }" "}"))) - (wesnoth-insert-element-separately "{" macro (if args " }" "}"))) - (save-excursion - (wesnoth-indent)) + (insert "{" macro (if args " }" "}")) + (save-excursion + (wesnoth-indent))) + (wesnoth-insert-and-indent "{" macro (if args " }" "}"))) (forward-char -1) (when args (let ((input (read-string (concat (car args) ": "))))