diff options
| author | Dan Nicolaescu | 2008-03-09 15:39:48 +0000 |
|---|---|---|
| committer | Dan Nicolaescu | 2008-03-09 15:39:48 +0000 |
| commit | fb4dfdd28ed34f7a67715f68d6a09c4dfd0f8074 (patch) | |
| tree | 071c94aa3f28f9fe01979f6d356f15c89a1b4485 /lisp/diff-mode.el | |
| parent | 6546bf55685c01fd4bf25ba51b548bf8661df163 (diff) | |
| download | emacs-fb4dfdd28ed34f7a67715f68d6a09c4dfd0f8074.tar.gz emacs-fb4dfdd28ed34f7a67715f68d6a09c4dfd0f8074.zip | |
(diff-mode-menu): Add :help.
Diffstat (limited to 'lisp/diff-mode.el')
| -rw-r--r-- | lisp/diff-mode.el | 49 |
1 files changed, 33 insertions, 16 deletions
diff --git a/lisp/diff-mode.el b/lisp/diff-mode.el index d2b0ee84e17..88270b2b3f4 100644 --- a/lisp/diff-mode.el +++ b/lisp/diff-mode.el | |||
| @@ -172,28 +172,45 @@ when editing big diffs)." | |||
| 172 | (easy-menu-define diff-mode-menu diff-mode-map | 172 | (easy-menu-define diff-mode-menu diff-mode-map |
| 173 | "Menu for `diff-mode'." | 173 | "Menu for `diff-mode'." |
| 174 | '("Diff" | 174 | '("Diff" |
| 175 | ["Jump to Source" diff-goto-source t] | 175 | ["Jump to Source" diff-goto-source |
| 176 | ["Apply hunk" diff-apply-hunk t] | 176 | :help "Jump to the corresponding source line"] |
| 177 | ["Test applying hunk" diff-test-hunk t] | 177 | ["Apply hunk" diff-apply-hunk |
| 178 | ["Apply diff with Ediff" diff-ediff-patch t] | 178 | :help "Apply the current hunk to the source file and go to the next"] |
| 179 | ["Test applying hunk" diff-test-hunk | ||
| 180 | :help "See whether it's possible to apply the current hunk"] | ||
| 181 | ["Apply diff with Ediff" diff-ediff-patch | ||
| 182 | :help "Call `ediff-patch-file' on the current buffer"] | ||
| 179 | ["Create Change Log entries" diff-add-change-log-entries-other-window | 183 | ["Create Change Log entries" diff-add-change-log-entries-other-window |
| 180 | :help "Create ChangeLog entries for the changes in the diff buffer"] | 184 | :help "Create ChangeLog entries for the changes in the diff buffer"] |
| 181 | "-----" | 185 | "-----" |
| 182 | ["Reverse direction" diff-reverse-direction t] | 186 | ["Reverse direction" diff-reverse-direction |
| 183 | ["Context -> Unified" diff-context->unified t] | 187 | :help "Reverse the direction of the diffs"] |
| 184 | ["Unified -> Context" diff-unified->context t] | 188 | ["Context -> Unified" diff-context->unified |
| 189 | :help "Convert context diffs to unified diffs"] | ||
| 190 | ["Unified -> Context" diff-unified->context | ||
| 191 | :help "Convert unified diffs to context diffs"] | ||
| 185 | ;;["Fixup Headers" diff-fixup-modifs (not buffer-read-only)] | 192 | ;;["Fixup Headers" diff-fixup-modifs (not buffer-read-only)] |
| 186 | "-----" | 193 | "-----" |
| 187 | ["Split hunk" diff-split-hunk (diff-splittable-p)] | 194 | ["Split hunk" diff-split-hunk |
| 188 | ["Ignore whitespace changes" diff-ignore-whitespace-hunk t] | 195 | :active (diff-splittable-p) |
| 189 | ["Highlight fine changes" diff-refine-hunk t] | 196 | :help "Split the current (unified diff) hunk at point into two hunks"] |
| 190 | ["Kill current hunk" diff-hunk-kill t] | 197 | ["Ignore whitespace changes" diff-ignore-whitespace-hunk |
| 191 | ["Kill current file's hunks" diff-file-kill t] | 198 | :help "Re-diff the current hunk, ignoring whitespace differences"] |
| 199 | ["Highlight fine changes" diff-refine-hunk | ||
| 200 | :help "Highlight changes of hunk at point at a finer granularity"] | ||
| 201 | ["Kill current hunk" diff-hunk-kill | ||
| 202 | :help "Kill current hunk"] | ||
| 203 | ["Kill current file's hunks" diff-file-kill | ||
| 204 | :help "Kill all current file's hunks"] | ||
| 192 | "-----" | 205 | "-----" |
| 193 | ["Previous Hunk" diff-hunk-prev t] | 206 | ["Previous Hunk" diff-hunk-prev |
| 194 | ["Next Hunk" diff-hunk-next t] | 207 | :help "Go to the previous count'th hunk"] |
| 195 | ["Previous File" diff-file-prev t] | 208 | ["Next Hunk" diff-hunk-next |
| 196 | ["Next File" diff-file-next t] | 209 | :help "Go to the next count'th hunk"] |
| 210 | ["Previous File" diff-file-prev | ||
| 211 | :help "Go to the previous count'th file"] | ||
| 212 | ["Next File" diff-file-next | ||
| 213 | :help "Go to the next count'th file"] | ||
| 197 | )) | 214 | )) |
| 198 | 215 | ||
| 199 | (defcustom diff-minor-mode-prefix "\C-c=" | 216 | (defcustom diff-minor-mode-prefix "\C-c=" |