discussion and development of Emacs Snakemake mode
 help / color / mirror / code / Atom feed
* Conflict with orgstruct-mode (#27)
@ 2018-03-14 14:38 Veera
  2018-03-15 11:57 ` Kyle Meyer
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Veera @ 2018-03-14 14:38 UTC (permalink / raw)
  To: kyleam/snakemake-mode; +Cc: Subscribed

[-- Attachment #1: Type: text/plain, Size: 763 bytes --]

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

[-- Attachment #2: Type: text/html, Size: 2328 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Conflict with orgstruct-mode (#27)
  2018-03-14 14:38 Conflict with orgstruct-mode (#27) Veera
@ 2018-03-15 11:57 ` Kyle Meyer
  2018-03-18 18:30 ` Kyle Meyer
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: Kyle Meyer @ 2018-03-15 11:57 UTC (permalink / raw)
  To: kyleam/snakemake-mode; +Cc: Kyle Meyer, Your activity

[-- Attachment #1: Type: text/plain, Size: 709 bytes --]

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

[-- Attachment #2: Type: text/html, Size: 2859 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Conflict with orgstruct-mode (#27)
  2018-03-14 14:38 Conflict with orgstruct-mode (#27) Veera
  2018-03-15 11:57 ` Kyle Meyer
@ 2018-03-18 18:30 ` Kyle Meyer
  2018-03-23 19:52 ` Veera
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: Kyle Meyer @ 2018-03-18 18:30 UTC (permalink / raw)
  To: kyleam/snakemake-mode; +Cc: Kyle Meyer, Your activity

[-- Attachment #1: Type: text/plain, Size: 939 bytes --]

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

[-- Attachment #2: Type: text/html, Size: 3390 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Conflict with orgstruct-mode (#27)
  2018-03-14 14:38 Conflict with orgstruct-mode (#27) Veera
  2018-03-15 11:57 ` Kyle Meyer
  2018-03-18 18:30 ` Kyle Meyer
@ 2018-03-23 19:52 ` Veera
  2018-03-23 19:52 ` Veera
  2018-03-23 20:29 ` Kyle Meyer
  4 siblings, 0 replies; 6+ messages in thread
From: Veera @ 2018-03-23 19:52 UTC (permalink / raw)
  To: kyleam/snakemake-mode; +Cc: Kyle Meyer, Comment

[-- Attachment #1: Type: text/plain, Size: 653 bytes --]

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

[-- Attachment #2: Type: text/html, Size: 2707 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Conflict with orgstruct-mode (#27)
  2018-03-14 14:38 Conflict with orgstruct-mode (#27) Veera
                   ` (2 preceding siblings ...)
  2018-03-23 19:52 ` Veera
@ 2018-03-23 19:52 ` Veera
  2018-03-23 20:29 ` Kyle Meyer
  4 siblings, 0 replies; 6+ messages in thread
From: Veera @ 2018-03-23 19:52 UTC (permalink / raw)
  To: kyleam/snakemake-mode; +Cc: Kyle Meyer, Comment

[-- Attachment #1: Type: text/plain, Size: 181 bytes --]

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

[-- Attachment #2: Type: text/html, Size: 1998 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Conflict with orgstruct-mode (#27)
  2018-03-14 14:38 Conflict with orgstruct-mode (#27) Veera
                   ` (3 preceding siblings ...)
  2018-03-23 19:52 ` Veera
@ 2018-03-23 20:29 ` Kyle Meyer
  4 siblings, 0 replies; 6+ messages in thread
From: Kyle Meyer @ 2018-03-23 20:29 UTC (permalink / raw)
  To: kyleam/snakemake-mode; +Cc: Kyle Meyer, Your activity

[-- Attachment #1: Type: text/plain, Size: 253 bytes --]

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

[-- Attachment #2: Type: text/html, Size: 1868 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2018-03-23 20:29 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-03-14 14:38 Conflict with orgstruct-mode (#27) Veera
2018-03-15 11:57 ` Kyle Meyer
2018-03-18 18:30 ` Kyle Meyer
2018-03-23 19:52 ` Veera
2018-03-23 19:52 ` Veera
2018-03-23 20:29 ` Kyle Meyer

Code repositories for project(s) associated with this public inbox

	https://git.kyleam.com/snakemake-mode/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).