comparison lisp/tumme.el @ 68806:3e96b0954fa1

Enhanced some docstrings. Added todo item about the Thumbnail Managing Standard.
author Mathias Dahl <mathias.dahl@gmail.com>
date Sat, 11 Feb 2006 21:30:22 +0000
parents 86813076a765
children 268f839373ee
comparison
equal deleted inserted replaced
68805:35f51c75918e 68806:3e96b0954fa1
514 ;; 514 ;;
515 ;; 515 ;;
516 ;; TODO 516 ;; TODO
517 ;; ==== 517 ;; ====
518 ;; 518 ;;
519 ;; * Look into supporting the Thumbnail Managing Standard, maybe as a
520 ;; configurable option.
521 ;;
519 ;; * Support gallery creation when using per-directory thumbnail 522 ;; * Support gallery creation when using per-directory thumbnail
520 ;; storage. 523 ;; storage.
521 ;; 524 ;;
522 ;; * Some sort of auto-rotate function based on rotate info in the 525 ;; * Some sort of auto-rotate function based on rotate info in the
523 ;; EXIF data. 526 ;; EXIF data.
551 ;; suggested that we could keep C-t as prefix for tumme commands as it 554 ;; suggested that we could keep C-t as prefix for tumme commands as it
552 ;; is currently not used in dired. He also suggested that 555 ;; is currently not used in dired. He also suggested that
553 ;; `dired-next-line' and `dired-previous-line' figure out if tumme is 556 ;; `dired-next-line' and `dired-previous-line' figure out if tumme is
554 ;; enabled in the current buffer and, if it is, call 557 ;; enabled in the current buffer and, if it is, call
555 ;; `tumme-dired-next-line' and `tumme-dired-previous-line', 558 ;; `tumme-dired-next-line' and `tumme-dired-previous-line',
556 ;; respectively. 559 ;; respectively. Update: This is partly done; some bindings have now
560 ;; been added to dired.
557 ;; 561 ;;
558 ;; * Enhanced gallery creation with basic CSS-support and pagination 562 ;; * Enhanced gallery creation with basic CSS-support and pagination
559 ;; of tag pages with many pictures. 563 ;; of tag pages with many pictures.
560 ;; 564 ;;
561 ;; * Rewrite `tumme-modify-mark-on-thumb-original-file' to be less 565 ;; * Rewrite `tumme-modify-mark-on-thumb-original-file' to be less
2363 (tumme-write-comment file comment) 2367 (tumme-write-comment file comment)
2364 (tumme-update-property 'comment comment)) 2368 (tumme-update-property 'comment comment))
2365 (tumme-display-thumb-properties)) 2369 (tumme-display-thumb-properties))
2366 2370
2367 (defun tumme-read-comment (&optional file) 2371 (defun tumme-read-comment (&optional file)
2368 "Read comment, optionally using old comment from FILE as initial value." 2372 "Read comment for an image.
2369 2373 Read comment for an image, optionally using old comment from FILE
2374 as initial value."
2370 (let ((comment 2375 (let ((comment
2371 (read-string 2376 (read-string
2372 "Comment: " 2377 "Comment: "
2373 (if file (tumme-get-comment file))))) 2378 (if file (tumme-get-comment file)))))
2374 comment)) 2379 comment))
2395 (kill-buffer buf) 2400 (kill-buffer buf)
2396 comment))) 2401 comment)))
2397 2402
2398 ;;;###autoload 2403 ;;;###autoload
2399 (defun tumme-mark-tagged-files () 2404 (defun tumme-mark-tagged-files ()
2400 "Use regexp to mark files with matching tag." 2405 "Use regexp to mark files with matching tag.
2406 A `tag' is a keyword, a piece of meta data, associated with an
2407 image file and stored in tumme's database file. This command
2408 lets you input a regexp and this will be matched against all tags
2409 on all image files in the database file. The files that have a
2410 matching tags will be marked in the dired buffer."
2401 (interactive) 2411 (interactive)
2402 (let ((tag (read-string "Mark tagged files (regexp): ")) 2412 (let ((tag (read-string "Mark tagged files (regexp): "))
2403 (hits 0) 2413 (hits 0)
2404 files buf) 2414 files buf)
2405 (save-excursion 2415 (save-excursion