sekka 1.5.3 → 1.5.4

Sign up to get free protection for your applications and to get access to all the features.
data/emacs/sekka.el CHANGED
@@ -27,6 +27,7 @@
27
27
  (require 'http-get)
28
28
  (require 'popup)
29
29
  (require 'url-parse)
30
+ (require 'concurrent)
30
31
 
31
32
  ;;;
32
33
  ;;;
@@ -513,20 +514,20 @@ non-nil で明示的に呼びだすまでGoogleIMEは起動しない。"
513
514
 
514
515
  ;;
515
516
  ;; ユーザー語彙をサーバーに登録する。
516
- ;; only-first が t の時は、1ブロック目だけを登録する
517
517
  (defun sekka-register-userdict-internal (&optional only-first)
518
- (let* ((str (sekka-get-jisyo-str sekka-jisyo-filename))
519
- (str-lst (sekka-divide-into-few-line str)))
520
- (mapcar
521
- (lambda (x)
522
- ;;(message "Requesting to sekka server...")
523
- (sekka-debug-print (format "register [%s]\n" x))
524
- (let ((result (sekka-rest-request "register" `((dict . ,x)))))
525
- (sekka-debug-print (format "register-result:%S\n" result))
526
- (message result)))
527
- (if only-first
528
- (list (car str-lst))
529
- str-lst))
518
+ (lexical-let ((str (sekka-get-jisyo-str sekka-jisyo-filename)))
519
+ (lexical-let ((str-lst (if only-first
520
+ (list (car (sekka-divide-into-few-line str)))
521
+ (sekka-divide-into-few-line str)))
522
+ (x '()))
523
+ (cc:thread 100
524
+ (while (< 0 (length str-lst))
525
+ (setq x (pop str-lst))
526
+ ;;(message "Requesting to sekka server...")
527
+ (sekka-debug-print (format "register [%s]\n" x))
528
+ (lexical-let ((result (sekka-rest-request "register" `((dict . ,x)))))
529
+ (sekka-debug-print (format "register-result:%S\n" result))
530
+ (message result)))))
530
531
  t))
531
532
 
532
533
 
@@ -561,21 +562,7 @@ non-nil で明示的に呼びだすまでGoogleIMEは起動しない。"
561
562
  (while (< 0 (length str-lst))
562
563
  (push
563
564
  (concat
564
- (pop str-lst) "\n" (pop str-lst) "\n" (pop str-lst) "\n" (pop str-lst) "\n" (pop str-lst) "\n"
565
- (pop str-lst) "\n" (pop str-lst) "\n" (pop str-lst) "\n" (pop str-lst) "\n" (pop str-lst) "\n"
566
-
567
- (pop str-lst) "\n" (pop str-lst) "\n" (pop str-lst) "\n" (pop str-lst) "\n" (pop str-lst) "\n"
568
- (pop str-lst) "\n" (pop str-lst) "\n" (pop str-lst) "\n" (pop str-lst) "\n" (pop str-lst) "\n"
569
-
570
- (pop str-lst) "\n" (pop str-lst) "\n" (pop str-lst) "\n" (pop str-lst) "\n" (pop str-lst) "\n"
571
- (pop str-lst) "\n" (pop str-lst) "\n" (pop str-lst) "\n" (pop str-lst) "\n" (pop str-lst) "\n"
572
-
573
- (pop str-lst) "\n" (pop str-lst) "\n" (pop str-lst) "\n" (pop str-lst) "\n" (pop str-lst) "\n"
574
- (pop str-lst) "\n" (pop str-lst) "\n" (pop str-lst) "\n" (pop str-lst) "\n" (pop str-lst) "\n"
575
-
576
- (pop str-lst) "\n" (pop str-lst) "\n" (pop str-lst) "\n" (pop str-lst) "\n" (pop str-lst) "\n"
577
- (pop str-lst) "\n" (pop str-lst) "\n" (pop str-lst) "\n" (pop str-lst) "\n" (pop str-lst) "\n"
578
- )
565
+ (pop str-lst) "\n" (pop str-lst) "\n" (pop str-lst) "\n" (pop str-lst) "\n" (pop str-lst) "\n" )
579
566
  result))
580
567
  (reverse result))
581
568
  '()))
@@ -1650,7 +1637,7 @@ point から行頭方向に同種の文字列が続く間を漢字変換しま
1650
1637
  (setq default-input-method "japanese-sekka")
1651
1638
 
1652
1639
  (defconst sekka-version
1653
- "1.5.3" ;;SEKKA-VERSION
1640
+ "1.5.4" ;;SEKKA-VERSION
1654
1641
  )
1655
1642
  (defun sekka-version (&optional arg)
1656
1643
  "入力モード変更"
@@ -1,4 +1,4 @@
1
1
  class SekkaVersion
2
- def self.version() "1.5.3" end
2
+ def self.version() "1.5.4" end
3
3
  def self.dictVersion() "1.4.0" end
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sekka
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.3
4
+ version: 1.5.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kiyoka Nishiyama
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-05-28 00:00:00.000000000 Z
11
+ date: 2014-06-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: eventmachine
@@ -198,6 +198,8 @@ files:
198
198
  - bin/sekka-jisyo
199
199
  - bin/sekka-path
200
200
  - bin/sekka-server
201
+ - emacs/concurrent.el
202
+ - emacs/deferred.el
201
203
  - emacs/http-cookies.el
202
204
  - emacs/http-get.el
203
205
  - emacs/popup.el