discussion and development of Emacs Snakemake mode
 help / color / mirror / Atom feed
* indentation problems (#26)
@ 2018-02-12  2:27 Elmar Pruesse
  2018-02-12  3:20 ` Kyle Meyer
  2020-04-13 23:52 ` Kyle Meyer
  0 siblings, 2 replies; 3+ messages in thread
From: Elmar Pruesse @ 2018-02-12  2:27 UTC (permalink / raw)
  To: kyleam/snakemake-mode; +Cc: Subscribed

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

Since updating to the newest version, I've got problems with the indentation. For some reason, the set of indentation levels rotated through iteratively is one too short. I.e. the maximum indentation I get with `<tab>` is equal to the previous statement, even if that was a field. It starts at the right place after `<return>`, but tab won't get me back there...

```
rule:
message:
```

I did upgrade a bunch of things at once, of course, so the cause might be somewhere else. Indentation does work for me in python-mode though.

Any suggestions on what might be causing this?

-- 
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/26

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

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

* Re: indentation problems (#26)
  2018-02-12  2:27 indentation problems (#26) Elmar Pruesse
@ 2018-02-12  3:20 ` Kyle Meyer
  2020-04-13 23:52 ` Kyle Meyer
  1 sibling, 0 replies; 3+ messages in thread
From: Kyle Meyer @ 2018-02-12  3:20 UTC (permalink / raw)
  To: kyleam/snakemake-mode; +Cc: Kyle Meyer, Your activity

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

> Since updating to the newest version

Do you happen to recall what version(-ish) you upgraded from?

> Any suggestions on what might be causing this?

Hmm, I'm not having any luck reproducing this (Emacs 25.3, GNU/Linux).
Starting with point in front of "message", TAB indents it four spaces.

You could try debugging `snakemake--calculate-indentation`,
particularly

https://github.com/kyleam/snakemake-mode/blob/6cf6d20db2e5253ce3f86e302651faa28f220aa7/snakemake-mode.el#L258-L269

That should return the value of `snakemake-indent-field-offset` (4 by
default).

> I did upgrade a bunch of things at once, of course, so the cause might be somewhere else.

You could also try testing with emacs -Q, and then just loading
snakemake-mode and its dependencies (dash, magit-popup).

If you have a local clone of the repo, running `make test` would tell
you if the indentation tests (ran with emacs -Q) are passing for you.

What version of Emacs are you using?


-- 
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/26#issuecomment-364820394

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

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

* Re: indentation problems (#26)
  2018-02-12  2:27 indentation problems (#26) Elmar Pruesse
  2018-02-12  3:20 ` Kyle Meyer
@ 2020-04-13 23:52 ` Kyle Meyer
  1 sibling, 0 replies; 3+ messages in thread
From: Kyle Meyer @ 2020-04-13 23:52 UTC (permalink / raw)
  To: kyleam/snakemake-mode; +Cc: Kyle Meyer, Your activity

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

Closed #26.

-- 
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/26#event-3228954437

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

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

end of thread, other threads:[~2020-04-13 23:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-02-12  2:27 indentation problems (#26) Elmar Pruesse
2018-02-12  3:20 ` Kyle Meyer
2020-04-13 23:52 ` Kyle Meyer

discussion and development of Emacs Snakemake mode

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://inbox.kyleam.com/snakemake-mode/0 snakemake-mode/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 snakemake-mode snakemake-mode/ https://inbox.kyleam.com/snakemake-mode \
		snakemake-mode@inbox.kyleam.com
	public-inbox-index snakemake-mode

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://news.yhetil.org/yhetil.emacs.snakemake-mode


code repositories for the project(s) associated with this inbox:

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

AGPL code for this site: git clone http://ou63pmih66umazou.onion/public-inbox.git