From: Kevin Ballard Date: Wed, 11 Nov 2009 04:04:14 +0000 (-0800) Subject: Fix go-mode.el to work on empty buffers X-Git-Tag: weekly.2009-11-10.1~1 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=022e3ae2659491e519d392e266acd86223a510f4;p=gostls13.git Fix go-mode.el to work on empty buffers Fixes #8. R=agl, agl1, rsc https://golang.org/cl/153056 --- diff --git a/misc/emacs/go-mode.el b/misc/emacs/go-mode.el index 6f5d97aa49..feba035ee5 100644 --- a/misc/emacs/go-mode.el +++ b/misc/emacs/go-mode.el @@ -436,7 +436,7 @@ functions, and some types. It also provides indentation that is ;; Remove stale text properties (save-restriction (widen) - (remove-list-of-text-properties 1 (buffer-size) + (remove-list-of-text-properties 1 (+ (buffer-size) 1) '(go-mode-cs go-mode-nesting))) ;; Reset the syntax mark caches