update packages
This commit is contained in:
22
lisp/amx.el
22
lisp/amx.el
@@ -8,8 +8,8 @@
|
||||
;; Cornelius Mika <cornelius.mika@gmail.com>
|
||||
;; Maintainer: Ryan C. Thompson <rct@thompsonclan.org>
|
||||
;; URL: http://github.com/DarwinAwardWinner/amx/
|
||||
;; Package-Version: 20200701.2108
|
||||
;; Package-Commit: ccfc92c600df681df5e8b5fecec328c462ceb71e
|
||||
;; Package-Version: 20210101.1921
|
||||
;; Package-Commit: b99149715266b5c2c48f5a0fc43716d36575da5f
|
||||
;; Package-Requires: ((emacs "24.4") (s "0"))
|
||||
;; Version: 3.3
|
||||
;; Keywords: convenience, usability
|
||||
@@ -187,10 +187,7 @@ periodic updates will be performed."
|
||||
(defun amx-set-save-file (symbol value)
|
||||
"Custom setter for `amx-save-file'.
|
||||
|
||||
Arguments are the same as in `set-default'.
|
||||
|
||||
This function will refuse to set the backend unless it can load
|
||||
the associated feature, if any."
|
||||
Arguments are the same as in `set-default'."
|
||||
(cl-assert (eq symbol 'amx-save-file))
|
||||
(let ((old-value (when (boundp symbol) (symbol-value symbol))))
|
||||
(set-default symbol value)
|
||||
@@ -200,14 +197,21 @@ the associated feature, if any."
|
||||
(when (bound-and-true-p amx-initialized)
|
||||
(amx-initialize t))
|
||||
;; If the new save file doesn't exist but the old one does, copy
|
||||
;; the old file to the new location.
|
||||
;; the old file to the new location. In this case we don't need
|
||||
;; to re-initialize, because the contents of the file have not
|
||||
;; changed.
|
||||
(when (and old-value (file-exists-p old-value))
|
||||
(copy-file old-value value)))))
|
||||
|
||||
(defcustom amx-save-file (locate-user-emacs-file "amx-items" ".amx-items")
|
||||
"File in which the amx state is saved between Emacs sessions.
|
||||
|
||||
Variables stored are: `amx-data', `amx-history'."
|
||||
Variables stored are: `amx-data', `amx-history'.
|
||||
|
||||
When changing this variable through Custom, amx will check for an
|
||||
already-existing file at the new path. If it exists, amx will
|
||||
re-initialize using this file. Otherwise, it will copy the
|
||||
current save file from the old location to the new one."
|
||||
:type '(choice (string :tag "File name")
|
||||
(const :tag "Don't save" nil))
|
||||
:set #'amx-set-save-file)
|
||||
@@ -629,6 +633,8 @@ May not work for things like ido and ivy."
|
||||
:history extended-command-history
|
||||
:reverse-history t
|
||||
:must-match t
|
||||
:fuzzy (or (bound-and-true-p helm-mode-fuzzy-match)
|
||||
(bound-and-true-p helm-M-x-fuzzy-match))
|
||||
:keymap (make-composed-keymap amx-map helm-comp-read-map)))
|
||||
|
||||
(amx-define-backend
|
||||
|
||||
Reference in New Issue
Block a user