Changeset 2819

Show
Ignore:
Timestamp:
12/08/07 01:41:18 (5 years ago)
Author:
elim
Message:

lang/elisp/simple-hatena-mode: search for 'simple-hatena-bin' from exec-path.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/elisp/simple-hatena-mode/trunk/simple-hatena-mode.el

    r2162 r2819  
    301301 
    302302(defun simple-hatena-setup-check-hatena-bin-exists-p () 
    303   (if (file-executable-p simple-hatena-bin) 
    304       t 
    305     (progn 
    306       (if (y-or-n-p 
    307            (format 
    308             "`Hatena Diary Writer' not found in %s. Are you sure to continue setup? " 
    309             simple-hatena-bin)) 
    310           t 
    311         (progn 
    312           (when (y-or-n-p 
    313                  "Open the documentation of simple-hatnea-mode in your browser? ") 
    314             (browse-url "http://coderepos.org/share/wiki/SimpleHatenaMode")) 
    315           (message "You must download and install `Hatena Diary Writer' first") 
    316           nil))))) 
     303  (let 
     304      ((simple-hatena-bin-full-path 
     305        (locate-library simple-hatena-bin t exec-path))) 
     306    (if (and 
     307         simple-hatena-bin-full-path 
     308         (file-executable-p simple-hatena-bin-full-path)) 
     309        t 
     310      (progn 
     311        (if (y-or-n-p 
     312             (format 
     313              "`Hatena Diary Writer' not found in %s. Are you sure to continue setup? " 
     314              simple-hatena-bin)) 
     315            t 
     316          (progn 
     317            (when (y-or-n-p 
     318                   "Open the documentation of simple-hatnea-mode in your browser? ") 
     319              (browse-url "http://coderepos.org/share/wiki/SimpleHatenaMode")) 
     320            (message "You must download and install `Hatena Diary Writer' first") 
     321            nil)))))) 
    317322 
    318323(defun simple-hatena-setup-id ()