summaryrefslogtreecommitdiff
path: root/git-instaweb.sh
diff options
context:
space:
mode:
authorLawrence Mitchell <wence@gmx.li>2012-06-14 09:37:59 (GMT)
committerJunio C Hamano <gitster@pobox.com>2012-06-14 17:59:15 (GMT)
commit0e59a6f6018182e6648789904672b738a944a524 (patch)
tree3306ba7315071020db133d3177d3a6a1ad1fec58 /git-instaweb.sh
parent5d7da9a94489da0db3b3c7b766606b80fc71becf (diff)
downloadgit-0e59a6f6018182e6648789904672b738a944a524.zip
git-0e59a6f6018182e6648789904672b738a944a524.tar.gz
git-0e59a6f6018182e6648789904672b738a944a524.tar.bz2
git-blame.el: Use with-current-buffer where appropriate
In git-blame-filter and git-blame-create-overlay we want to save (along with the values of point and mark) the current-buffer in scope when calling the functions. The idiom (save-excursion (set-buffer buf) ...) will correctly restore the correct buffer, but will not save the values of point and mark in buf (only in the buffer current when the save-excursion call is executed). The intention of these functions is to save the current buffer from the calling scope and the values of point and mark in the buffer they are modifying. The correct idiom for this is (with-current-buffer buf (save-excursion ...)) Signed-off-by: RĂ¼diger Sonderfeld <ruediger@c-plusplus.de> Signed-off-by: Lawrence Mitchell <wence@gmx.li> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-instaweb.sh')
0 files changed, 0 insertions, 0 deletions