+2001-05-22 KATAYAMA Yoshio <kate@pfu.fujitsu.com>
+
+ * its.el (its-delete-by-character): New customizable variable.
+ (its-delete-backward-SYL): Delete a character as a unit even if
+ just after input, if its-delete-by-character is non-NIL.
+
+2001-04-16 KATAYAMA Yoshio <kate@pfu.co.jp>
+
+ * egg.el (egg-setup-invisibility-spec): New function for setup
+ buffer-invisibilty-spec.
+
+ * its.el (its-setup-fence-mode): Change the value of invisible
+ property to egg.
+
+ * egg-cnv.el (egg-convert-region): Change the value of invisible
+ property to egg.
+
+ * jisx0213.el: Correct JIS X 0213 definition. (suggested by
+ T. Kawabata)
+
2000-06-02 KATAYAMA Yoshio <kate@pfu.co.jp>
* egg/wnn.el (wnn): Fix docstring.
;; nothing to do
nil
(delete-region start end)
+ (egg-setup-invisibility-spec)
(let ((inhibit-read-only t))
(its-define-select-keys egg-conversion-map)
(goto-char start)
(if context
(put-text-property 0 len 'egg-context context s))
(if egg-conversion-fence-invisible
- (put-text-property 0 len 'invisible t s))
+ (put-text-property 0 len 'invisible 'egg s))
(insert s)
(setq s (copy-sequence egg-conversion-fence-close)
len (length s))
(set-text-properties 0 len '(read-only t rear-nonsticky t egg-end t) s)
(if egg-conversion-fence-invisible
- (put-text-property 0 len 'invisible t s))
+ (put-text-property 0 len 'invisible 'egg s))
(insert s)
(goto-char start)
(insert source)
;;; Code:
-(require 'cl)
+(eval-when-compile
+ (require 'cl))
+
(require 'egg-edep)
(autoload 'egg-simple-input-method "egg-sim"
(setq prop (cddr prop)))
(setq p (next-property-change p object to)))
(remove-text-properties from to props object)))
+
+(defun egg-setup-invisibility-spec ()
+ (if (listp buffer-invisibility-spec)
+ (unless (condition-case nil (memq 'egg buffer-invisibility-spec) (error))
+ (setq buffer-invisibility-spec (cons 'egg buffer-invisibility-spec)))
+ (unless (eq buffer-invisibility-spec t)
+ (setq buffer-invisibility-spec (list 'egg buffer-invisibility-spec)))))
\f
(defvar egg-mark-list nil)
(defvar egg-suppress-marking nil)
(if (y-or-n-p (concat "\e$B!V\e(B" kanji "\e$B$J!W$O@5$7$$$G$9$+!#\e(B")) "#T15" "#T35"))
(defun canna-hinshi-SAHEN-MEISHI (kanji yomi)
- (if (y-or-n-p (concat "\e$B!V\e(B" kanji "\e$B$J!W$O@5$7$$$G$9$+!#\e(B") "#T10" "#T30")))
+ (if (y-or-n-p (concat "\e$B!V\e(B" kanji "\e$B$J!W$O@5$7$$$G$9$+!#\e(B")) "#T10" "#T30"))
(defmacro canna-hinshi-DOUSHI-check-gobi ()
'(progn
(cannarpc-close-context envd)
(list kanji yomi (canna-hinshi-name hinshi) dic))
(cannarpc-close-context envd)
- (egg-error (cannarpc-get-error-message (- result))))
+ (egg-error "\e$B:o=|$5$l$^$;$s$G$7$?!#\e(B"))
))
;;; setup
;;; Code:
-(require 'cl)
+(eval-when-compile
+ (require 'cl))
+
(require 'egg-edep)
(defgroup its nil
:group 'its :type 'boolean)
(defcustom its-delete-by-keystroke nil
- "*Delete characters as if cancel input keystroke, if nin-NIL."
+ "*Delete characters as if cancel input keystroke, if nin-NIL.
+This variable is overriden by `its-delete-by-character'."
+ :group 'its :type 'boolean)
+
+(defcustom its-delete-by-character nil
+ "*Delete a character as a unit even if just after input, if nin-NIL.
+This variable override `its-delete-by-keystroke'."
:group 'its :type 'boolean)
(defcustom its-fence-invisible nil
(let ((p (point))
(str (copy-sequence "!")))
(set-text-properties 0 1 (list 'read-only t
- 'invisible t
+ 'invisible 'egg
'intangible 'its-part-2
'its-cursor cursor
'point-entered 'egg-enter/leave-fence
(error "invalid fence"))
;; Put open-fence before inhibit-read-only to detect read-only
(insert (if its-context its-fence-continue its-fence-open))
+ (egg-setup-invisibility-spec)
(let ((inhibit-read-only t))
(setq p1 (point))
(add-text-properties p p1 open-props)
(insert its-fence-close)
(add-text-properties p1 (point) close-props)
(if its-fence-invisible
- (put-text-property p (point) 'invisible t))
+ (put-text-property p (point) 'invisible 'egg))
(put-text-property p (point) 'read-only t)
(goto-char p1)
(its-define-select-keys its-mode-map t)
(cursor (get-text-property (point) 'its-cursor)))
(if (null syl)
(signal 'beginning-of-buffer nil)
- (if (eq cursor t)
+ (if (or (eq cursor t) (and cursor its-delete-by-character))
(its-delete-backward-SYL-internal n killflag)
(its-delete-backward-within-SYL syl n killflag)))))
;;; Code:
-(require 'its)
+(eval-when-compile
+ (require 'its)
+ (require 'cl))
(eval-when (compile)
(defconst its-compaction-enable t))
;;; Code:
-(define-charset nil 'japanese-jisx0213
- [2 94 2 0 ?O 0 "JIS X 0213" "JIS X 0213" "JIS X 0213"])
+(unless (charsetp 'japanese-jisx0213-1)
+ (define-charset 151 'japanese-jisx0213-1
+ [2 94 2 0 ?O 0 "JISX0213-1" "JISX0213-1" "JISX0213-1 (Japanese)"]))
+
+(unless (charsetp 'japanese-jisx0213-2)
+ (define-charset 254 'japanese-jisx0213-2
+ [2 94 2 0 ?P 0 "JISX0213-2" "JISX0213-2" "JISX0213-2 (Japanese)"]))