projects
/
chise
/
est.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
440516d
)
(char-feature-name-sans-versions): New function.
author
MORIOKA Tomohiko
<tomo@kanji.zinbun.kyoto-u.ac.jp>
Thu, 18 Mar 2010 13:14:05 +0000
(22:14 +0900)
committer
MORIOKA Tomohiko
<tomo@kanji.zinbun.kyoto-u.ac.jp>
Thu, 18 Mar 2010 13:14:05 +0000
(22:14 +0900)
cwiki-common.el
patch
|
blob
|
history
diff --git
a/cwiki-common.el
b/cwiki-common.el
index
bb339a6
..
e4f64e8
100644
(file)
--- a/
cwiki-common.el
+++ b/
cwiki-common.el
@@
-65,6
+65,12
@@
(intern (format "%s@%s" name domain))
))))
+(defun char-feature-name-sans-versions (feature)
+ (let ((feature-name (symbol-name feature)))
+ (if (string-match "[@/]\\$rev=latest$" feature-name)
+ (intern (substring feature-name 0 (match-beginning 0)))
+ feature)))
+
(defun www-char-feature (character feature)
(let ((latest-feature (char-feature-name-at-domain feature '$rev=latest)))
(mount-char-attribute-table latest-feature)