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
17f3909f
Commit
17f3909f
authored
Oct 17, 2007
by
Stefan Monnier
Browse files
(vc-diff-sentinel, vc-diff-internal): Revert some changes in the
behavior unrelated to filesets.
parent
bc3512d0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
36 additions
and
33 deletions
+36
-33
lisp/ChangeLog
lisp/ChangeLog
+9
-4
lisp/vc.el
lisp/vc.el
+27
-29
No files found.
lisp/ChangeLog
View file @
17f3909f
2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
* vc.el (vc-diff-sentinel, vc-diff-internal): Revert some change in the
behavior unrelated to filesets.
2007-10-17 Chong Yidong <cyd@stupidchicken.com>
2007-10-17 Chong Yidong <cyd@stupidchicken.com>
* longlines.el (longlines-wrap-follows-window-size): Integer value
* longlines.el (longlines-wrap-follows-window-size): Integer value
specifies wrapping margin.
specifies wrapping margin.
(longlines-mode, longlines-window-change-function):
Set
(longlines-mode, longlines-window-change-function):
window-specific wrapping margin based on the above.
Set
window-specific wrapping margin based on the above.
2007-10-17 John Wiegley <johnw@newartisans.com>
2007-10-17 John Wiegley <johnw@newartisans.com>
...
@@ -16,8 +21,8 @@
...
@@ -16,8 +21,8 @@
2007-10-17 Glenn Morris <rgm@gnu.org>
2007-10-17 Glenn Morris <rgm@gnu.org>
* progmodes/cc-menus.el (cc-imenu-c++-generic-expression):
Tweak
* progmodes/cc-menus.el (cc-imenu-c++-generic-expression):
regexp to avoid stack overflow.
Tweak
regexp to avoid stack overflow.
2007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
2007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
...
...
lisp/vc.el
View file @
17f3909f
...
@@ -1873,24 +1873,17 @@ The meaning of REV1 and REV2 is the same as for `vc-revision-diff'."
...
@@ -1873,24 +1873,17 @@ The meaning of REV1 and REV2 is the same as for `vc-revision-diff'."
(
make-obsolete
'vc-diff-switches-list
'vc-switches
"22.1"
)
(
make-obsolete
'vc-diff-switches-list
'vc-switches
"22.1"
)
(
defun
vc-diff-sentinel
(
verbose
rev1-name
rev2-name
)
(
defun
vc-diff-sentinel
(
verbose
rev1-name
rev2-name
)
;; Did changes get generated into the buffer?
;; The empty sync output case has already been handled, so the only
(
if
(
not
(
zerop
(
buffer-size
(
get-buffer
"*vc-diff*"
))))
;; possibility of an empty output is for an async process, in which case
(
progn
;; it's important to insert the "diffs end here" message in the buffer
(
pop-to-buffer
"*vc-diff*"
)
;; since the user may miss a message in the echo area.
;; Gnus-5.8.5 sets up an autoload for diff-mode, even if it's
(
when
verbose
;; not available. Work around that.
(
let
((
inhibit-read-only
t
))
(
if
(
require
'diff-mode
nil
t
)
(
diff-mode
))
(
if
(
eq
(
buffer-size
)
0
)
(
when
verbose
(
insert
"No differences found.\n"
)
(
let
(
buffer-read-only
)
(
insert
(
format
"\n\nDiffs between %s and %s end here."
rev1-name
rev2-name
)))))
(
goto-char
(
point-max
))
(
goto-char
(
point-min
))
(
insert
(
format
"\n\nDiffs between %s and %s end here."
rev1-name
rev2-name
))
(
shrink-window-if-larger-than-buffer
))
(
goto-char
(
point-min
))
(
insert
(
format
"Diffs between %s and %s:\n\n"
rev1-name
rev2-name
))))
(
shrink-window-if-larger-than-buffer
)
t
)
(
progn
(
message
"No changes between %s and %s"
rev1-name
rev2-name
)
nil
)))
(
defun
vc-diff-internal
(
backend
async
files
rev1
rev2
&optional
verbose
)
(
defun
vc-diff-internal
(
backend
async
files
rev1
rev2
&optional
verbose
)
"Report diffs between two revisions of a fileset.
"Report diffs between two revisions of a fileset.
...
@@ -1927,12 +1920,20 @@ returns t if the buffer had changes, nil otherwise."
...
@@ -1927,12 +1920,20 @@ returns t if the buffer had changes, nil otherwise."
(
let
((
vc-disable-async-diff
(
not
async
)))
(
let
((
vc-disable-async-diff
(
not
async
)))
(
vc-call-backend
backend
'diff
filtered
rev1
rev2
"*vc-diff*"
)))
(
vc-call-backend
backend
'diff
filtered
rev1
rev2
"*vc-diff*"
)))
(
set-buffer
"*vc-diff*"
)
(
set-buffer
"*vc-diff*"
)
;; This odd-looking code is because in the non-async case we
(
if
(
and
(
zerop
(
buffer-size
))
;; actually want to pass the return value from vc-diff-sentinel
(
not
(
get-buffer-process
(
current-buffer
))))
;; back to the caller.
;; Treat this case specially so as not to pop the buffer.
(
if
async
(
progn
(
vc-exec-after
`
(
vc-diff-sentinel
,
verbose
,
rev1-name
,
rev2-name
))
(
message
"No changes between %s and %s"
rev1-name
rev2-name
)
(
vc-diff-sentinel
verbose
rev1-name
rev2-name
))))
nil
)
(
pop-to-buffer
(
current-buffer
))
;; Gnus-5.8.5 sets up an autoload for diff-mode, even if it's
;; not available. Work around that.
(
if
(
require
'diff-mode
nil
t
)
(
diff-mode
))
(
vc-exec-after
`
(
vc-diff-sentinel
,
verbose
,
rev1-name
,
rev2-name
))
;; In the async case, we return t even if there are no differences
;; because we don't know that yet.
t
)))
;;;###autoload
;;;###autoload
(
defun
vc-history-diff
(
backend
files
rev1
rev2
)
(
defun
vc-history-diff
(
backend
files
rev1
rev2
)
...
@@ -3031,10 +3032,7 @@ to provide the `find-revision' operation instead."
...
@@ -3031,10 +3032,7 @@ to provide the `find-revision' operation instead."
(
vc-register
)))
(
vc-register
)))
(
defalias
'vc-default-logentry-check
'ignore
)
(
defalias
'vc-default-logentry-check
'ignore
)
(
defalias
'vc-default-check-headers
'ignore
)
(
defun
vc-default-check-headers
(
backend
)
"Default implementation of check-headers; always returns nil."
nil
)
(
defun
vc-default-log-view-mode
(
backend
)
(
log-view-mode
))
(
defun
vc-default-log-view-mode
(
backend
)
(
log-view-mode
))
...
@@ -3116,7 +3114,7 @@ to provide the `find-revision' operation instead."
...
@@ -3116,7 +3114,7 @@ to provide the `find-revision' operation instead."
(
and
(
not
vc-make-backup-files
)
(
delete-file
backup-name
))))))
(
and
(
not
vc-make-backup-files
)
(
delete-file
backup-name
))))))
(
message
"Checking out %s...done"
file
))))
(
message
"Checking out %s...done"
file
))))
(
def
un
vc-default-revision-completion-table
(
backend
file
)
nil
)
(
def
alias
'
vc-default-revision-completion-table
'ignore
)
(
defun
vc-check-headers
()
(
defun
vc-check-headers
()
"Check if the current file has any headers in it."
"Check if the current file has any headers in it."
...
...
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