From f75bf8aa09cd26e9784e6b0d8a1780777d44faee Mon Sep 17 00:00:00 2001 From: MORIOKA Tomohiko Date: Thu, 18 Mar 2010 22:15:54 +0900 Subject: [PATCH] (www-edit-display-feature-input-box): New function. (www-edit-display-char-desc): Use `www-edit-display-feature-input-box'. --- cwiki-edit.el | 50 ++++++++++++++++++++++++++++---------------------- 1 file changed, 28 insertions(+), 22 deletions(-) diff --git a/cwiki-edit.el b/cwiki-edit.el index 7e4d6ae..45d19c0 100644 --- a/cwiki-edit.el +++ b/cwiki-edit.el @@ -52,6 +52,29 @@ size=\"30\" maxlength=\"30\" value=\"%s\"> 'without-tags) )))) +(defun www-edit-display-feature-input-box (char feature-name + &optional format) + (unless format + (setq format 'default)) + (princ + (format "

" + feature-name)) + (princ (encode-coding-string " \u2190 " 'utf-8-mcs-er)) + (princ + (format "%s +

+" + (if (or (eq format 'HEX)(eq format 'hex)) + "0x" + "") + format + (www-format-value (www-char-feature char feature-name) + feature-name + format 'without-tags))) + ) + (defun www-edit-display-char-desc (uri-char uri-feature-name &optional lang format) (when (stringp format) @@ -93,25 +116,7 @@ size=\"30\" maxlength=\"30\" value=\"%s\">)

(char-attribute-name< (car a)(car b))))) (cond ((eq (car cell) feature-name) - ;; (www-edit-display-input-box feature-name (cdr cell) format) - (princ - (format "

" - feature-name)) - (princ (encode-coding-string " \u2190 " 'utf-8-mcs-er)) - (princ - (format "%s -

-" - (if (or (eq format 'HEX)(eq format 'hex)) - "0x" - "") - format - (www-format-value (www-char-feature char (car cell)) - ;;(cdr cell) - feature-name - format 'without-tags))) + (www-edit-display-feature-input-box char feature-name format) ) (t (princ "

") @@ -124,9 +129,10 @@ size=\"30\" maxlength=\"30\" value=\"%s\"> (when (and (eq base-name (car cell)) metadata-name) (princ "

")) )) -- 1.7.10.4