diff options
| author | Miodrag Milenkovic <miodrag.milenkovic@gmail.com> | 2019-02-28 12:54:25 -0500 |
|---|---|---|
| committer | Miodrag Milenkovic <miodrag.milenkovic@gmail.com> | 2019-02-28 12:54:25 -0500 |
| commit | dd231edbd8a2805aaf0728fb5800a356ed1d14ce (patch) | |
| tree | ab1c11b3e9e43b32e48ffa52299e9e92dfae101b /test-project | |
| parent | 54a9c3d3f501620cdf3f2d86f239571c1cc87fc6 (diff) | |
| download | rust-mode-dd231edbd8a2805aaf0728fb5800a356ed1d14ce.tar.gz | |
Avoid signaling "Beginning of buffer" in rust-lookng-back-macro
Also save some work if we don't have at least two characters behind us
in the buffer, we know we can't be looking at a macro then. The signal
occurs when one tries 'racer-describe' when positioned over "String",
which eventually ends up calling
(with-temp-buffer
(insert "<Target=str>")
(delay-mode-hooks (rust-mode))
(font-lock-ensure))
This simpler block will also trigger the error
(with-temp-buffer
(insert "<>")
(rust-mode)
(font-lock-ensure))
(font-lock-ensure) call ends up calling (rust-looking-back-macro).
Diffstat (limited to 'test-project')
0 files changed, 0 insertions, 0 deletions
