Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
git.el: Portability fixes for XEmacs and Emacs CVS.
author
Alexandre Julliard
<julliard@winehq.org>
Sat, 4 Mar 2006 16:37:42 +0000
(17:37 +0100)
committer
Junio C Hamano
<junkio@cox.net>
Sat, 4 Mar 2006 21:45:58 +0000
(13:45 -0800)
Fixed octal constants for XEmacs.
Added highlighting support in log-edit buffer for Emacs CVS.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
contrib/emacs/git.el
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
486a974
)
diff --git
a/contrib/emacs/git.el
b/contrib/emacs/git.el
index 8f234772b0f1f872a86074c73bb2a6e7ded177ec..5828d4c693e7f38b9b3e3e41994b5481babb9a97 100644
(file)
--- a/
contrib/emacs/git.el
+++ b/
contrib/emacs/git.el
@@
-388,9
+388,9
@@
If not set, fall back to `add-log-mailing-address' and then `user-mail-address'.
(propertize
(if (or (not old-perm)
(not new-perm)
(propertize
(if (or (not old-perm)
(not new-perm)
- (eq 0 (logand
#O
111 (logxor old-perm new-perm))))
+ (eq 0 (logand
?\
111 (logxor old-perm new-perm))))
" "
" "
- (if (eq 0 (logand
#O
111 old-perm)) "+x" "-x"))
+ (if (eq 0 (logand
?\
111 old-perm)) "+x" "-x"))
'face 'git-permission-face))
(defun git-fileinfo-prettyprint (info)
'face 'git-permission-face))
(defun git-fileinfo-prettyprint (info)
@@
-806,7
+806,13
@@
If not set, fall back to `add-log-mailing-address' and then `user-mail-address'.
"\n")
(when (and merge-heads (file-readable-p ".git/MERGE_MSG"))
(insert-file-contents ".git/MERGE_MSG"))))
"\n")
(when (and merge-heads (file-readable-p ".git/MERGE_MSG"))
(insert-file-contents ".git/MERGE_MSG"))))
- (log-edit #'git-do-commit nil #'git-log-edit-files buffer)))
+ (let ((log-edit-font-lock-keywords
+ `(("^\\(Author:\\|Date:\\|Parent:\\)\\(.*\\)"
+ (1 font-lock-keyword-face)
+ (2 font-lock-function-name-face))
+ (,(concat "^\\(" (regexp-quote git-log-msg-separator) "\\)$")
+ (1 font-lock-comment-face)))))
+ (log-edit #'git-do-commit nil #'git-log-edit-files buffer))))
(defun git-find-file ()
"Visit the current file in its own buffer."
(defun git-find-file ()
"Visit the current file in its own buffer."
@@
-891,7
+897,7
@@
If not set, fall back to `add-log-mailing-address' and then `user-mail-address'.
(define-key map "d" diff-map)
(define-key map "=" 'git-diff-file)
(define-key map "f" 'git-find-file)
(define-key map "d" diff-map)
(define-key map "=" 'git-diff-file)
(define-key map "f" 'git-find-file)
- (define-key map
[RET]
'git-find-file)
+ (define-key map
"\r"
'git-find-file)
(define-key map "g" 'git-refresh-status)
(define-key map "i" 'git-ignore-file)
(define-key map "l" 'git-log-file)
(define-key map "g" 'git-refresh-status)
(define-key map "i" 'git-ignore-file)
(define-key map "l" 'git-log-file)