update packages

This commit is contained in:
2026-06-27 11:34:21 +02:00
parent 4be4f859c4
commit 1aaef48596
246 changed files with 7997 additions and 4359 deletions
+38 -31
View File
@@ -43,15 +43,6 @@
(require 'llama) ; For (##these ...) see M-x describe-function RET # # RET.
(require 'subr-x)
;; For older Emacs releases we depend on an updated `seq' release from
;; GNU ELPA, for `seq-keep'. Unfortunately something else may already
;; have required `seq', before `package' had a chance to put the more
;; recent version earlier on the `load-path'.
(when (and (featurep 'seq)
(not (fboundp 'seq-keep)))
(unload-feature 'seq 'force))
(require 'seq)
(require 'crm)
(require 'magit-section)
@@ -504,6 +495,9 @@ and delay of your graphical environment or operating system."
(heading-highlight-face :initform 'magit-diff-hunk-heading-highlight)
(heading-selection-face :initform 'magit-diff-hunk-heading-selection)))
(defun magit--meta-hunk-p (section)
(not (cdr (oref section value))))
(setf (alist-get 'file magit--section-type-alist) 'magit-file-section)
(setf (alist-get 'module magit--section-type-alist) 'magit-module-section)
(setf (alist-get 'hunk magit--section-type-alist) 'magit-hunk-section)
@@ -824,13 +818,13 @@ ACTION is a member of option `magit-slow-confirm'."
(or (cond ((and (not (eq action t))
(or (eq magit-no-confirm t)
(memq action magit-no-confirm)
(magit--any (pcase-lambda (`(,key ,var . ,sub))
(and (memq key magit-no-confirm)
(memq action sub)
(or (not var)
(and (boundp var)
(symbol-value var)))))
magit--no-confirm-alist)))
(any (pcase-lambda (`(,key ,var . ,sub))
(and (memq key magit-no-confirm)
(memq action sub)
(or (not var)
(and (boundp var)
(symbol-value var)))))
magit--no-confirm-alist)))
(or (not sitems) items))
((not sitems)
(magit-y-or-n-p prompt action))
@@ -917,7 +911,7 @@ match was against a string, then that has to be provided as STRING."
`(let* ((,s ,string)
,@(save-match-data
(seq-keep (lambda (sym)
(cl-incf i)
(incf i)
(and (not (eq (aref (symbol-name sym) 0) ?_))
`(,sym (match-str ,i ,s))))
varlist)))
@@ -1025,12 +1019,6 @@ and return a new string, instead use `magit--remove-text-properties'."
If PROPS is nil, remove all properties."
(magit--delete-text-properties (copy-sequence string) props))
;;; Emacs Compatibility
(static-if (fboundp 'member-if) ; Emacs 31.1
(defalias 'magit--any 'member-if)
(defalias 'magit--any 'cl-member-if))
;;; Kludges for Emacs Bugs
(defun magit-which-function ()
@@ -1042,6 +1030,20 @@ setting `imenu--index-alist' to nil before calling that function."
(setq imenu--index-alist nil)
(which-function))
(static-when (version< emacs-version "31.1")
(define-advice dabbrev-capf (:around (fn) git-commit)
"Backport bugfix from debbug#80645 / a7d05207214 / 31.1.
See #5551, #5556 and #5558 (I wish I had not rushed this)."
(pcase-let ((`(,beg ,end ,table . ,rest) (funcall fn)))
`( ,beg ,end
,(lambda (&rest args)
(condition-case err
(apply table args)
(user-error
(unless (string-prefix-p "No dynamic expansion" (cadr err))
(signal (car err) (cdr err))))))
,@rest))))
;;; Kludges for Custom
(defun magit-custom-initialize-reset (symbol exp)
@@ -1208,11 +1210,12 @@ Like `message', except that `message-log-max' is bound to nil."
(defun magit--find-buffer (&rest plist)
"Like `find-buffer' but take multiple VARIABLE-VALUE pairs."
(seq-find (lambda (buf)
(while (and plist
(equal (buffer-local-value (car plist) buf)
(cadr plist)))
(setq plist (cddr plist)))
(not plist))
(let ((plist plist))
(while (and plist
(equal (buffer-local-value (car plist) buf)
(cadr plist)))
(setq plist (cddr plist)))
(not plist)))
(buffer-list)))
;;; _
@@ -1220,11 +1223,15 @@ Like `message', except that `message-log-max' is bound to nil."
;; Local Variables:
;; read-symbol-shorthands: (
;; ("and$" . "cond-let--and$")
;; ("and>" . "cond-let--and>")
;; ("and-let" . "cond-let--and-let")
;; ("if-let" . "cond-let--if-let")
;; ("thread$" . "cond-let--thread$")
;; ("when$" . "cond-let--when$")
;; ("and-let*" . "cond-let--and-let*")
;; ("and-let" . "cond-let--and-let")
;; ("if-let*" . "cond-let--if-let*")
;; ("if-let" . "cond-let--if-let")
;; ("when-let*" . "cond-let--when-let*")
;; ("when-let" . "cond-let--when-let")
;; ("while-let*" . "cond-let--while-let*")
;; ("while-let" . "cond-let--while-let")
;; ("match-string" . "match-string")
;; ("match-str" . "match-string-no-properties"))