diff options
| author | Daniel Jasper <djasper@google.com> | 2016-09-12 10:02:46 +0000 |
|---|---|---|
| committer | Daniel Jasper <djasper@google.com> | 2016-09-12 10:02:46 +0000 |
| commit | c6a123111a3b24ea48d15c13b4374c3671fea815 (patch) | |
| tree | 759265c9bbc1ab25b4c032be37a166ff7d0e454b | |
| parent | 99da7529800750e8553fbf0be2586c9720346b10 (diff) | |
| download | bcm5719-llvm-c6a123111a3b24ea48d15c13b4374c3671fea815.tar.gz bcm5719-llvm-c6a123111a3b24ea48d15c13b4374c3671fea815.zip | |
clang-format: Make emacs integration work with narrowed buffers.
Use (call-process region nil ...) instead of (point-min) so that the
call works in narrowed buffers.
Patch by Philipp Stephani, thank you!
llvm-svn: 281203
| -rw-r--r-- | clang/tools/clang-format/clang-format.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/tools/clang-format/clang-format.el b/clang/tools/clang-format/clang-format.el index ca461444e22..4d6007925fb 100644 --- a/clang/tools/clang-format/clang-format.el +++ b/clang/tools/clang-format/clang-format.el @@ -122,7 +122,7 @@ is no active region. If no style is given uses `clang-format-style'." (let (status stderr operations) (setq status (call-process-region - (point-min) (point-max) clang-format-executable + nil nil clang-format-executable nil `(,temp-buffer ,temp-file) nil "-output-replacements-xml" |

