]> code.delx.au - gnu-emacs-elpa/commitdiff
yas--document-symbol: reindent
authorNoam Postavsky <npostavs@users.sourceforge.net>
Fri, 29 Nov 2013 03:06:06 +0000 (22:06 -0500)
committerNoam Postavsky <npostavs@users.sourceforge.net>
Fri, 29 Nov 2013 04:35:32 +0000 (23:35 -0500)
doc/yas-doc-helper.el

index 4969bdf470f04e4c678d621419475d8d558528a8..ae06015d8bb9157db11f592dde1032734ddbf21e 100755 (executable)
       ;; FOO becomes /foo/
       ;; `bar' becomes [[#bar][=bar=]]
       (setq body (replace-regexp-in-string
-                  "[A-Z][A-Z-]+" #'(lambda (match)
-                                     (setq match (downcase match))
-                                     (format (if (member match args)
-                                                 "=%s=" "/%s/")
-                                             match))
+                  "[A-Z][A-Z-]+"
+                  #'(lambda (match)
+                      (setq match (downcase match))
+                      (format (if (member match args)
+                                  "=%s=" "/%s/")
+                              match))
                   body t)
-            body (replace-regexp-in-string "`\\([a-z-]+\\)'" #'(lambda (match)
-                                                                 (let* ((name (downcase (match-string 1 match)))
-                                                                        (sym (intern name)))
-                                                                   (if (and (or (boundp sym)
-                                                                                (fboundp sym))
-                                                                            (save-match-data
-                                                                              (string-match "^yas-" name)))
-                                                                       (format "[[#%s][=%s=]]"
-                                                                               name name)
-                                                                     (format "=%s=" name))))
-                                           body))
+            body (replace-regexp-in-string
+                  "`\\([a-z-]+\\)'"
+                  #'(lambda (match)
+                      (let* ((name (downcase (match-string 1 match)))
+                             (sym (intern name)))
+                        (if (and (or (boundp sym)
+                                     (fboundp sym))
+                                 (save-match-data
+                                   (string-match "^yas-" name)))
+                            (format "[[#%s][=%s=]]"
+                                    name name)
+                          (format "=%s=" name))))
+                  body))
       ;; output the paragraph
       ;;
       (concat-lines heading