[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master 0a9885e 073/177: markup suffixed variable names, eg SUBEXP
From: |
Jo�o T�vora |
Subject: |
[elpa] master 0a9885e 073/177: markup suffixed variable names, eg SUBEXPth |
Date: |
Sat, 28 Mar 2015 15:40:58 +0000 |
branch: master
commit 0a9885eb627303b2841fbd364176ea4811646303
Author: Noam Postavsky <address@hidden>
Commit: Noam Postavsky <address@hidden>
markup suffixed variable names, eg SUBEXPth
---
doc/yas-doc-helper.el | 17 ++++++++++-------
1 files changed, 10 insertions(+), 7 deletions(-)
diff --git a/doc/yas-doc-helper.el b/doc/yas-doc-helper.el
index fc3c1b5..d504f67 100755
--- a/doc/yas-doc-helper.el
+++ b/doc/yas-doc-helper.el
@@ -61,17 +61,20 @@
(format "*WARNING*: no doc for symbol =%s=" symbol)))
(case-fold-search nil))
;; do some transformations on the body:
- ;; ARG becomes =arg=
+ ;; ARGxxx becomes @<code>arg@</code>xxx
;; FOO becomes /foo/
;; `bar' becomes [[#bar][=bar=]]
(setq body (replace-regexp-in-string
- "\\<[A-Z][A-Z-]+\\>"
+ "\\<\\([A-Z][-A-Z0-9]+\\)\\(\\sw+\\)?\\>"
#'(lambda (match)
- (setq match (downcase match))
- (format (if (member match args)
- "=%s=" "/%s/")
- match))
- body t)
+ (let* ((match1 (downcase (match-string 1 match)))
+ (suffix (match-string 2 match))
+ (fmt (cond
+ ((member match1 args) "@<code>%s@</code>")
+ ((null suffix) "/%s/"))))
+ (if fmt (format fmt match1)
+ match)))
+ body t t 1)
body (replace-regexp-in-string
"`\\([a-z-]+\\)'"
#'(lambda (match)
- [elpa] master f6cace0 042/177: convert old rst manuals to org mode, (continued)
- [elpa] master f6cace0 042/177: convert old rst manuals to org mode, Jo�o T�vora, 2015/03/28
- [elpa] master 21914cf 064/177: yas--document-symbol: reindent, Jo�o T�vora, 2015/03/28
- [elpa] master f86529c 065/177: only crosslink exported symbols, Jo�o T�vora, 2015/03/28
- [elpa] master 0aebb41 055/177: move top heading to title, Jo�o T�vora, 2015/03/28
- [elpa] master 46c378d 063/177: format args in docstrings as =code=, not /italic/, Jo�o T�vora, 2015/03/28
- [elpa] master da9852a 053/177: {snippet-development, faq}.org: fixup pandoc output, Jo�o T�vora, 2015/03/28
- [elpa] master a9e3035 066/177: docstring fixes, Jo�o T�vora, 2015/03/28
- [elpa] master eda8330 067/177: only /italicize/ words completely in upper case, Jo�o T�vora, 2015/03/28
- [elpa] master 0f8007e 071/177: Simplify: index.org no longer repeats info in the README, Jo�o T�vora, 2015/03/28
- [elpa] master 6927f69 069/177: minor: README.mdown link, Jo�o T�vora, 2015/03/28
- [elpa] master 0a9885e 073/177: markup suffixed variable names, eg SUBEXPth,
Jo�o T�vora <=
- [elpa] master c61f81f 070/177: Closes #439: add a faq question about redefining keys, Jo�o T�vora, 2015/03/28
- [elpa] master 7d4e4aa 074/177: Closes #440: don't use `make-variable-buffer-local' for `yas--extra-modes', Jo�o T�vora, 2015/03/28
- [elpa] master 582e368 072/177: minor: cosmetic fixes to manual, Jo�o T�vora, 2015/03/28
- [elpa] master 7518cb4 075/177: rake doc:upload: check for wrong/incomplete rev, Jo�o T�vora, 2015/03/28
- [elpa] master b944cc9 078/177: fix rake doc:upload, Jo�o T�vora, 2015/03/28
- [elpa] master 90e7595 081/177: yas-text export twice, Jo�o T�vora, 2015/03/28
- [elpa] master 46b4a02 079/177: doc:upload stylesheets/*.css to gh-pages, Jo�o T�vora, 2015/03/28
- [elpa] master 6c752a1 080/177: populate yas--exported-syms based on sym prefix, Jo�o T�vora, 2015/03/28
- [elpa] master ba0b02f 082/177: Merge pull request #446 from dongxiong/patch-2, Jo�o T�vora, 2015/03/28
- [elpa] master d89e837 076/177: add top level menu, minimal styling, Jo�o T�vora, 2015/03/28