Show
Ignore:
Timestamp:
01/30/09 23:52:02 (16 years ago)
Author:
naoya_t
Message:
 
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/elisp/pdicv-mode/trunk/pdicv-search.el

    r67 r71  
    11;;; pdicv-search.el --- upper layer 
    22;; 
    3 ;; Copyright (C) 2005 Naoya TOZUKA. All Rights Reserved. 
    4 ;; 
    5 ;; Author: Naoya TOZUKA <pdicviewer@gmail.com> 
    6 ;; Maintainer: Naoya TOZUKA <pdicviewer@gmail.com> 
    7 ;; Primary distribution site: http://pdicviewer.naochan.com/el/ 
     3;; Copyright (C) 2005-2009 naoya_t. All Rights Reserved. 
     4;; 
     5;; Author: naoya_t <naoya.t@aqua.plala.or.jp> 
     6;; Maintainer: naoya_t <naoya.t@aqua.plala.or.jp> 
     7;; Primary distribution site: 
     8;;   http://lambdarepos.svnrepository.com/svn/share/lang/elisp/pdicv-mode/trunk 
    89;; 
    910;; Created: 06 Feb 2005 
    1011;; Last modified: 23 Dec 2005 
    11 ;; Version: 0.9.1 
     12;; Version: 0.9.2 
    1213;; Keywords: read-from-file 
    1314 
     
    7374  "" 
    7475;  (pdicv-search dicname nil regexp-to-search t field-to-search) 
    75   (pdicv-search dicname regexp-to-search nil t field-to-search) 
    76   ) 
     76  (pdicv-search dicname regexp-to-search nil t field-to-search)) 
    7777 
    7878(defun pdicv-search-just (dicname word-to-search &optional field-to-search) 
    7979  "" 
    80   (pdicv-search dicname word-to-search t nil field-to-search) 
    81   ) 
     80  (pdicv-search dicname word-to-search t nil field-to-search)) 
    8281 
    8382(defun pdicv-search (dicname word-to-search &optional just-p regexp-p field-to-search) 
     
    8988  (catch 'pdicv-search 
    9089    (let ((candidates 
    91            (if just-p (cons (downcase word-to-search) (nt:english-guess-original-form word-to-search)))) 
     90           (if just-p (cons (downcase word-to-search) (nt:english-guess-original-form word-to-search)) 
     91                         (list word-to-search) 
     92                         )) 
    9293          (candidate word-to-search) 
    9394          (first-round-p t) 
    9495          (dicinfo (assoc dicname pdicv-dictionary-list))) 
    95  
     96          ;;(debug candidates);(nt:english-guess-original-form word-to-search)) 
    9697      (if (null dicinfo) (throw 'pdicv-search 'dictionary-not-found)) 
    9798 
     
    106107              (while dicname-list 
    107108                (pdicv-search (car dicname-list) candidate just-p regexp-p field-to-search) 
    108                 (setq dicname-list (cdr dicname-list)) 
    109                 ) 
    110               ) 
    111                                         ;else... 
     109                (setq dicname-list (cdr dicname-list)))) 
     110                  ;;else... 
    112111          (let* ((encoding-list (nth 2 dicinfo)) 
    113112                 (word-encoding (if (listp encoding-list) (car encoding-list) encoding-list)) 
     
    154153                 );let* 
    155154                                        ;         (insert (format "%s" criteria)) 
    156  
    157155            (pdicv-core-search dicinfo criteria simple-mode-p (not first-round-p)) ; clear only at the first time 
    158156            );let* 
     
    163161    );caught 
    164162  ) 
     163 ;;debug 
    165164 
    166165(defun pdicv-search-interactive ()