[ESS] roxygen comment tag changed to #'

Douglas Bates bates at stat.wisc.edu
Wed Jan 18 00:36:44 CET 2012


2012/1/17 Aleksandar Blagotić <aca.blagotic at gmail.com>:
> Yeah, but the compatibility issue can be fixed easily by one dumb-as-bricks
> regex... just check it comment is a roxygen one (has single quote after #),
> and based on that, don't use fancy quotes.

Do you mean fancy quotes or fancy indenting?  It is a convention
within emacs programming language modes that a comment introduced with
a single character is indented to a particular (configurable) column.
Doubling the comment character indents to the current indent column
for code.  Tripling the character aligns the line on the first column.
 I think it would be non-trivial to special-case "#'" as meaning "##"
for the purpose of determining the indentation.

> How hard can it be to implement
> such feature? I can write it in R/PHP/JS/Ruby in like 10 seconds... but
> sadly, not in LISP... =(
>
> I agree with you though... ESS conventions win in implementation history
> race...
>
> aL3xa
>
>
>
> 2012/1/17 Martin Maechler <maechler at stat.math.ethz.ch>
>
>> 2012/1/17 Aleksandar Blagotię <aca.blagotic at gmail.com>:
>>
>> > @Martin, because of Eclipse/StatET. =/
>>
>> does not count really : The ESS conventions predate Eclipse/StatET by
>> *decades*
>> ..
>> Martin
>>
>> > 2012/1/17 Martin Maechler <maechler at stat.math.ethz.ch>
>> >
>> >> 2012/1/16 Aleksandar Blagotię <aca.blagotic at gmail.com>:
>> >> > No, I'm not using SVN version, since it doesn't perform nice with the
>> >> > autocomplete plugin, but yes, I can't replicate this bug in SVN
>> version.
>> >> >
>> >> > Thanks,
>> >> > aL3xa
>> >>
>> >> But apart from all that:  *Not* using ##'  (for a beginning-of-line
>> >> comment)
>> >> is plainly against all ESS conventions which derive from lisp
>> conventions..
>> >>
>> >> Why couldn't you convince you coworkers to adapt to the "only true way"
>>  ?
>> >> :-) ;-)
>> >>
>> >> Martin
>> >>
>> >> >
>> >> > 2012/1/16 Henning Redestig <henning.red at googlemail.com>
>> >> >
>> >> >> Ok, so are you running ess from svn? There was a fix to the
>> >> >> highlighting not too long ago.
>> >> >>
>> >> >> ps please keep the discussion on the list.
>> >> >>
>> >> >> 2012/1/16 Aleksandar Blagotię <aca.blagotic at gmail.com>:
>> >> >> > (ess-roxy-str "#'") for me too, but still without highlighting...
>> >> >> >
>> >> >> > aL3xa
>> >> >> >
>> >> >> >
>> >> >> >
>> >> >> >
>> >> >> > 2012/1/16 Henning Redestig <henning.red at googlemail.com>
>> >> >> >>
>> >> >> >> which regexp for did you change to exactly, which emacs are you
>> using
>> >> >> >> and are you running the latest ess?
>> >> >> >>
>> >> >> >> I can change ess-roxy-str to "#'" on my computer and get param
>> >> >> >> highlight as expected. Perhaps you just set it to "#"? that would
>> >> >> >> explain why you get so many problems. Otherwise, roxygen handling
>> and
>> >> >> >> handling other comments probably don't have anything to do with
>> each
>> >> >> >> other so I would hypothesize that your two issues are unrelated.
>> >> >> >>
>> >> >> >> 2012/1/16 Aleksandar Blagotię <aca.blagotic at gmail.com>:
>> >> >> >> > In order to sync with my collaborator's programming habits, I
>> had
>> >> to
>> >> >> >> > change
>> >> >> >> > roxygen tags from ##' to #'. This opened a pandora box in my
>> Emacs
>> >> >> >> > settings. =/
>> >> >> >> >
>> >> >> >> > - I lost @param highlighting. I definitely want it back!
>> >> >> >> > - unless I disable fancy comments (which aren't too fancy IMO),
>> >> >> >> > indentation
>> >> >> >> > is broken. So let's unlock this further:
>> >> >> >> >  - is it possible to assign a regex that will recognise ordinary
>> >> >> comment
>> >> >> >> > from roxygen-one?
>> >> >> >> >  - is it possible to add one space after # as inline comment?
>> (low
>> >> >> >> > priority, and a bit off-topic)
>> >> >> >> >
>> >> >> >> > I'm aware that I've broke "one question per question" rule, but
>> I'd
>> >> >> >> > really
>> >> >> >> > like to get nice and sexy @param highlighting, and "fancy"
>> >> comments to
>> >> >> >> > be a
>> >> >> >> > little less just fancy and become a bit more useful.
>> >> >> >> >
>> >> >> >> > Thanks,
>> >> >> >> > aL3xa
>> >> >> >> >
>> >> >> >> >        [[alternative HTML version deleted]]
>> >> >> >> >
>> >> >> >> > ______________________________________________
>> >> >> >> > ESS-help at r-project.org mailing list
>> >> >> >> > https://stat.ethz.ch/mailman/listinfo/ess-help
>> >> >> >>
>> >> >> >>
>> >> >> >>
>> >> >> >> --
>> >> >> >> /Henning
>> >> >> >
>> >> >> >
>> >> >>
>> >> >>
>> >> >>
>> >> >> --
>> >> >> /Henning
>> >> >>
>> >> >
>> >> >        [[alternative HTML version deleted]]
>> >> >
>> >> >
>> >> > ______________________________________________
>> >> > ESS-help at r-project.org mailing list
>> >> > https://stat.ethz.ch/mailman/listinfo/ess-help
>> >> >
>> >>
>> >
>> >        [[alternative HTML version deleted]]
>> >
>> >
>> > ______________________________________________
>> > ESS-help at r-project.org mailing list
>> > https://stat.ethz.ch/mailman/listinfo/ess-help
>> >
>>
>
>        [[alternative HTML version deleted]]
>
>
> ______________________________________________
> ESS-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/ess-help
>



More information about the ESS-help mailing list