Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

modified python-parser code for building multi level fold tree. #64

Merged
merged 1 commit into from
Mar 31, 2020

Conversation

Csomnia
Copy link

@Csomnia Csomnia commented Jan 24, 2018

#55

@sawan
Copy link

sawan commented Jan 26, 2018

Thank you, this works for second level nodes -- tested via patching latest from ELPA.

But not for anything indented beyond that for, examples nested loops, try-catch, etc. Is it possible to have these? As they are clearly indentation dependent.

@wbolster
Copy link

@sawan you could try removing the python specific parser from origami-parser-alist. i think the fallback is purely indentation based.

@sawan
Copy link

sawan commented Apr 13, 2018

Ah... how do I do that please?

@wbolster
Copy link

many ways to do it. easiest is via the customize interface:

M-x customize-variable RET origami-parser-alist RET

@wbolster
Copy link

alternatively, with imenu parsing from #69 python looks like this:

image

@VelikiiNehochuha
Copy link

Done python parser for any block of codes (if try for, etc.. ) #91

@gregsexton
Copy link
Owner

This is great.

@gregsexton gregsexton merged commit e558710 into gregsexton:master Mar 31, 2020
@conao3
Copy link

conao3 commented Apr 6, 2020

This change pollutes the user's python- namespace because it defines a python-subparser globally.
I recommend revert it.

@wbolster
Copy link

wbolster commented Apr 6, 2020

hey @conao3 maybe don't pop out of nowhere to shout negative things. it's rude behaviour.

instead, you could have written something this:

'it seems this change introduced a function that looks like it's on the global python namespace (python-subparser), and it doesn't belong there. i suggest renaming it to origami-python-subparser. let me know if i should open a pull request for this.'

see the difference? no bitching, no mention of blindly reverting (counterproductive suggestion) but an actionable improvement with an offer to help.

in fact, opening a pull request to improve the situation would probably have taken you less time than writing your negative comment.

you're welcome.

@conao3
Copy link

conao3 commented Apr 6, 2020

In fact, I think it's better to use lambda or cl-flet than to use origami-python- prefixes.
It seems a bit odd to dynamically declare a global function in some function...

@gregsexton
Copy link
Owner

I'll merge a PR

@alphapapa
Copy link

hey @conao3 maybe don't pop out of nowhere to shout negative things. it's rude behaviour.

instead, you could have written something this:

'it seems this change introduced a function that looks like it's on the global python namespace (python-subparser), and it doesn't belong there. i suggest renaming it to origami-python-subparser. let me know if i should open a pull request for this.'

see the difference? no bitching, no mention of blindly reverting (counterproductive suggestion) but an actionable improvement with an offer to help.

in fact, opening a pull request to improve the situation would probably have taken you less time than writing your negative comment.

you're welcome.

@wbolster Naoya and I have our differences sometimes, but I'll stand up for him here. He simply observed a problem. He was not rude.

In contrast, your comment was very rude and completely uncalled for. What you accuse him of doing is actually what you have done.

There are real people on the other end of these screens. What we're talking about is just code. There's no need to be hostile.

@conao3
Copy link

conao3 commented Apr 14, 2020

While we may get confused about saying thank you, I simply want to say. Thank you, @alphapapa.

Anyway, it's been over a week without any corrections since I reported.
@gregsexton needs to fulfill its responsibilities as the owner of this project.

This package has many users and 56,000 over DLs from MELPA.
If @gregsexton are tired and do not want to manage this package in the future, you may want to transfer it to emacsorphanage and let someone else manage it.

FYI: @jcs090218

@wbolster
Copy link

Anyway, it's been over a week without any corrections since I reported.

@gregsexton made it clear that he would merge a pr and since you have a clear idea on what the best fix would look like, a pull request is the way to get this issue to move forward.

in any case, let's keep the right perspective: this seems a cosmetic issue only, and there is really no need to talk about

@gregsexton needs to fulfill its responsibilities as the owner of this project

when a cosmetic issue isn't addressed within a few days.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants