[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/git-commit 91e6698435 10/12: Avoid loading bookmark upfron
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/git-commit 91e6698435 10/12: Avoid loading bookmark upfront |
Date: |
Fri, 13 May 2022 10:58:11 -0400 (EDT) |
branch: elpa/git-commit
commit 91e6698435b9aadb89620d443444d2ec34a5efce
Author: Jonas Bernoulli <jonas@bernoul.li>
Commit: Jonas Bernoulli <jonas@bernoul.li>
Avoid loading bookmark upfront
---
lisp/magit-mode.el | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/lisp/magit-mode.el b/lisp/magit-mode.el
index 132ea615f6..7956e8565a 100644
--- a/lisp/magit-mode.el
+++ b/lisp/magit-mode.el
@@ -31,7 +31,6 @@
(require 'magit-base)
(require 'magit-git)
-(require 'bookmark)
(require 'format-spec)
(require 'help-mode)
(require 'transient)
@@ -1480,11 +1479,18 @@ mentioned caches completely."
;;; Bookmark support
+(declare-function bookmark-get-filename "bookmark" (bookmark-name-or-record))
+(declare-function bookmark-make-record-default "bookmark"
+ (&optional no-file no-context posn))
+(declare-function bookmark-prop-get "bookmark" (bookmark-name-or-record prop))
+(declare-function bookmark-prop-set "bookmark" (bookmark-name-or-record prop
val))
+
(defun magit--make-bookmark ()
"Create a bookmark for the current Magit buffer.
Input values are the major-mode's `magit-bookmark-name' method,
and the buffer-local values of the variables referenced in its
`magit-bookmark-variables' property."
+ (require 'bookmark)
(if (plist-member (symbol-plist major-mode) 'magit-bookmark-variables)
;; `bookmark-make-record-default's return value does not match
;; (NAME . ALIST), even though it is used as the default value
- [nongnu] elpa/git-commit updated (aff4180479 -> 8269af107f), ELPA Syncer, 2022/05/13
- [nongnu] elpa/git-commit 466bf542b0 02/12: Remove unnecessary declare-function, ELPA Syncer, 2022/05/13
- [nongnu] elpa/git-commit 91e6698435 10/12: Avoid loading bookmark upfront,
ELPA Syncer <=
- [nongnu] elpa/git-commit ccb0de02ad 01/12: magit--disable-save-buffers: Renamed variable, ELPA Syncer, 2022/05/13
- [nongnu] elpa/git-commit c42b09f987 04/12: magit-section-get-relative-position: Rename and move, ELPA Syncer, 2022/05/13
- [nongnu] elpa/git-commit 69327510e2 07/12: magit-section-goto-successor: Cosmetics, ELPA Syncer, 2022/05/13
- [nongnu] elpa/git-commit 7c45ae83ac 08/12: Add magit-process-unset-mode-line-error-status to hook, ELPA Syncer, 2022/05/13
- [nongnu] elpa/git-commit 67352a64b5 11/12: magit--toplevel-safe: New function, ELPA Syncer, 2022/05/13
- [nongnu] elpa/git-commit 8269af107f 12/12: magit-generate-new-buffer: Determine appropriate default-directory, ELPA Syncer, 2022/05/13
- [nongnu] elpa/git-commit 208dbd5689 06/12: magit-section-goto-successor: Define as generic function, ELPA Syncer, 2022/05/13
- [nongnu] elpa/git-commit 8ea1df1cd0 03/12: Wrap git-commit-mode with bound-and-true-p, ELPA Syncer, 2022/05/13
- [nongnu] elpa/git-commit e733c8d1aa 05/12: magit-section-get-relative-position: Define as generic function, ELPA Syncer, 2022/05/13
- [nongnu] elpa/git-commit 2276f6bcce 09/12: Move core bookmark support to magit-mode.el, ELPA Syncer, 2022/05/13