update packages
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
;;; org-screenshot.el --- Take and manage screenshots in Org-mode files
|
||||
;;; org-screenshot.el --- Take and manage screenshots in Org-mode files -*- lexical-binding: t; -*-
|
||||
;;
|
||||
;; Copyright (C) 2009-2021 Free Software Foundation, Inc.
|
||||
;;
|
||||
@@ -344,10 +344,10 @@ by most recent first"
|
||||
(lambda (file1 file2)
|
||||
(let ((mtime1 (nth 5 (file-attributes file1)))
|
||||
(mtime2 (nth 5 (file-attributes file2))))
|
||||
(setq mtime1 (+ (ash (first mtime1) 16)
|
||||
(second mtime1)))
|
||||
(setq mtime2 (+ (ash (first mtime2) 16)
|
||||
(second mtime2)))
|
||||
(setq mtime1 (+ (ash (cl-first mtime1) 16)
|
||||
(cl-second mtime1)))
|
||||
(setq mtime2 (+ (ash (cl-first mtime2) 16)
|
||||
(cl-second mtime2)))
|
||||
(> mtime1 mtime2)))))))
|
||||
(let ((n -1) (list org-screenshot-file-list))
|
||||
(while (and list (not (equal (pop list) lastfile)))
|
||||
@@ -507,7 +507,7 @@ entered, at which point event will be unread"
|
||||
(substring (image-file-name-regexp) 0 -2)
|
||||
"\\)\\]"))
|
||||
(case-fold-search t)
|
||||
old file ov img type attrwidth width)
|
||||
file)
|
||||
(while (re-search-forward re end t)
|
||||
(setq file (concat (or (match-string 3) "") (match-string 4)))
|
||||
(when (and (file-exists-p file)
|
||||
@@ -518,12 +518,13 @@ entered, at which point event will be unread"
|
||||
(setq dired-buffer (dired-noselect (org-screenshot-image-directory)))
|
||||
(with-current-buffer dired-buffer
|
||||
(dired-unmark-all-files ?\r)
|
||||
(dired-mark-if
|
||||
(let ((file (dired-get-filename 'no-dir t)))
|
||||
(and file (string-match image-re file)
|
||||
(not (member file files-in-buffer))
|
||||
(setq had-any t)))
|
||||
"Unused screenshot"))
|
||||
(ignore
|
||||
(dired-mark-if
|
||||
(let ((file (dired-get-filename 'no-dir t)))
|
||||
(and file (string-match image-re file)
|
||||
(not (member file files-in-buffer))
|
||||
(setq had-any t)))
|
||||
"Unused screenshot")))
|
||||
(when had-any (pop-to-buffer dired-buffer))))
|
||||
|
||||
(provide 'org-screenshot)
|
||||
|
||||
Reference in New Issue
Block a user