Skip to content

Commit 95db21c

Browse files
committed
comment why no diff-no-select
1 parent b42785d commit 95db21c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

clang/tools/clang-format/clang-format.el

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,9 @@ return is a ‘list’ of lines in the format ‘--lines=<start>:<end>’
167167
which can be passed directly to ‘clang-format’."
168168
;; Use temporary buffer for output of diff.
169169
(with-temp-buffer
170+
;; We could use diff.el:diff-no-select here. The reason we don't
171+
;; is diff-no-select requires extra copies on the buffers which
172+
;; induces noticable slowdowns, especially on larger files.
170173
(let ((status (call-process
171174
"diff"
172175
nil

0 commit comments

Comments
 (0)