[ESS] fill-paragraph on documentation in ESS/julia

Lionel Henry ||one|@hry @end|ng |rom gm@||@com
Sat Apr 9 02:25:40 CEST 2016


> but I don't know what's the simple way of finding the end of a string

The tricky part is to handle nested strings. A simple and reliable
method for this kind of problem is to use forward-sexp (or
ess-forward-sexp which returns nil instead of an error when it can't
go forward). With point in front of your string you can jump over it
with those commands:

    (let* ((start (ninth s))
           (end (save-excursion
                  (goto-char start)
                  (forward-sexp)
                  (point)

Lionel




More information about the ESS-help mailing list