X-Git-Url: https://cgit.sxemacs.org/?p=riece;a=blobdiff_plain;f=lisp%2Friece-develop.el;fp=lisp%2Friece-develop.el;h=3bcd3f7edc3abcc9222bf41b835efce4eda89cfb;hp=87d4de3366366805f86fa7f6d33fb599a39b5f73;hb=91839c2c2836c9e81e73ade8184d07fb1ee97fc2;hpb=9181c3ff5a7cef076422e387edebd8a66b2e769e diff --git a/lisp/riece-develop.el b/lisp/riece-develop.el index 87d4de3..3bcd3f7 100644 --- a/lisp/riece-develop.el +++ b/lisp/riece-develop.el @@ -1,9 +1,6 @@ (defun riece-insert-struct-template (prefix struct) (interactive "sPrefix: sStruct: ") - (if (and prefix - (not (string-match "-\\'" prefix))) - (setq prefix (concat prefix "-"))) (let (attributes optional-attributes name @@ -11,6 +8,9 @@ sStruct: ") arglist strings (index 0)) + (if (and prefix + (not (string-match "-\\'" prefix))) + (setq prefix (concat prefix "-"))) (catch 'finish (while t (setq name (read-from-minibuffer "Attribute: "))