diff options
| author | Eli Zaretskii | 2024-05-11 06:50:56 -0400 |
|---|---|---|
| committer | Eli Zaretskii | 2024-05-11 06:50:56 -0400 |
| commit | 48c9285c19ffa484fc5163c55eca5a9f3ef41cc7 (patch) | |
| tree | 25d48db21cea72224758ecc225d6116723b565d4 /lisp/image | |
| parent | 6380806196f3806b6c2bff60ff6cddae3eee2a19 (diff) | |
| parent | 0ec9a02a0d5da108ccefe32dd37b066bae357334 (diff) | |
| download | emacs-48c9285c19ffa484fc5163c55eca5a9f3ef41cc7.tar.gz emacs-48c9285c19ffa484fc5163c55eca5a9f3ef41cc7.zip | |
Merge from origin/emacs-29
0ec9a02a0d5 ; Fix doc strings of two scroll-bar functions.
2f8bccf9d8c ; * doc/emacs/frames.texi (Scroll Bars): Improve formatting.
f9832e80b89 ; * lisp/textmodes/ispell.el (ispell-message): Add commen...
a7d247be90c ; * etc/PROBLEMS: Document macOS problems with Emacs.clr ...
8560ee7b5ca ; * doc/misc/auth.texi (The Unix password store): Fix var...
74c6b59af15 ; Advertise scroll bars some more
3d65d4306b9 Avoid errors in 'image-dired-tag-thumbnail'
Diffstat (limited to 'lisp/image')
| -rw-r--r-- | lisp/image/image-dired-tags.el | 24 | ||||
| -rw-r--r-- | lisp/image/image-dired.el | 22 |
2 files changed, 22 insertions, 24 deletions
diff --git a/lisp/image/image-dired-tags.el b/lisp/image/image-dired-tags.el index 2b5248cb14b..54595adc147 100644 --- a/lisp/image/image-dired-tags.el +++ b/lisp/image/image-dired-tags.el | |||
| @@ -32,8 +32,6 @@ | |||
| 32 | 32 | ||
| 33 | (require 'image-dired-util) | 33 | (require 'image-dired-util) |
| 34 | 34 | ||
| 35 | (declare-function image-dired--with-marked "image-dired") | ||
| 36 | |||
| 37 | (defvar image-dired-dir) | 35 | (defvar image-dired-dir) |
| 38 | (defvar image-dired-thumbnail-storage) | 36 | (defvar image-dired-thumbnail-storage) |
| 39 | (defvar image-dired-tags-db-file) | 37 | (defvar image-dired-tags-db-file) |
| @@ -156,18 +154,6 @@ With prefix ARG, tag the file at point." | |||
| 156 | (cons x tag)) | 154 | (cons x tag)) |
| 157 | files)))) | 155 | files)))) |
| 158 | 156 | ||
| 159 | (defun image-dired-tag-thumbnail () | ||
| 160 | "Tag current or marked thumbnails." | ||
| 161 | (interactive nil image-dired-thumbnail-mode) | ||
| 162 | (let ((tag (completing-read | ||
| 163 | "Tags to add (separate tags with a semicolon): " | ||
| 164 | image-dired-tag-history nil nil nil 'image-dired-tag-history))) | ||
| 165 | (image-dired--with-marked | ||
| 166 | (image-dired-write-tags | ||
| 167 | (list (cons (image-dired-original-file-name) tag))) | ||
| 168 | (image-dired-update-property | ||
| 169 | 'tags (image-dired-list-tags (image-dired-original-file-name)))))) | ||
| 170 | |||
| 171 | ;;;###autoload | 157 | ;;;###autoload |
| 172 | (defun image-dired-delete-tag (arg) | 158 | (defun image-dired-delete-tag (arg) |
| 173 | "Remove tag for selected file(s). | 159 | "Remove tag for selected file(s). |
| @@ -181,16 +167,6 @@ With prefix argument ARG, remove tag from file at point." | |||
| 181 | (setq files (dired-get-marked-files))) | 167 | (setq files (dired-get-marked-files))) |
| 182 | (image-dired-remove-tag files tag))) | 168 | (image-dired-remove-tag files tag))) |
| 183 | 169 | ||
| 184 | (defun image-dired-tag-thumbnail-remove () | ||
| 185 | "Remove tag from current or marked thumbnails." | ||
| 186 | (interactive nil image-dired-thumbnail-mode) | ||
| 187 | (let ((tag (completing-read "Tag to remove: " image-dired-tag-history | ||
| 188 | nil nil nil 'image-dired-tag-history))) | ||
| 189 | (image-dired--with-marked | ||
| 190 | (image-dired-remove-tag (image-dired-original-file-name) tag) | ||
| 191 | (image-dired-update-property | ||
| 192 | 'tags (image-dired-list-tags (image-dired-original-file-name)))))) | ||
| 193 | |||
| 194 | (defun image-dired-write-comments (file-comments) | 170 | (defun image-dired-write-comments (file-comments) |
| 195 | "Write file comments specified by FILE-COMMENTS comments to database. | 171 | "Write file comments specified by FILE-COMMENTS comments to database. |
| 196 | FILE-COMMENTS is an alist on the following form: | 172 | FILE-COMMENTS is an alist on the following form: |
diff --git a/lisp/image/image-dired.el b/lisp/image/image-dired.el index 9eb68e240fe..ca808bcb5ab 100644 --- a/lisp/image/image-dired.el +++ b/lisp/image/image-dired.el | |||
| @@ -1757,6 +1757,28 @@ Dired." | |||
| 1757 | (cons (list tag file) (cdr image-dired-tag-file-list)))) | 1757 | (cons (list tag file) (cdr image-dired-tag-file-list)))) |
| 1758 | (setq image-dired-tag-file-list (list (list tag file)))))) | 1758 | (setq image-dired-tag-file-list (list (list tag file)))))) |
| 1759 | 1759 | ||
| 1760 | (defun image-dired-tag-thumbnail-remove () | ||
| 1761 | "Remove tag from current or marked thumbnails." | ||
| 1762 | (interactive nil image-dired-thumbnail-mode) | ||
| 1763 | (let ((tag (completing-read "Tag to remove: " image-dired-tag-history | ||
| 1764 | nil nil nil 'image-dired-tag-history))) | ||
| 1765 | (image-dired--with-marked | ||
| 1766 | (image-dired-remove-tag (image-dired-original-file-name) tag) | ||
| 1767 | (image-dired-update-property | ||
| 1768 | 'tags (image-dired-list-tags (image-dired-original-file-name)))))) | ||
| 1769 | |||
| 1770 | (defun image-dired-tag-thumbnail () | ||
| 1771 | "Tag current or marked thumbnails." | ||
| 1772 | (interactive nil image-dired-thumbnail-mode) | ||
| 1773 | (let ((tag (completing-read | ||
| 1774 | "Tags to add (separate tags with a semicolon): " | ||
| 1775 | image-dired-tag-history nil nil nil 'image-dired-tag-history))) | ||
| 1776 | (image-dired--with-marked | ||
| 1777 | (image-dired-write-tags | ||
| 1778 | (list (cons (image-dired-original-file-name) tag))) | ||
| 1779 | (image-dired-update-property | ||
| 1780 | 'tags (image-dired-list-tags (image-dired-original-file-name)))))) | ||
| 1781 | |||
| 1760 | (defvar image-dired-slideshow-count 0 | 1782 | (defvar image-dired-slideshow-count 0 |
| 1761 | "Keeping track on number of images in slideshow.") | 1783 | "Keeping track on number of images in slideshow.") |
| 1762 | (make-obsolete-variable 'image-dired-slideshow-count "no longer used." "29.1") | 1784 | (make-obsolete-variable 'image-dired-slideshow-count "no longer used." "29.1") |