| 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)))))) |