From 7a4f3356d214c4cc5587e03fcf717682724b3e62 Mon Sep 17 00:00:00 2001 From: MORIOKA Tomohiko Date: Sat, 20 Nov 2010 14:09:45 +0900 Subject: [PATCH] (www-display-object-desc): Modify to edit non-character object. (www-display-feature-desc): Add new argument `genre'. --- cwiki-view.el | 32 ++++++++++++++++++++------------ 1 file changed, 20 insertions(+), 12 deletions(-) diff --git a/cwiki-view.el b/cwiki-view.el index ec3f256..6061fe9 100644 --- a/cwiki-view.el +++ b/cwiki-view.el @@ -34,18 +34,19 @@ (format (if simple "
- +

\n" "
- +

\n") + genre uri-object)) (when (setq parents (www-get-feature-value object '<-denotational)) (princ (format "

%s %s

\n
\n" @@ -97,9 +98,10 @@ nil simple)) (unless simple (princ - (format " " chise-wiki-edit-url + genre (www-format-encode-string uri-object) (www-format-encode-string (www-uri-encode-feature-name @@ -117,10 +119,11 @@ "
  • \n")) (unless simple (princ - (format " " chise-wiki-add-url + genre (www-format-encode-string uri-object)))) (princ (if (= level 1) @@ -157,7 +160,7 @@ size=\"30\" maxlength=\"30\" value=\"%s\" />" "
  • \n")) ))) -(defun www-display-feature-desc (uri-feature-name uri-object +(defun www-display-feature-desc (uri-feature-name genre uri-object &optional lang simple) (let ((feature-name (www-uri-decode-feature-name uri-feature-name)) (name@lang (intern (format "name@%s" lang)))) @@ -173,19 +176,19 @@ size=\"30\" maxlength=\"30\" value=\"%s\" />" (format (if simple "
    - +

    \n" "
    - +

    \n") - uri-feature-name uri-object)) + uri-feature-name genre uri-object)) (princ (format "

    %s

    \n" (www-format-encode-string @@ -195,9 +198,10 @@ size=\"30\" maxlength=\"30\" value=\"%s\" />" (unless simple (princ (format - " " + " " chise-wiki-edit-url uri-feature-name + genre uri-object)) (princ "\n")) (princ "

    \n") @@ -211,10 +215,11 @@ size=\"30\" maxlength=\"30\" value=\"%s\" />" (unless simple (princ (format - " " + " " chise-wiki-edit-url uri-feature-name name@lang + genre uri-object)) (princ "\n")) (princ "

    \n")) @@ -233,10 +238,11 @@ size=\"30\" maxlength=\"30\" value=\"%s\" />" (unless simple (princ (format - " " chise-wiki-edit-url uri-feature-name + genre uri-object)) (princ "\n")) (princ "

    \n") @@ -250,10 +256,11 @@ size=\"30\" maxlength=\"30\" value=\"%s\" />" (unless simple (princ (format - " " chise-wiki-edit-url uri-feature-name + genre uri-object)) (princ "\n")) (princ "

    \n") @@ -325,6 +332,7 @@ size=\"30\" maxlength=\"30\" value=\"%s\" />" ((eq (car ret) 'feature) (www-display-feature-desc (decode-uri-string (cdr ret) 'utf-8-mcs-er) + (car ret) (cdr (assq 'char target)) lang (eq mode 'simple)) -- 1.7.10.4