Changeset 1848 for lang/elisp
- Timestamp:
- 11/20/07 20:19:28 (6 years ago)
- Location:
- lang/elisp/simple-hatena-mode
- Files:
-
- 2 added
- 1 modified
- 1 moved
-
. (modified) (1 prop)
-
tags (added)
-
trunk (added)
-
trunk/simple-hatena-mode.el (moved) (moved from lang/elisp/simple-hatena-mode/simple-hatena-mode.el) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lang/elisp/simple-hatena-mode
-
lang/elisp/simple-hatena-mode/trunk/simple-hatena-mode.el
r1829 r1848 38 38 ;;;; * ヴァージョン 39 39 40 (defconst simple-hatena-version "0.1 4"40 (defconst simple-hatena-version "0.15" 41 41 "simple-hatena-mode.elのヴァージョン。") 42 42 … … 295 295 296 296 ;; hatena group 297 (when (y-or-n-p 298 "do the setting of the 'Hatena group' successively? ") 299 (simple-hatena-group-setup)))) 297 (if (y-or-n-p 298 "Set up about `Hatena::Group' next? ") 299 (simple-hatena-group-setup) 300 (message "Enjoy!")))) 300 301 301 302 (defun simple-hatena-setup-check-hatena-bin-exists-p () … … 305 306 (if (y-or-n-p 306 307 (format 307 "`Hatena Diary Writer' not found in %s. Are you sure to continue setup? "308 "`Hatena Diary Writer' not found in %s. Are you sure to continue setup? " 308 309 simple-hatena-bin)) 309 310 t 310 311 (progn 311 312 (when (y-or-n-p 312 "Open the documentation of simple-hatnea-mode in your browser? ")313 "Open the documentation of simple-hatnea-mode in your browser? ") 313 314 (browse-url "http://coderepos.org/share/wiki/SimpleHatenaMode")) 314 315 (message "You must download and install `Hatena Diary Writer' first") … … 329 330 (y-or-n-p 330 331 (format 331 " existing id(s) '%s'.\nsetup other id? "332 "Existing id(s): `%s'\nSet up other id? " 332 333 (mapconcat 'identity 333 ids "', '"))))334 ids "', `")))) 334 335 (add-to-list 335 336 'ids (simple-hatena-read-string-and-match-check 336 337 "Please input your other Hatena id: " 337 338 simple-hatena-id-regex 338 "`%s' is invalid hatena id.")))339 "`%s' is invalid as a Hatena id."))) 339 340 340 341 (dolist (id ids) … … 355 356 356 357 (defun simple-hatena-setup-group () 357 (let 358 (let* 358 359 ((groups (list)) 359 360 (id (condition-case err … … 374 375 (y-or-n-p 375 376 (format 376 " existing group(s) '%s'.\nsetup other group? "377 "Existing group(s): `%s'\nSet up other group? " 377 378 (mapconcat 'identity 378 groups "', '"))))379 groups "', `")))) 379 380 (add-to-list 380 381 'groups (simple-hatena-read-string-and-match-check 381 382 (format 382 "Please input create Hatena group for id:%s :" id)383 "Please input a group name for id:%s: " id) 383 384 simple-hatena-group-regex 384 "`%s' is invalid hatena group.")))385 "`%s' is invalid as a group name."))) 385 386 386 387 (dolist (group groups) 387 388 (if (string-match simple-hatena-group-regex group) 388 389 (simple-hatena-setup-group-create-directory-and-file id group) 389 (message (format "`%s' is invalid hatena group." group))))))390 (message (format "`%s' is invalid as a group name." group)))))) 390 391 391 392 (defun simple-hatena-setup-group-create-directory-and-file (id group) … … 396 397 397 398 (defun simple-hatena-setup-create-directory-and-file (filename) 398 "setup a directory and a file. 399 "Set up a directory and file. 400 399 401 NOTE: Create intermediate directories as required." 400 402 (let … … 408 410 &optional errmsg) 409 411 "Read a string from the minibuffer, prompting with string prompt, 410 and Cheking input value. If non-nil, third args, you can set error message. 411 NOTE: Please refer to `format' for the format of the error message." 412 and Cheking input value. 413 414 If non-nil, third args, you can set error message. 415 416 NOTE: Please refer to `format' for the format of the error 417 message." 412 418 (let 413 419 ((input nil) 414 420 (errmsg (or errmsg 415 " your input is invalid...")))421 "Your input is invalid..."))) 416 422 (while 417 423 (and
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)