aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Kangas2025-03-10 20:33:47 +0100
committerStefan Kangas2025-03-10 20:35:28 +0100
commitbab17c7fb5161d3ed4820bf51d0cec6ee1cbb525 (patch)
tree6b5dc4510e8633e6e8f61d192e167f0b6a9e8a3f
parentfd4de89460e20a1bbe0229f2e8c125f9f33bb088 (diff)
downloademacs-bab17c7fb5161d3ed4820bf51d0cec6ee1cbb525.tar.gz
emacs-bab17c7fb5161d3ed4820bf51d0cec6ee1cbb525.zip
; Add comment to explain recent change
* lisp/vc/log-edit.el (log-edit-font-lock-keywords): Add comment to explain recent change. Proposed by Eli Zaretskii <eliz@gnu.org>. Ref: https://lists.gnu.org/r/emacs-devel/2025-03/msg00587.html
-rw-r--r--lisp/vc/log-edit.el9
1 files changed, 7 insertions, 2 deletions
diff --git a/lisp/vc/log-edit.el b/lisp/vc/log-edit.el
index 3eb614f6030..19994508ca7 100644
--- a/lisp/vc/log-edit.el
+++ b/lisp/vc/log-edit.el
@@ -458,8 +458,13 @@ The first subexpression is the actual text of the field.")
458 'log-edit-header) 458 'log-edit-header)
459 nil lax)) 459 nil lax))
460 ("^\n" 460 ("^\n"
461 (and (not (bound-and-true-p git-commit-mode)) 461 (and
462 (progn (goto-char (match-end 0)) (1+ (match-end 0)))) nil 462 ;; This fixes a bug with `git-commit-mode', a NonGNU ELPA package
463 ;; used by Magit. Without this check, we get a wrong display
464 ;; when `git-commit-major-mode' is set to `log-edit-mode'.
465 (not (bound-and-true-p git-commit-mode))
466 (progn (goto-char (match-end 0)) (1+ (match-end 0))))
467 nil
463 (0 '( face log-edit-headers-separator 468 (0 '( face log-edit-headers-separator
464 display-line-numbers-disable t rear-nonsticky t)))) 469 display-line-numbers-disable t rear-nonsticky t))))
465 (log-edit--match-first-line (0 'log-edit-summary)))) 470 (log-edit--match-first-line (0 'log-edit-summary))))