Develop and Download Open Source Software

Browse CVS Repository

Diff of /kogiku/kogiku/kogiku.el

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.29 by shirai, Mon Feb 16 15:18:47 2004 UTC revision 1.30 by shirai, Fri Feb 25 09:24:15 2005 UTC
# Line 237  minibufferに制御が移ったときに`minibuffe Line 237  minibufferに制御が移ったときに`minibuffe
237                       (t                       (t
238                        (kogiku-migemo-get-pattern (file-name-nondirectory string))))                        (kogiku-migemo-get-pattern (file-name-nondirectory string))))
239                      "\\)")))                      "\\)")))
240             (ignore-pattern (format "\\(%s\\)$"
241                                     (mapconcat 'regexp-quote completion-ignored-extensions "\\|")))
242           (candidates (delete nil           (candidates (delete nil
243                              (mapcar                               (mapcar
244                               (lambda (f)                                (lambda (f)
245                                 (if (string-match pattern f)                                  (when (string-match pattern f)
246                                     (if (file-directory-p (expand-file-name f dir))                                    (when (file-directory-p (expand-file-name f dir))
247                                         ;; ディレクトリは / で終わるように                                      ;; ディレクトリは / で終わるように
248                                         (file-name-as-directory f)                                      (setq f (file-name-as-directory f)))
249                                       f)))                                    (and (not (string-match ignore-pattern f)) f)))
250                               files)))                                files)))
251           (count (length candidates))           count common)
          common)  
252      (if all      (if all
253          candidates          candidates
254          (when (and (string= string "")
255                     (= (length files) 3))
256            (setq candidates
257                  (delete-if (lambda (f) (string-match "\\.\\.?/" f))
258                             candidates)))
259          (setq count (length candidates))
260        (cond        (cond
261         ((eq count 0) nil)         ((eq count 0) nil)
262         ((eq count 1) (let ((candidate (car candidates)))         ((eq count 1) (let ((candidate (car candidates)))

Legend:
Removed from v.1.29  
changed lines
  Added in v.1.30

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26