mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-05 22:20:24 -08:00
Merge from origin/emacs-29
0ec9a02a0d; Fix doc strings of two scroll-bar functions.2f8bccf9d8; * doc/emacs/frames.texi (Scroll Bars): Improve formatting.f9832e80b8; * lisp/textmodes/ispell.el (ispell-message): Add commen...a7d247be90; * etc/PROBLEMS: Document macOS problems with Emacs.clr ...8560ee7b5c; * doc/misc/auth.texi (The Unix password store): Fix var...74c6b59af1; Advertise scroll bars some more3d65d4306bAvoid errors in 'image-dired-tag-thumbnail'
This commit is contained in:
commit
48c9285c19
8 changed files with 57 additions and 32 deletions
|
|
@ -32,8 +32,6 @@
|
|||
|
||||
(require 'image-dired-util)
|
||||
|
||||
(declare-function image-dired--with-marked "image-dired")
|
||||
|
||||
(defvar image-dired-dir)
|
||||
(defvar image-dired-thumbnail-storage)
|
||||
(defvar image-dired-tags-db-file)
|
||||
|
|
@ -156,18 +154,6 @@ With prefix ARG, tag the file at point."
|
|||
(cons x tag))
|
||||
files))))
|
||||
|
||||
(defun image-dired-tag-thumbnail ()
|
||||
"Tag current or marked thumbnails."
|
||||
(interactive nil image-dired-thumbnail-mode)
|
||||
(let ((tag (completing-read
|
||||
"Tags to add (separate tags with a semicolon): "
|
||||
image-dired-tag-history nil nil nil 'image-dired-tag-history)))
|
||||
(image-dired--with-marked
|
||||
(image-dired-write-tags
|
||||
(list (cons (image-dired-original-file-name) tag)))
|
||||
(image-dired-update-property
|
||||
'tags (image-dired-list-tags (image-dired-original-file-name))))))
|
||||
|
||||
;;;###autoload
|
||||
(defun image-dired-delete-tag (arg)
|
||||
"Remove tag for selected file(s).
|
||||
|
|
@ -181,16 +167,6 @@ With prefix argument ARG, remove tag from file at point."
|
|||
(setq files (dired-get-marked-files)))
|
||||
(image-dired-remove-tag files tag)))
|
||||
|
||||
(defun image-dired-tag-thumbnail-remove ()
|
||||
"Remove tag from current or marked thumbnails."
|
||||
(interactive nil image-dired-thumbnail-mode)
|
||||
(let ((tag (completing-read "Tag to remove: " image-dired-tag-history
|
||||
nil nil nil 'image-dired-tag-history)))
|
||||
(image-dired--with-marked
|
||||
(image-dired-remove-tag (image-dired-original-file-name) tag)
|
||||
(image-dired-update-property
|
||||
'tags (image-dired-list-tags (image-dired-original-file-name))))))
|
||||
|
||||
(defun image-dired-write-comments (file-comments)
|
||||
"Write file comments specified by FILE-COMMENTS comments to database.
|
||||
FILE-COMMENTS is an alist on the following form:
|
||||
|
|
|
|||
|
|
@ -1757,6 +1757,28 @@ Dired."
|
|||
(cons (list tag file) (cdr image-dired-tag-file-list))))
|
||||
(setq image-dired-tag-file-list (list (list tag file))))))
|
||||
|
||||
(defun image-dired-tag-thumbnail-remove ()
|
||||
"Remove tag from current or marked thumbnails."
|
||||
(interactive nil image-dired-thumbnail-mode)
|
||||
(let ((tag (completing-read "Tag to remove: " image-dired-tag-history
|
||||
nil nil nil 'image-dired-tag-history)))
|
||||
(image-dired--with-marked
|
||||
(image-dired-remove-tag (image-dired-original-file-name) tag)
|
||||
(image-dired-update-property
|
||||
'tags (image-dired-list-tags (image-dired-original-file-name))))))
|
||||
|
||||
(defun image-dired-tag-thumbnail ()
|
||||
"Tag current or marked thumbnails."
|
||||
(interactive nil image-dired-thumbnail-mode)
|
||||
(let ((tag (completing-read
|
||||
"Tags to add (separate tags with a semicolon): "
|
||||
image-dired-tag-history nil nil nil 'image-dired-tag-history)))
|
||||
(image-dired--with-marked
|
||||
(image-dired-write-tags
|
||||
(list (cons (image-dired-original-file-name) tag)))
|
||||
(image-dired-update-property
|
||||
'tags (image-dired-list-tags (image-dired-original-file-name))))))
|
||||
|
||||
(defvar image-dired-slideshow-count 0
|
||||
"Keeping track on number of images in slideshow.")
|
||||
(make-obsolete-variable 'image-dired-slideshow-count "no longer used." "29.1")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue