# HG changeset patch # User John Paul Wallington # Date 1083171368 0 # Node ID a911edb6dadf61aa3b36ffe4a1a80ecefe01b899 # Parent 8ce686bd7f4f26c3670cf10c42bdb90646874c37 (thumbs-delete-images): Fix formatting of prompt. (thumbs-show-image-num): Move assignment of `thumbs-current-image-filename' within dynamic scope of `i'. (thumbs-emboss-image): Don't use `evenp'. diff -r 8ce686bd7f4f -r a911edb6dadf lisp/thumbs.el --- a/lisp/thumbs.el Wed Apr 28 12:48:45 2004 +0000 +++ b/lisp/thumbs.el Wed Apr 28 16:56:08 2004 +0000 @@ -504,7 +504,7 @@ "Delete the image at point (and it's thumbnail) (or marked files if any)." (interactive) (let ((f (or thumbs-markedL (list (cdr (assoc (point) thumbs-fileL)))))) - (if (yes-or-no-p "Really delete %d files?" (length f)) + (if (yes-or-no-p (format "Really delete %d files? " (length f))) (progn (mapcar (lambda (x) (setq thumbs-fileL (delete (rassoc x thumbs-fileL) thumbs-fileL)) @@ -529,9 +529,9 @@ (rename-buffer (concat "*Image: " (file-name-nondirectory i) " - " - (number-to-string num) "*"))) - (setq thumbs-image-num num - thumbs-current-image-filename i))) + (number-to-string num) "*")) + (setq thumbs-image-num num + thumbs-current-image-filename i)))) (defun thumbs-next-image () "Show next image." @@ -597,7 +597,7 @@ (defun thumbs-emboss-image (emboss) "Emboss the image with value EMBOSS." (interactive "nEmboss value: ") - (if (or (< emboss 3)(> emboss 31)(evenp emboss)) + (if (or (< emboss 3) (> emboss 31) (zerop (logand emboss 1))) (error "Arg must be a odd number between 3 and 31")) (thumbs-modify-image "emboss" (number-to-string emboss)))