(setq curr-file (file-name-nondirectory curr-file))
(goto-char (point-min))
(when (search-forward-regexp (format "\\s %s[*@]?$" (regexp-quote curr-file)) nil t)
- (setq hits (+ hits 1))
+ (incf hits)
(dired-mark 1))))
(message "%d files with matching tag marked" hits)))
(setq tag-link-list
(append tag-link-list (list (cons tag tag-link))))
(setq tag-link-list (list (cons tag tag-link))))
- (setq count (1+ count))))
+ (incf count)))
(setq count 1)
;; Main loop where we generated thumbnail pages per tag
(dolist (curr tags)
(insert " <p><a href=\"index.html\">Index</a></p>\n")
(insert " </body>\n")
(insert "</html>\n"))
- (setq count (1+ count))))
+ (incf count)))
(insert " </body>\n")
(insert "</html>"))))
;; (format "Size of thumbnail directory: %d, delete old file %s? "
;; dirsize (cadr (cdar files))))
;; (delete-file (cadr (cdar files)))
-;; (setq dirsize (- dirsize (car (cdar files))))
+;; (decf dirsize (car (cdar files)))
;; (setq files (cdr files)))))
(provide 'image-dired)