[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/git-commit 728685f7be 2/8: magit-read-range-or-commit: Cos
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/git-commit 728685f7be 2/8: magit-read-range-or-commit: Cosmetics |
Date: |
Tue, 5 Sep 2023 21:59:36 -0400 (EDT) |
branch: elpa/git-commit
commit 728685f7be97d456e1d752b2048c5ac09987b329
Author: Jonas Bernoulli <jonas@bernoul.li>
Commit: Jonas Bernoulli <jonas@bernoul.li>
magit-read-range-or-commit: Cosmetics
Due to an Emacs bug, this is actually uglier than before, but
it is still more important to signal that the value matters.
---
lisp/magit-git.el | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/lisp/magit-git.el b/lisp/magit-git.el
index 8f614da045..37dd31cbc8 100644
--- a/lisp/magit-git.el
+++ b/lisp/magit-git.el
@@ -2595,9 +2595,10 @@ and this option only controls what face is used.")
(defun magit-read-range-or-commit (prompt &optional secondary-default)
(magit-read-range
prompt
- (or (when-let ((revs (magit-region-values '(commit branch) t)))
- (deactivate-mark)
- (concat (car (last revs)) ".." (car revs)))
+ (or (and-let* ((revs (magit-region-values '(commit branch) t)))
+ (progn ; work around debbugs#31840
+ (deactivate-mark)
+ (concat (car (last revs)) ".." (car revs))))
(magit-branch-or-commit-at-point)
secondary-default
(magit-get-current-branch))))
- [nongnu] elpa/git-commit updated (a3b9b00702 -> 27099441a0), ELPA Syncer, 2023/09/05
- [nongnu] elpa/git-commit 4a701c1bdc 3/8: magit-split-range: Handle edge-cases, ELPA Syncer, 2023/09/05
- [nongnu] elpa/git-commit 363e5acffe 5/8: magit-thingatpt--git-revision: Trim parentheses and punctuation, ELPA Syncer, 2023/09/05
- [nongnu] elpa/git-commit 728685f7be 2/8: magit-read-range-or-commit: Cosmetics,
ELPA Syncer <=
- [nongnu] elpa/git-commit 88f4b93b10 1/8: magit-patch-create: Improve a prompt, ELPA Syncer, 2023/09/05
- [nongnu] elpa/git-commit 8220f94b82 4/8: magit-hash-range: Properly validate, ELPA Syncer, 2023/09/05
- [nongnu] elpa/git-commit ec95f00b1b 6/8: magit-thingatpt--git-revision: Filter out some mismatches, ELPA Syncer, 2023/09/05
- [nongnu] elpa/git-commit a3b7cdc486 7/8: git-revision-range: New thing-at-point type, ELPA Syncer, 2023/09/05
- [nongnu] elpa/git-commit 27099441a0 8/8: Offer textual range at point as next history element, ELPA Syncer, 2023/09/05