Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
1b1b5dae
Commit
1b1b5dae
authored
Sep 29, 2000
by
Stefan Monnier
Browse files
(diff-add-log-file-name): Remove.
(diff-mode): Use add-log-buffer-file-name-function.
parent
d68f7f1b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
9 deletions
+4
-9
lisp/diff-mode.el
lisp/diff-mode.el
+4
-9
No files found.
lisp/diff-mode.el
View file @
1b1b5dae
...
...
@@ -4,7 +4,7 @@
;; Author: Stefan Monnier <monnier@cs.yale.edu>
;; Keywords: patch diff
;; Revision: $Id: diff-mode.el,v 1.2
2
2000/09/2
1 16:52:23
monnier Exp $
;; Revision: $Id: diff-mode.el,v 1.2
3
2000/09/2
9 02:25:32
monnier Exp $
;; This file is part of GNU Emacs.
...
...
@@ -448,6 +448,7 @@ Non-nil OLD means that we want the old file."
(
cons
(
cons
fs
file
)
diff-remembered-files-alist
))
file
)))))
(
defun
diff-mouse-goto-source
(
event
)
"Run `diff-goto-source' for the diff at a mouse click."
(
interactive
"e"
)
...
...
@@ -455,12 +456,6 @@ Non-nil OLD means that we want the old file."
(
mouse-set-point
event
)
(
diff-goto-source
)))
(
defun
diff-add-log-file-name
(
log-file
)
"File name to use in add-log for the hunk at point.
For use in `add-log-file-name-function'.
LOG-FILE should be the path to the ChangeLog file."
(
add-log-file-name
(
expand-file-name
(
diff-find-file-name
))
log-file
))
(
defun
diff-ediff-patch
()
"Call `ediff-patch-file' on the current buffer."
...
...
@@ -835,8 +830,8 @@ This mode runs `diff-mode-hook'.
;; add-log support
(
set
(
make-local-variable
'add-log-current-defun-function
)
'diff-current-defun
)
(
set
(
make-local-variable
'add-log-file-name-function
)
'diff-
add-log
-file-name
))
(
set
(
make-local-variable
'add-log-
buffer-
file-name-function
)
'diff-
find
-file-name
))
;;;###autoload
(
define-minor-mode
diff-minor-mode
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment