update packages

This commit is contained in:
2021-01-08 19:32:30 +01:00
parent ce8f24d28a
commit f5649dceab
467 changed files with 26642 additions and 22487 deletions

View File

@@ -27,8 +27,8 @@
;; POSSIBILITY OF SUCH DAMAGE.
;;; Version: 0.8
;; Package-Version: 20200515.1513
;; Package-Commit: fca9ea05ef4fdac825e2ad3921baa7042f6b82c8
;; Package-Version: 20210101.1519
;; Package-Commit: c4af44827f4257e7619e63abfd22094a29a9ab52
;;; Author: Jason R. Blevins <jrblevin@xbeta.org>
;;; Keywords: plain text, notes, Simplenote, Notational Velocity
;;; URL: https://jblevins.org/projects/deft/
@@ -548,7 +548,7 @@
;;; Code:
(require 'cl)
(require 'cl-lib)
(require 'widget)
(require 'wid-edit)
@@ -1367,7 +1367,7 @@ name."
(fmt (concat slug "_%d"))
(counter 1)
(file (deft-absolute-filename slug)))
(while (or (file-exists-p file) (get-file-buffer file))
(while (or (file-exists-p file) (get-file-buffer (file-truename file)))
(setq counter (1+ counter))
(setq slug (format fmt counter))
(setq file (deft-absolute-filename slug)))
@@ -1375,9 +1375,9 @@ name."
(defun deft-update-visiting-buffers (old new)
"Rename visited file of buffers visiting file OLD to NEW."
(let ((buffer (get-file-buffer old)))
(let ((buffer (get-file-buffer (file-truename old))))
(when buffer
(with-current-buffer (get-file-buffer old)
(with-current-buffer (get-file-buffer (file-truename old))
(set-visited-file-name new nil t)
(hack-local-variables)))))
@@ -1386,7 +1386,7 @@ name."
When OTHER is non-nil, open the file in another window. When
OTHER and SWITCH are both non-nil, switch to the other window.
FILE must be a relative or absolute path, with extension."
(let ((buffer (find-file-noselect file)))
(let ((buffer (find-file-noselect (file-truename file))))
(with-current-buffer buffer
(hack-local-variables)
(when deft-filter-regexp
@@ -1456,7 +1456,7 @@ SLUG is the short file name, without a path or a file extension."
(deft-cache-update-file file)
(deft-refresh-filter)
(deft-open-file file)
(with-current-buffer (get-file-buffer file)
(with-current-buffer (get-file-buffer (file-truename file))
(goto-char (point-max))))))
;;;###autoload
@@ -1498,7 +1498,7 @@ proceeding."
(when filename
(when (y-or-n-p
(concat "Delete file " (file-name-nondirectory filename) "? "))
(let ((buffer (get-file-buffer filename)))
(let ((buffer (get-file-buffer (file-truename filename))))
(when buffer (kill-buffer buffer)))
(delete-file filename)
(delq filename deft-current-files)
@@ -1576,7 +1576,7 @@ all elements."
(when title (insert title))
(when contents (insert contents)))
(if batch
(if (every (lambda (filter)
(if (cl-every (lambda (filter)
(goto-char (point-min))
(deft-search-forward filter))
deft-filter-regexp)
@@ -1859,7 +1859,6 @@ Turning on `deft-mode' runs the hook `deft-mode-hook'.
(provide 'deft)
;; Local Variables:
;; byte-compile-warnings: (not cl-functions)
;; indent-tabs-mode: nil
;; End: