position of first change.
+2004-06-13 Kai Grossjohann <kai.grossjohann@gmx.net>
+
+ * diff-mode.el (diff-current-defun): If at start of hunk, use
+ position of first change.
+
2004-06-13 Lars Hansen <larsh@math.ku.dk>
* dired-x.el (dired-mark-omitted): Bind to "*O".
(defun diff-current-defun ()
"Find the name of function at point.
For use in `add-log-current-defun-function'."
+ (save-excursion
+ (when (looking-at diff-hunk-header-re)
+ (forward-line 1)
+ (while (and (looking-at " ") (not (zerop (forward-line 1))))))
(destructuring-bind (buf line-offset pos src dst &optional switched)
(diff-find-source-location)
- (save-excursion
(beginning-of-line)
(or (when (memq (char-after) '(?< ?-))
;; Cursor is pointing at removed text. This could be a removed