]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/vc/log-edit.el (log-edit-font-lock-keywords): Ignore case to
authorStefan Monnier <monnier@iro.umontreal.ca>
Sun, 30 Sep 2012 03:30:25 +0000 (23:30 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Sun, 30 Sep 2012 03:30:25 +0000 (23:30 -0400)
chose face.
(log-edit-empty-buffer-p): Don't require a space after a header.

lisp/ChangeLog
lisp/vc/log-edit.el

index 13daa83ac3d40fbc7640f8b1cc33b07515ed90fb..98fc9066e3ef8bc0b5b43fb327688b49dcf7abb0 100644 (file)
@@ -1,5 +1,9 @@
 2012-09-30  Stefan Monnier  <monnier@iro.umontreal.ca>
 
+       * vc/log-edit.el (log-edit-font-lock-keywords): Ignore case to
+       chose face.
+       (log-edit-empty-buffer-p): Don't require a space after a header.
+
        * vc/ediff-util.el (ediff-diff-at-point): Don't assume point-min==1.
 
        * tutorial.el (help-with-tutorial): Use minibuffer-with-setup-hook.
index 2fc2e0ce46d5c2df464a4f1eba5b18175ec101fe..932abb9818cf39501765070b3ca714dba1586a2f 100644 (file)
@@ -343,14 +343,17 @@ automatically."
   `((log-edit-match-to-eoh
      (,(concat "^\\(\\([[:alpha:]]+\\):\\)" log-edit-header-contents-regexp)
       (progn (goto-char (match-beginning 0)) (match-end 0)) nil
-      (1 (if (assoc (match-string 2) log-edit-headers-alist)
+      (1 (if (assoc-string (match-string 2) log-edit-headers-alist t)
              'log-edit-header
            'log-edit-unknown-header)
          nil lax)
       ;; From `log-edit-header-contents-regexp':
-      (3 (or (cdr (assoc (match-string 2) log-edit-headers-alist))
+      (3 (or (cdr (assoc-string (match-string 2) log-edit-headers-alist t))
              'log-edit-header)
-         nil lax)))))
+         nil lax))
+     ("^\n"
+      (progn (goto-char (match-end 0)) (1+ (match-end 0))) nil
+      (0 '(:height 0.1 :inverse-video t))))))
 
 (defvar log-edit-font-lock-gnu-style nil
   "If non-nil, highlight common failures to follow the GNU coding standards.")
@@ -574,7 +577,7 @@ If you want to abort the commit, simply delete the buffer."
   (or (= (point-min) (point-max))
       (save-excursion
         (goto-char (point-min))
-        (while (and (looking-at "^\\([a-zA-Z]+: \\)?$")
+        (while (and (looking-at "^\\([a-zA-Z]+: ?\\)?$")
                     (zerop (forward-line 1))))
         (eobp))))
 
@@ -807,7 +810,7 @@ where LOGBUFFER is the name of the ChangeLog buffer, and each
                  change-log-default-name)
              ;; `find-change-log' uses `change-log-default-name' if set
              ;; and sets it before exiting, so we need to work around
-             ;; that memoizing which is undesired here
+             ;; that memoizing which is undesired here.
              (setq change-log-default-name nil)
              (find-change-log)))))
     (with-current-buffer (find-file-noselect changelog-file-name)