Follow mode does not work with diary entries in the agenda. It calls org-agenda-goto, which expects to be in an Org Mode buffer but does not test to make sure that it is in an org buffer. As a result, it errors out midway through and leaves the cursor stranded in the diary buffer. This patch should fix the issue.