]> granicus.if.org Git - clang/commit
clang-format: Make emacs integration work with narrowed buffers.
authorDaniel Jasper <djasper@google.com>
Mon, 12 Sep 2016 10:02:46 +0000 (10:02 +0000)
committerDaniel Jasper <djasper@google.com>
Mon, 12 Sep 2016 10:02:46 +0000 (10:02 +0000)
commit0ca4899ca014e98068ad920e023ec283341c0913
treebf88ac535352dfe116153a5e7ebef0589995c266
parenta0d69445f0a6c2921d671e4471d77fcfba13c842
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!

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@281203 91177308-0d34-0410-b5e6-96231b3b80d8
tools/clang-format/clang-format.el