aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/ChangeLog4
-rw-r--r--lisp/diff-mode.el49
2 files changed, 37 insertions, 16 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 90866ba21e8..0ff2d02f619 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,7 @@
12008-03-09 Dan Nicolaescu <dann@ics.uci.edu>
2
3 * diff-mode.el (diff-mode-menu): Add :help.
4
12008-03-09 Glenn Morris <rgm@gnu.org> 52008-03-09 Glenn Morris <rgm@gnu.org>
2 6
3 * calendar/diary-lib.el (nongregorian-diary-marking-hook) 7 * calendar/diary-lib.el (nongregorian-diary-marking-hook)
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="