From 78c8b5eb8058e8da523542b1b1de7e21a5b60e14 Mon Sep 17 00:00:00 2001 From: Noam Postavsky Date: Tue, 24 Dec 2013 11:49:24 -0500 Subject: [PATCH] yas--document-symbol: fix no transform case was causing YASnippetnippet --- doc/yas-doc-helper.el | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/doc/yas-doc-helper.el b/doc/yas-doc-helper.el index cec818c..925e41b 100755 --- a/doc/yas-doc-helper.el +++ b/doc/yas-doc-helper.el @@ -67,13 +67,14 @@ (setq body (replace-regexp-in-string "\\<\\([A-Z][-A-Z0-9]+\\)\\(\\sw+\\)?\\>" #'(lambda (match) - (let* ((match1 (downcase (match-string 1 match))) + (let* ((match1 (match-string 1 match)) + (prefix (downcase match1)) (suffix (match-string 2 match)) (fmt (cond - ((member match1 args) "@%s@") + ((member prefix args) "@%s@") ((null suffix) "/%s/")))) - (if fmt (format fmt match1) - match))) + (if fmt (format fmt prefix) + match1))) body t t 1) body (replace-regexp-in-string "`\\([a-z-]+\\)'"