robot-mode icon indicating copy to clipboard operation
robot-mode copied to clipboard

Improve robot-indent so it works when c-basic-offset is 'set-from-style.

Open j-oberlaender opened this issue 7 years ago • 0 comments

Hi,

I noticed that in my Emacs (24.3.1, cc-mode 5.33), the robot-indent function wouldn't work right because c-basic-offset returns the symbol 'set-from-style. I didn't find a fix anywhere that provided a proper solution to this issue, so I wrote one. The function still falls back to 4 spaces if c-basic-offset is unset, but tries its best to determine the current c-default-style's offset in case 'set-from-style is used.

If you're interested in the change, feel free to take it and run with it.

j-oberlaender avatar Jun 14 '18 07:06 j-oberlaender