ESS issue: lines moved right 40 spaces

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
12 messages Options
Reply | Threaded
Open this post in threaded view
|

ESS issue: lines moved right 40 spaces

Rich Shepard
   I used to be subscribed to the ess SIG, but cannot find any saved messages
from that list and I cannot find it in the list of mail lists on the r-project
web site. So I'll ask here.

   Running ess-5.14 on emacs-25.3 I'm seeing a different behavior when I
write scripts than I had seen in the past. I would like to learn how to fix
this issue. I invoke ess using M-x R when I start emacs.

   When typing comments and pressing [Enter] at the end of the line to start
a new line, the row just left is inset to column 40 from column 0. Annoying
behavior, to be sure. This does not happen when I write a bash shell or
python script using emacs so it seems to be specific to R.

   All thoughts, ideas, and suggestions are welcome.

Rich

______________________________________________
[hidden email] mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Reply | Threaded
Open this post in threaded view
|

Re: ESS issue: lines moved right 40 spaces

Anthony Hirst
I don't know the answer but here is the info for the ess list.
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/ess-help



On Thu, Jul 26, 2018 at 11:26 AM Rich Shepard <[hidden email]>
wrote:

>    I used to be subscribed to the ess SIG, but cannot find any saved
> messages
> from that list and I cannot find it in the list of mail lists on the
> r-project
> web site. So I'll ask here.
>
>    Running ess-5.14 on emacs-25.3 I'm seeing a different behavior when I
> write scripts than I had seen in the past. I would like to learn how to fix
> this issue. I invoke ess using M-x R when I start emacs.
>
>    When typing comments and pressing [Enter] at the end of the line to
> start
> a new line, the row just left is inset to column 40 from column 0. Annoying
> behavior, to be sure. This does not happen when I write a bash shell or
> python script using emacs so it seems to be specific to R.
>
>    All thoughts, ideas, and suggestions are welcome.
>
> Rich
>
> ______________________________________________
> [hidden email] mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>

        [[alternative HTML version deleted]]

______________________________________________
[hidden email] mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Reply | Threaded
Open this post in threaded view
|

Re: ESS issue: lines moved right 40 spaces

Rich Shepard
On Thu, 26 Jul 2018, Anthony Hirst wrote:

> I don't know the answer but here is the info for the ess list.
> [hidden email] mailing list
> https://stat.ethz.ch/mailman/listinfo/ess-help

Anthony,

   Thanks! I thought that was the name but did not see it on the help page
and didn't think of looking on the mailman page.

Best regards,

Rich

______________________________________________
[hidden email] mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Reply | Threaded
Open this post in threaded view
|

Re: ESS issue: lines moved right 40 spaces

R help mailing list-2
In reply to this post by Rich Shepard
Hi Rich,

The full list of e-mail lists is here:

  https://stat.ethz.ch/mailman/listinfo/

and the ESS-Help list is here:

  https://stat.ethz.ch/mailman/listinfo/ess-help

which is also referenced on the ESS web site:

  http://ess.r-project.org/index.php?Section=getting%20help

More than likely, there is something in your .emacs file configuration that is affecting the indentation behavior.

Just as an FYI, Emacs is up to version 26.1 and ESS is up to version 17.11.

ESS version 5.14 is 7 years old.

Subscribe to ESS-Help and re-post there, albeit, you should probably update both Emacs and ESS before doing so, to be sure that any behavior you continue to observe is based upon currently supported versions.

Regards,

Marc
 

> On Jul 26, 2018, at 1:22 PM, Rich Shepard <[hidden email]> wrote:
>
>  I used to be subscribed to the ess SIG, but cannot find any saved messages
> from that list and I cannot find it in the list of mail lists on the r-project
> web site. So I'll ask here.
>
>  Running ess-5.14 on emacs-25.3 I'm seeing a different behavior when I
> write scripts than I had seen in the past. I would like to learn how to fix
> this issue. I invoke ess using M-x R when I start emacs.
>
>  When typing comments and pressing [Enter] at the end of the line to start
> a new line, the row just left is inset to column 40 from column 0. Annoying
> behavior, to be sure. This does not happen when I write a bash shell or
> python script using emacs so it seems to be specific to R.
>
>  All thoughts, ideas, and suggestions are welcome.
>
> Rich
>
> ______________________________________________
> [hidden email] mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.

______________________________________________
[hidden email] mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Reply | Threaded
Open this post in threaded view
|

Re: ESS issue: lines moved right 40 spaces

Jérémie Juste
In reply to this post by Rich Shepard
Hello,

I'm not sure I understand your question correctly but  I'll give it a try anyway.

Do you use single # or double hash ## when you comment?
as far as i know there are 3 types of comment indentation on ESS.

#
##
###
In principle comment with # get centered.

Best regardsOn 26 Jul 2018 19:22, Rich Shepard <[hidden email]> wrote:

>
>    I used to be subscribed to the ess SIG, but cannot find any saved messages
> from that list and I cannot find it in the list of mail lists on the r-project
> web site. So I'll ask here.
>
>    Running ess-5.14 on emacs-25.3 I'm seeing a different behavior when I
> write scripts than I had seen in the past. I would like to learn how to fix
> this issue. I invoke ess using M-x R when I start emacs.
>
>    When typing comments and pressing [Enter] at the end of the line to start
> a new line, the row just left is inset to column 40 from column 0. Annoying
> behavior, to be sure. This does not happen when I write a bash shell or
> python script using emacs so it seems to be specific to R.
>
>    All thoughts, ideas, and suggestions are welcome.
>
> Rich
>
> ______________________________________________
> [hidden email] mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help 
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html 
> and provide commented, minimal, self-contained, reproducible code.
______________________________________________
[hidden email] mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Reply | Threaded
Open this post in threaded view
|

Re: ESS issue: lines moved right 40 spaces

Rich Shepard
In reply to this post by R help mailing list-2
On Thu, 26 Jul 2018, Marc Schwartz wrote:

> The full list of e-mail lists is here:
>  https://stat.ethz.ch/mailman/listinfo/
> and the ESS-Help list is here:
>  https://stat.ethz.ch/mailman/listinfo/ess-help
> which is also referenced on the ESS web site:
>  http://ess.r-project.org/index.php?Section=getting%20help

Marc,

   I did not think of looking at the Mailman page. Thanks.

> More than likely, there is something in your .emacs file configuration
> that is affecting the indentation behavior.

   Could be.

> Just as an FYI, Emacs is up to version 26.1 and ESS is up to version 17.11.

   Emacs is upgraded when Pat and the other Slackware devs do so; ess is
hosted by SlackBuilds.org and I'll contact the package maintainer about
upgrading (which I'll do here).

Best regards,

Rich

______________________________________________
[hidden email] mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Reply | Threaded
Open this post in threaded view
|

Re: ESS issue: lines moved right 40 spaces

R help mailing list-2
Rich,

See inline below.

Marc


> On Jul 26, 2018, at 1:55 PM, Rich Shepard <[hidden email]> wrote:
>
> On Thu, 26 Jul 2018, Marc Schwartz wrote:
>
>> The full list of e-mail lists is here:
>> https://stat.ethz.ch/mailman/listinfo/
>> and the ESS-Help list is here:
>> https://stat.ethz.ch/mailman/listinfo/ess-help
>> which is also referenced on the ESS web site:
>> http://ess.r-project.org/index.php?Section=getting%20help
>
> Marc,
>
>  I did not think of looking at the Mailman page. Thanks.
>
>> More than likely, there is something in your .emacs file configuration
>> that is affecting the indentation behavior.
>
>  Could be.


One other thing comes to mind, which is that given the age of your ESS installation and that you are running Emacs 25, there have been two major Emacs updates since the version of ESS you are using, both 24 and 25.

There is a reasonable chance that your ESS version, given its age, may be incompatible with some of the under the hood changes in Emacs since then, including changes to variable names, etc.

Upgrading ESS would seem prudent, even if you have to manually install it from the ESS site, if the Slack source maintainer cannot do so.


>
>> Just as an FYI, Emacs is up to version 26.1 and ESS is up to version 17.11.
>
>  Emacs is upgraded when Pat and the other Slackware devs do so; ess is
> hosted by SlackBuilds.org and I'll contact the package maintainer about
> upgrading (which I'll do here).
>
> Best regards,
>
> Rich
>
> ______________________________________________
> [hidden email] mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.

______________________________________________
[hidden email] mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Reply | Threaded
Open this post in threaded view
|

Re: ESS issue: lines moved right 40 spaces

Rich Shepard
In reply to this post by Jérémie Juste
On Thu, 26 Jul 2018, [hidden email] wrote:

> Do you use single # or double hash ## when you comment? as far as i know
> there are 3 types of comment indentation on ESS.
>
> #
> ##
> ###
> In principle comment with # get centered.

Jeremie,

   I was not aware of this I've always used a single # for comment
everywhere that's the correct symbol. I'll try two of 'em.

Thanks,

Rich

______________________________________________
[hidden email] mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Reply | Threaded
Open this post in threaded view
|

Re: ESS issue: lines moved right 40 spaces

Rich Shepard
In reply to this post by R help mailing list-2
On Thu, 26 Jul 2018, Marc Schwartz wrote:

> There is a reasonable chance that your ESS version, given its age, may be
> incompatible with some of the under the hood changes in Emacs since then,
> including changes to variable names, etc.

Marc,

   The build script fails because it cannot find an info/ directory in the
untarred source tree. I've contacted the package maintainer and will wait
for a response, If need be, I'll remove the old version and install the
newer one independently.

Thanks,

Rich

______________________________________________
[hidden email] mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Reply | Threaded
Open this post in threaded view
|

Re: ESS issue: lines moved right 40 spaces

Rich Shepard
In reply to this post by Rich Shepard
On Thu, 26 Jul 2018, Rich Shepard wrote:

> I was not aware of this I've always used a single # for comment
> everywhere that's the correct symbol. I'll try two of 'em.

   Reading the 17.11 user guide I see what #, ##, and ### do. I also put the
suggested line to remove the fancy comments in ~/.emacs but it didn't seem
to help when I restarted emacs.

   The SBo ess package maintainer found the build problem: the script puts
the info file in the wrong directory (it changed from 5.14). He'll have a
working script done in a day or two.

   My thanks to all!

Rich

______________________________________________
[hidden email] mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Reply | Threaded
Open this post in threaded view
|

Re: ESS issue: lines moved right 40 spaces

Eric Berger
In reply to this post by Rich Shepard
Hi Rich,
Thanks for posting this question.
I also use emacs with ESS for editing R files and I have been living with
the comment indentation problem you described.
Based on the comments in this thread I did a search and found a posted
solution that works for me. See
https://stat.ethz.ch/pipermail/ess-help/2016-May/010970.html

Best,
Eric


On Thu, Jul 26, 2018 at 8:46 PM, Rich Shepard <[hidden email]>
wrote:

> On Thu, 26 Jul 2018, Anthony Hirst wrote:
>
> I don't know the answer but here is the info for the ess list.
>> [hidden email] mailing list
>> https://stat.ethz.ch/mailman/listinfo/ess-help
>>
>
> Anthony,
>
>   Thanks! I thought that was the name but did not see it on the help page
> and didn't think of looking on the mailman page.
>
> Best regards,
>
>
> Rich
>
> ______________________________________________
> [hidden email] mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posti
> ng-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>

        [[alternative HTML version deleted]]

______________________________________________
[hidden email] mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Reply | Threaded
Open this post in threaded view
|

Re: ESS issue: lines moved right 40 spaces

Rich Shepard
On Fri, 27 Jul 2018, Eric Berger wrote:

> I also use emacs with ESS for editing R files and I have been living with
> the comment indentation problem you described. Based on the comments in
> this thread I did a search and found a posted solution that works for me.
> See https://stat.ethz.ch/pipermail/ess-help/2016-May/010970.html

Eric,

   Thanks for sharing this with me. It works here, too.

   What I found strange about the ess comment behavior was having ###
default to the left margin and fewer # indenting increasing distances. That
seems backwards to me. It makes more sense to have # mean no indentation and
increase the spacing with increased #. But, that's just my opinion. :-)

   Oh, by the way, I was not able to resubscribe to the ess-help mail list so
I wrote to the webmaster. This is his response:

"I've found that after the installation of the captcha (which was an
important stop gap measure: We have seen really bad fraudulous subscriptions
!!), there had been some hickups.. and indeed the captcha-based subscription
had been failing for ESS-help probably for about one month.

"I have fixed this now, and tested that it now works (for me)."

Best regards,

Rich

______________________________________________
[hidden email] mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.