From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Wed, 14 Mar 2018 07:38:26 -0700 From: Veera Reply-To: kyleam/snakemake-mode Message-ID: Subject: Conflict with orgstruct-mode (#27) Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_5aa933e29620_29e02ab890332ed01252ca"; charset=UTF-8 Content-Transfer-Encoding: 7bit List-ID: kyleam/snakemake-mode List-Archive: https://github.com/kyleam/snakemake-mode List-Post: List-Unsubscribe: , To: kyleam/snakemake-mode Cc: Subscribed ----==_mimepart_5aa933e29620_29e02ab890332ed01252ca Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi, I use orgstruct mode to fold and expand sections of the script. When I try the same with snake file, it works as long as the snakemake-mode is not activated, but then it stops working after activate the snakemake mode. Is it because of some conflicts? I structured the code like this ``` #!/bin/env snakamake ### * imports ### * outfiles ### * rules ### * org mode sepcific ### Local Variables: ### eva: (orgstruct-mode 1) ### orgstruct-heading-prefix-regexp: "### " ### End: ``` Could you please help figure out why orgstruct-mode stops working, when I activate snakemake-mode ? -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/kyleam/snakemake-mode/issues/27 ----==_mimepart_5aa933e29620_29e02ab890332ed01252ca Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Hi,
I use orgstruct mode to fold and expand sections of the script. When I try the same with snake file, it works as long as the snakemake-mode is not activated, but then it stops working after activate the snakemake mode. Is it because of some conflicts?

I structured the code like this

#!/bin/env snakamake

### * imports
### * outfiles
### * rules

### * org mode sepcific
### Local Variables:
### eva: (orgstruct-mode 1)
### orgstruct-heading-prefix-regexp: "### "
### End:

Could you please help figure out why orgstruct-mode stops working, when I activate snakemake-mode ?


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

----==_mimepart_5aa933e29620_29e02ab890332ed01252ca-- From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Thu, 15 Mar 2018 11:57:31 +0000 (UTC) From: Kyle Meyer Reply-To: kyleam/snakemake-mode Message-ID: In-Reply-To: References: Subject: Re: Conflict with orgstruct-mode (#27) Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_5aaa5fab71df8_3c592af577552ed07360c4"; charset=UTF-8 Content-Transfer-Encoding: 7bit List-ID: kyleam/snakemake-mode List-Archive: https://github.com/kyleam/snakemake-mode List-Post: List-Unsubscribe: , To: kyleam/snakemake-mode Cc: Kyle Meyer , Your activity ----==_mimepart_5aaa5fab71df8_3c592af577552ed07360c4 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Thanks for the information. I've never used orgstruct-mode and don't know how it intercepts the commands. I probably won't get around to looking into this until this weekend. In the meantime * What version of Emacs and Org are you using? (Note that orgstruct-mode was removed in Org 9.1.6, so regardless of whether this issue is resolved here, you'll probably want to look into alternatives.) * Does orgstruct-mode work for you with in python-mode (the one defined python.el and shipped with Emacs)? -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/kyleam/snakemake-mode/issues/27#issuecomment-373352040 ----==_mimepart_5aaa5fab71df8_3c592af577552ed07360c4 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

Thanks for the information. I've never used orgstruct-mode and don't kn= ow how it intercepts the commands. I probably won't get around to looking i= nto this until this weekend. In the meantime

  • What version of Emacs and Org are you using?

    (Note that orgstruct-mode was removed in Org 9.1.6, so regardless of whe= ther this issue is resolved here, you'll probably want to look into alterna= tives.)

  • Does orgstruct-mode work for you with in python-mode (the one defined py= thon.el and shipped with Emacs)?

&mda= sh;
You are receiving this because you are subscribed to this thread.<= br />Reply to this email directly, view it on GitHub, or mute the thread.3D""

= ----==_mimepart_5aaa5fab71df8_3c592af577552ed07360c4-- From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Sun, 18 Mar 2018 18:30:05 +0000 (UTC) From: Kyle Meyer Reply-To: kyleam/snakemake-mode Message-ID: In-Reply-To: References: Subject: Re: Conflict with orgstruct-mode (#27) Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_5aaeb02c65c57_9142af84565aec4599994"; charset=UTF-8 Content-Transfer-Encoding: 7bit List-ID: kyleam/snakemake-mode List-Archive: https://github.com/kyleam/snakemake-mode List-Post: List-Unsubscribe: , To: kyleam/snakemake-mode Cc: Kyle Meyer , Your activity ----==_mimepart_5aaeb02c65c57_9142af84565aec4599994 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit I've not been able to trigger the issue. I've tried using the tip of Org's maint branch, release_9.1.7-19-gea4cb1488 (as I mentioned above, orgstruct-mode is removed in master, which will be Org 9.2). Right, so I have a Snakefile that looks like this (note the s/eva/eval/ to fix the typo in your original snippet): ``` ### * imports from glob import glob ### * rules rule blah: output: "foo" shell: "echo blah > {output}" ### * org mode sepcific ### Local Variables: ### eval: (orgstruct-mode 1) ### orgstruct-heading-prefix-regexp: "### " ### End: ``` With Snakemake mode and Org on the load path and no additional configuration (i.e., `emacs -Q`), if I visit that file and hit tab on the imports line, it folds as expected. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/kyleam/snakemake-mode/issues/27#issuecomment-374028940 ----==_mimepart_5aaeb02c65c57_9142af84565aec4599994 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

I've not been able to trigger the issue. I've tried using the tip of Or= g's maint branch, release_9.1.7-19-gea4cb1488 (as I mentioned above, orgstr= uct-mode is removed in master, which will be Org 9.2).

Right, so I have a Snakefile that looks like this (note the s/eva/eval/ = to fix the typo in your original snippet):

### * imports

from glob import glob

### * rules

rule blah:
    output: "foo"
    shell: "echo blah > {output}"

### * org mode sepcific
### Local Variables:
### eval: (orgstruct-mode 1)
### orgstruct-heading-prefix-regexp: "### "
### End:

With Snakemake mode and Org on the load path and no additional configura= tion (i.e., emacs -Q), if I visit that file and hit tab on the= imports line, it folds as expected.

&mda= sh;
You are receiving this because you are subscribed to this thread.<= br />Reply to this email directly, view it on GitHub, or mute the thread.3D""

= ----==_mimepart_5aaeb02c65c57_9142af84565aec4599994-- From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Fri, 23 Mar 2018 19:52:31 +0000 (UTC) From: Veera Reply-To: kyleam/snakemake-mode Message-ID: In-Reply-To: References: Subject: Re: Conflict with orgstruct-mode (#27) Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_5ab55aff34949_4542b025863ced45671f"; charset=UTF-8 Content-Transfer-Encoding: 7bit List-ID: kyleam/snakemake-mode List-Archive: https://github.com/kyleam/snakemake-mode List-Post: List-Unsubscribe: , To: kyleam/snakemake-mode Cc: Kyle Meyer , Comment ----==_mimepart_5ab55aff34949_4542b025863ced45671f Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi Very sorry for the late response. Thanks a lot for taking time to look at this. After seeing your comments, I did explore it a little. The problem was I manually activated snakemake-mode and while doing so I lost the orgstruct mode (I assume), which is the reason why it didn't work for me. Now when I added the add-to-list in my configuration file for snakemake-mode. Now when I open the snakemake file i get both modes active and the folding works!! Thanks for your help. -- You are receiving this because you commented. Reply to this email directly or view it on GitHub: https://github.com/kyleam/snakemake-mode/issues/27#issuecomment-375780181 ----==_mimepart_5ab55aff34949_4542b025863ced45671f Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

Hi
Very sorry for the late response. Thanks a lot for taking time to look at t= his. After seeing your comments, I did explore it a little. The problem was= I manually activated snakemake-mode and while doing so I lost the orgstruc= t mode (I assume), which is the reason why it didn't work for me. Now when = I added the add-to-list in my configuration file for snakemake-mode. Now wh= en I open the snakemake file i get both modes active and the folding works!= ! Thanks for your help.

&mda= sh;
You are receiving this because you commented.
Reply to this e= mail directly, view it on GitHub, or mute the thread.3D""

= ----==_mimepart_5ab55aff34949_4542b025863ced45671f-- From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Fri, 23 Mar 2018 12:52:39 -0700 From: Veera Reply-To: kyleam/snakemake-mode Message-ID: In-Reply-To: References: Subject: Re: Conflict with orgstruct-mode (#27) Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_5ab55b0728497_775a3fe8d1b16f3071687"; charset=UTF-8 Content-Transfer-Encoding: 7bit List-ID: kyleam/snakemake-mode List-Archive: https://github.com/kyleam/snakemake-mode List-Post: List-Unsubscribe: , To: kyleam/snakemake-mode Cc: Kyle Meyer , Comment ----==_mimepart_5ab55b0728497_775a3fe8d1b16f3071687 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Closed #27. -- You are receiving this because you commented. Reply to this email directly or view it on GitHub: https://github.com/kyleam/snakemake-mode/issues/27#event-1538640418 ----==_mimepart_5ab55b0728497_775a3fe8d1b16f3071687 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Closed #27.


You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.

----==_mimepart_5ab55b0728497_775a3fe8d1b16f3071687-- From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Fri, 23 Mar 2018 20:29:39 +0000 (UTC) From: Kyle Meyer Reply-To: kyleam/snakemake-mode Message-ID: In-Reply-To: References: Subject: Re: Conflict with orgstruct-mode (#27) Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_5ab563b36657d_2c6993fb80f1e6f3410066d"; charset=UTF-8 Content-Transfer-Encoding: 7bit List-ID: kyleam/snakemake-mode List-Archive: https://github.com/kyleam/snakemake-mode List-Post: List-Unsubscribe: , To: kyleam/snakemake-mode Cc: Kyle Meyer , Your activity ----==_mimepart_5ab563b36657d_2c6993fb80f1e6f3410066d Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Great, glad you got it working. Thanks for following up. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/kyleam/snakemake-mode/issues/27#issuecomment-375789334 ----==_mimepart_5ab563b36657d_2c6993fb80f1e6f3410066d Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Great, glad you got it working. Thanks for following up.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

----==_mimepart_5ab563b36657d_2c6993fb80f1e6f3410066d--