commit | author | age
|
5cb5f7
|
1 |
;ELC |
C |
2 |
;;; Compiled |
|
3 |
;;; in Emacs version 26.1 |
|
4 |
;;; with all optimizations. |
|
5 |
|
|
6 |
;;; This file contains utf-8 non-ASCII characters, |
|
7 |
;;; and so cannot be loaded into Emacs 22 or earlier. |
|
8 |
(and (boundp 'emacs-version) |
|
9 |
(< (aref emacs-version (1- (length emacs-version))) ?A) |
|
10 |
(string-lessp emacs-version "23") |
|
11 |
(error "`%s' was compiled for Emacs 23 or later" #$)) |
|
12 |
|
|
13 |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
|
14 |
|
|
15 |
|
|
16 |
(byte-code "\300\301!\210\300\302!\210\300\303\304\305#\210\300\306\304\305#\210\300\307!\210\300\310!\210\300\311!\210\312\313\304\314\315\316\317\320\321\322& \210\323\324\325\326\327DD\330\331\332\333\334\321\313\335\336&\207" [require dash log-edit magit-git nil t magit-utils ring server with-editor custom-declare-group git-commit "Edit Git commit messages." :prefix "git-commit-" :link (info-link "(magit)Editing Commit Messages") :group tools custom-declare-variable global-git-commit-mode funcall function #[0 "\300\207" [t] 1] "Non-nil if Global Git-Commit mode is enabled.\nSee the `global-git-commit-mode' command\nfor a description of this minor mode.\nSetting this variable directly does not take effect;\neither customize it (see the info node `Easy Customization')\nor call the function `global-git-commit-mode'." :set custom-set-minor-mode :initialize #[514 "\301\"\210\205
\302\303\304\"\207" [global-git-commit-mode custom-initialize-default add-hook find-file-hook git-commit-setup-check-buffer] 5 "\n\n(fn SYMBOL EXP)"] :type boolean] 12) |
|
17 |
#@266 Edit Git commit messages. |
|
18 |
This global mode arranges for `git-commit-setup' to be called |
|
19 |
when a Git commit message file is opened. That usually happens |
|
20 |
when Git uses the Emacsclient as $GIT_EDITOR to have the user |
|
21 |
provide such a commit message. |
|
22 |
|
|
23 |
(fn &optional ARG) |
|
24 |
(defalias 'global-git-commit-mode #[256 "\301 \302\300\303=\203 \304\300!?\202 \305!\306V\"\210\203$ \307\310\311\"\210\202) \312\310\311\"\210\313\314\304\300!\2035 \315\2026 \316\"\210\317\320!\203` \321\300!\210\301 \203N \211\301 \232\203` \322\323\324\304\300!\203[ \325\202\\ \326#\266\210\327 \210\304\300!\207" [global-git-commit-mode current-message set-default toggle default-value prefix-numeric-value 0 add-hook find-file-hook git-commit-setup-check-buffer remove-hook run-hooks global-git-commit-mode-hook global-git-commit-mode-on-hook global-git-commit-mode-off-hook called-interactively-p any customize-mark-as-set "" message "Global Git-Commit mode %sabled%s" "en" "dis" force-mode-line-update] 7 (#$ . 1474) (byte-code "\206 \301C\207" [current-prefix-arg toggle] 1)]) |
|
25 |
(defvar global-git-commit-mode-hook nil) |
|
26 |
(byte-code "\301\302N\204\f \303\301\302\304#\210\305\306\307\310\300!\205 \307\211%\210\311\312\313\314\315DD\316\317\320\321\322&\210\311\323\313\314\324DD\325\317\320\321\326\327\330\331!\205= \332\333\334&\210\311\335\313\314\336DD\337\317\320\321\326\327\330\331!\205V \332& \210\311\340\313\314\341DD\342\333\343\321\326\317\320& \210\311\344\313\314\345DD\346\333\347\321\350\317\320& \210\311\351\313\314\352DD\353\317\320\354\355\321\356& \210\311\357\313\314\360DD\361\317\320\354\355\321\362& \210\363\357\364\365\366$\210\311\367\313\314\370DD\371\317\320\354\372\321\373& \210\374\375\307\376\377\201@ \317\320\317\201A & \210\201B \201C \201D \201E \317\375%\210\201B \201F \201G \201H \317\375%\210\201B \201I \201J \201K \317\375%\210\201B \201L \201M \201N \317\375%\210\201B \201O \201P \201Q \317\375%\210\201B \201R \201S \201T \317\375%\210\201B \201U \330\201V !\203:\201W \202=\201X \201Y \317\375%\210\303\201Z \201[ \201U #\210\303\201Z \201\\ \201] \201^ !\206d\201_ #\210\201B \201` \330\201V !\203z\201a \202}\201b \201c \317\375%\210\201B \201d \201e \201f \317\375%\210\201B \201g \201h \201i \317\375%\210\201B \201j \201k \201l \317\375%\210\201B \201m \201n \201o \317\375%\207" [global-git-commit-mode-map global-git-commit-mode-hook variable-documentation put "Hook run after entering or leaving `global-git-commit-mode'.\nNo problems result if this variable is not bound.\n`add-hook' automatically binds it. (This is true for all hook variables.)" add-minor-mode global-git-commit-mode nil boundp custom-declare-variable git-commit-major-mode funcall function #[0 "\300\207" [text-mode] 1] "Major mode used to edit Git commit messages.\nThe major mode configured here is turned on by the minor mode\n`git-commit-mode'." :group git-commit :type (choice (function-item text-mode) (const :tag "No major mode")) git-commit-setup-hook #[0 "\300\207" [(git-commit-save-message git-commit-setup-changelog-support git-commit-turn-on-auto-fill git-commit-propertize-diff bug-reference-mode with-editor-usage-message)] 1] "Hook run at the end of `git-commit-setup'." hook :get featurep magit-utils magit-hook-custom-get :options (git-commit-save-message git-commit-setup-changelog-support git-commit-turn-on-auto-fill git-commit-turn-on-flyspell git-commit-propertize-diff bug-reference-mode with-editor-usage-message) git-commit-post-finish-hook #[0 "\300\207" [nil] 1] "Hook run after the user finished writing a commit message.\n\n\\<with-editor-mode-map>This hook is only run after pressing \\[with-editor-finish] in a buffer used\nto edit a commit message. If a commit is created without the\nuser typing a message into a buffer, then this hook is not run.\n\nThis hook is not run until the new commit has been created. If\ndoing so takes Git longer than one second, then this hook isn't\nrun at all. For certain commands such as `magit-rebase-continue'\nthis hook is never run because doing so would lead to a race\ncondition.\n\nAlso see `magit-post-commit-hook'." git-commit-finish-query-functions #[0 "\300\207" [(git-commit-check-style-conventions)] 1] "List of functions called to query before performing commit.\n\nThe commit message buffer is current while the functions are\ncalled. If any of them returns nil, then the commit is not\nperformed and the buffer is not killed. The user should then\nfix the issue and try again.\n\nThe functions are called with one argument. If it is non-nil,\nthen that indicates that the user used a prefix argument to\nforce finishing the session despite issues. Functions should\nusually honor this wish and return non-nil." (git-commit-check-style-conventions) git-commit-style-convention-checks #[0 "\300\207" [(non-empty-second-line)] 1] "List of checks performed by `git-commit-check-style-conventions'.\nValid members are `non-empty-second-line' and `overlong-summary-line'.\nThat function is a member of `git-commit-finish-query-functions'." (non-empty-second-line overlong-summary-line) (list :convert-widget custom-hook-convert-widget) git-commit-summary-max-length #[0 "\300\207" [68] 1] "Column beyond which characters in the summary lines are highlighted.\n\nThe highlighting indicates that the summary is getting too long\nby some standards. It does in no way imply that going over the\nlimit a few characters or in some cases even many characters is\nanything that deserves shaming. It's just a friendly reminder\nthat if you can make the summary shorter, then you might want\nto consider doing so." :safe numberp number git-commit-fill-column #[0 "\300\207" [nil] 1] "Override `fill-column' in commit message buffers.\n\nIf this is non-nil, then it should be an integer. If that is the\ncase and the buffer-local value of `fill-column' is not already\nset by the time `git-commit-turn-on-auto-fill' is called as a\nmember of `git-commit-setup-hook', then that function sets the\nbuffer-local value of `fill-column' to the value of this option.\n\nThis option exists mostly for historic reasons. If you are not\nalready using it, then you probably shouldn't start doing so." (choice (const :tag "use regular fill-column") number) make-obsolete-variable fill-column "Magit 2.11.0" set git-commit-known-pseudo-headers #[0 "\300\207" [("Signed-off-by" "Acked-by" "Modified-by" "Cc" "Suggested-by" "Reported-by" "Tested-by" "Reviewed-by")] 1] "A list of Git pseudo headers to be highlighted." #[257 "\211<\205 |