1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-26 19:18:50 +00:00
Commit Graph

17 Commits

Author SHA1 Message Date
Eli Zaretskii
67ed6461a6 (thumbs-per-line, thumbs-thumbsdir-max-size)
(thumbs-relief, thumbs-margin, thumbs-image-resizing-step): Fix
:type--it is `integer', not `string'.
2005-06-11 13:25:16 +00:00
Juanma Barranquero
6cae5f240f Fixes for changes of 2005-06-09.
(thumbs-thumbsdir): Force `thumbs-thumbsdir' to be interpretable as a directory.
(thumbs-thumbname): Remove directory separator from format string;
`thumbs-thumbsdir' now returns a valid directory name.
(thumbs-temp-dir): New defsubst.
(thumbs-temp-file, thumbs-resize-image, thumbs-modify-image): Use it.
2005-06-10 14:59:59 +00:00
Juanma Barranquero
f271d3c7bd Don't set `auto-image-file-mode'. Do not create the thumbnails directory on
loading.
(thumbs-conversion-program): Use `eq' to check the system type, not `equal'.
(thumbs-temp-dir): Set to `temporary-file-directory', not "/tmp".  Fix
docstring.
(thumbs-thumbsdir): New function to return the thumbnails directory, creating it
if needed.
(thumbs-cleanup-thumbsdir, thumbs-thumbname): Use it.
(thumbs-temp-file): Delete variable and make it into a function.
(thumbs-resize-image, thumbs-modify-image): Use it.
(thumbs-kill-buffer): Simplify.
(thumbs-gensym): Defalias or duplicate CL `gensym'.
(thumbs-resize-image, thumbs-resize-interactive): Fix typos in docstrings.
2005-06-09 01:41:23 +00:00
Juanma Barranquero
b3c70578e7 (thumbs-thumbsdir-max-size, thumbs-image-resizing-step,
thumbs-thumbsdir-auto-clean): Fix typos in docstrings.
2005-06-06 15:45:11 +00:00
Stefan Monnier
abceae284a (thumbs-mode): Fix misuse of make-variable-buffer-local. 2005-05-31 13:27:27 +00:00
Juanma Barranquero
0df06447d4 (thumbs-thumbname): The resulting thubname includes a hash value to improve its
uniqueness, and has a ".jpg" extension. Also, it is now a valid filename on all
systems.
(thumbs-make-thumb): Use `let', not `let*'.
(thumbs-show-thumbs-list): Check for JPEG availability.
2005-05-30 09:45:11 +00:00
Juanma Barranquero
f75049fca3 (thumbs-thumbsdir-max-size, thumbs-temp-file, thumbs-cleanup-thumbsdir,
thumbs-call-convert, thumbs-resize-interactive, thumbs-insert-image,
thumbs-insert-thumb, thumbs-dired-show-marked, thumbs-find-image-at-point,
thumbs-delete-images, thumbs-rename-images, thumbs-next-image,
thumbs-dired-setroot, thumbs-increment-image-size, thumbs-decrement-image-size):
Fix typos in docstrings.
2005-05-25 14:09:14 +00:00
Werner LEMBERG
932fb767f5 * complete.el, thumbs.el: Replace legal' with valid'. 2005-03-25 09:49:00 +00:00
Kim F. Storm
bf247b6ed0 Change release version from 21.4 to 22.1 throughout.
Change development version from 21.3.50 to 22.0.50.
2005-02-09 15:50:47 +00:00
John Paul Wallington
2b601e1ccd (group thumbs): Add :version keyword. 2004-11-01 08:01:14 +00:00
John Paul Wallington
288f8357fd (thumbs-view-image-mode-map): Fix `thumbs-set-root' command name typo.
(thumbs-view-image-mode): Make buffer read-only.
2004-09-04 18:34:30 +00:00
Richard M. Stallman
0658b86f75 Don't include cl. Don't bother with old Emacs versions.
(thumbs-subst-char-in-string): Deleted.
(thumbs-thumbname): Use subst-char-in-string.
(thumbs-resize-image): Use condition-case, not ignore-errors.
(thumbs-kill-buffer): Likewise.

(thumbs-mode): Make buffer read-only.
(thumbs-make-thumb): Unconditionally accept an existing file.
(thumbs-insert-thumb): Add thumb-image-file property to the image.
(thumbs-do-thumbs-insertion): Be smarter about where to put newlines.
(thumbs-show-thumbs-list): Error if images not supported.
(thumbs-save-current-image): Improve prompt string.
(thumbs-mode-map): Define u, R, x.
(thumbs-unmark): New command.
(thumbs-emboss-image): Minor cleanup.
(thumbs-forward-char, thumbs-backward-char): Skip chars with no image.
(thumbs-rename-images): New command.
(thumbs-show-image-num): Rewrite.  Don't rename the buffer.

(thumbs-current-image): New function.
(thumbs-file-list, thumbs-file-alist): New functions.
(thumbs-find-image): Delete arg L.
Don't set up thumbs-fileL as buffer-local global var.
(thumbs-find-image-at-point): Use thumbs-current-image.
(thumbs-set-image-at-point-to-root-window): Likewise.
(thumbs-delete-images): Use thumbs-current-image, thumbs-file-alist.
Record and warn about errors.  Update thumbs-markedL for deletions.
(thumbs-next-image, thumbs-previous-image): Use thumbs-file-alist.
(thumbs-redraw-buffer): Use thumbs-file-list.
(thumbs-mark): Use thumbs-current-image.
(thumbs-show-name): Use thumbs-current-image.

(thumbs-show-name): Do nothing if no image at point.
(thumbs-mouse-find-image): New command.
(thumbs-mode-map): Bind it to mouse-2.
(thumbs-mode): Make mode-class special.
(thumbs-view-image-mode): Likewise.
2004-05-29 15:22:55 +00:00
John Paul Wallington
d70d59e9d7 (toplevel): Require cl at compile time.
Remove conditional definitions of `ignore-errors' and `caddar'
because they occur at run time.
2004-04-28 23:20:59 +00:00
John Paul Wallington
d42799bd58 (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'.
2004-04-28 16:58:44 +00:00
Juanma Barranquero
d1c4363775 (time-less-p): Remove. 2004-04-27 22:43:35 +00:00
Miles Bader
cb84108b0e Resolve CVS conflicts 2004-02-28 22:45:01 +00:00
Richard M. Stallman
ab6d47ea5f New file. 2004-02-28 17:47:26 +00:00