Re: [bug #7872] Suggested changes in Python syntax bindings
Leonard den Ottolander wrote: Hi Roland, On Mon, 2005-05-30 at 08:28, Roland Illig wrote: Just because all other directories have their own ChangeLog, too. Don't you like it? O yes, I do actually. Only I was a bit surprised the same change log entries ended up in src/ChangeLog for HEAD. I didn't quite understand this discrepancy. The separate change log for syntax as such is fine :) . I didn't touch src/ChangeLog for this. Roland ___ Mc-devel mailing list http://mail.gnome.org/mailman/listinfo/mc-devel
[bug #7872] Suggested changes in Python syntax bindings
Follow-up Comment #12, bug #7872 (project mc): Roland, thanks for fixing the removal of @PERL@ and adding a few more makefile interpreters in the file matches. Could you please commit these fixes to PRE as well? As long as it is uncertain from which branch we will eventually see a release I'd like to see such small and simple fixes committed to MC_4_6_1_PRE as well. TIA. ___ Reply to this item at: http://savannah.gnu.org/bugs/?func=detailitemitem_id=7872 ___ Message sent via/by Savannah http://savannah.gnu.org/ ___ Mc-devel mailing list http://mail.gnome.org/mailman/listinfo/mc-devel
[bug #7872] Suggested changes in Python syntax bindings
Follow-up Comment #10, bug #7872 (project mc): I committed a patch to the syntax/Syntax file that matches this: file ..\*\\.(py|PY)$ Python\sProgram ^#!.\*[\s/]python So the first line only has to contain python (for /usr/bin/env) or /python (for regular interpreters). ___ Reply to this item at: http://savannah.gnu.org/bugs/?func=detailitemitem_id=7872 ___ Nachricht geschickt von/durch Savannah http://savannah.gnu.org/ ___ Mc-devel mailing list http://mail.gnome.org/mailman/listinfo/mc-devel
[bug #7872] Suggested changes in Python syntax bindings
Update of bug #7872 (project mc): Status:None = Fixed Open/Closed:Open = Closed Release: 4.6.0 = current (CVS or snapshot) Platform Version: Cygwin = All ___ Follow-up Comment #11: I committed the change for Python and extended it to also match \0 and \12. ___ Reply to this item at: http://savannah.gnu.org/bugs/?func=detailitemitem_id=7872 ___ Nachricht geschickt von/durch Savannah http://savannah.gnu.org/ ___ Mc-devel mailing list http://mail.gnome.org/mailman/listinfo/mc-devel
[bug #7872] Suggested changes in Python syntax bindings
Follow-up Comment #6, bug #7872 (project mc): [...] We could just as well start matching all possible paths to the binaries. i can't claim i'd understand that paragraph. :} [...] If you could comment on the usefulness [...] i'm can't claim to be a python wiz, either. http://docs.python.org/ref/strings.html the misunderstanding wrt. comments stems from the fact, that a string right after the def: of a function is a doc string. ___ Reply to this item at: http://savannah.gnu.org/bugs/?func=detailitemitem_id=7872 ___ Message sent via/by Savannah http://savannah.gnu.org/ ___ Mc-devel mailing list http://mail.gnome.org/mailman/listinfo/mc-devel
Re: [bug #7872] Suggested changes in Python syntax bindings
On Mon, 2005-05-23 at 20:08 +, Leonard den Ottolander wrote: Follow-up Comment #7, bug #7872 (project mc): My question is why do we need the extra code to match '/usr/bin/env' if all we need to match is 'perl'? It seems redundant. Like trying to match '/usr/bin/perl', '/usr/local/bin/perl' etc. instead of just 'perl'. Good idea, let's do it for all interpreters. -- Regards, Pavel Roskin ___ Mc-devel mailing list http://mail.gnome.org/mailman/listinfo/mc-devel
Re: [bug #7872] Suggested changes in Python syntax bindings
Hi Pavel, On Mon, 2005-05-23 at 22:43, Pavel Roskin wrote: On Mon, 2005-05-23 at 20:08 +, Leonard den Ottolander wrote: Follow-up Comment #7, bug #7872 (project mc): My question is why do we need the extra code to match '/usr/bin/env' if all we need to match is 'perl'? It seems redundant. Like trying to match '/usr/bin/perl', '/usr/local/bin/perl' etc. instead of just 'perl'. Good idea, let's do it for all interpreters. Do what for all interpreters? Match all possible paths? Are you kidding? Or just misreading me? Or do you say that the extra match for '/usr/bin/env' serves a useful purpose? Which? Leonard. -- mount -t life -o ro /dev/dna /genetic/research ___ Mc-devel mailing list http://mail.gnome.org/mailman/listinfo/mc-devel
[bug #7872] Suggested changes in Python syntax bindings
Follow-up Comment #8, bug #7872 (project mc): i'd prefer to have the exact match as a simple correctness check. oh, well. is just the same as , except that you can embed physical newlines in this type of string. actually reading the BNF in the page i linked to would have revealed that (as it did to me now). don't act more stupid than you are. ;) ___ Reply to this item at: http://savannah.gnu.org/bugs/?func=detailitemitem_id=7872 ___ Message sent via/by Savannah http://savannah.gnu.org/ ___ Mc-devel mailing list http://mail.gnome.org/mailman/listinfo/mc-devel
[bug #7872] Suggested changes in Python syntax bindings
Follow-up Comment #9, bug #7872 (project mc): I just don't feel like actually verifying this. Duh. ___ Reply to this item at: http://savannah.gnu.org/bugs/?func=detailitemitem_id=7872 ___ Message sent via/by Savannah http://savannah.gnu.org/ ___ Mc-devel mailing list http://mail.gnome.org/mailman/listinfo/mc-devel
[bug #7872] Suggested changes in Python syntax bindings
Follow-up Comment #4, bug #7872 (project mc): For the Syntax.diff patch, I suggest that we only check for ^#!.\*/perl This is much easier to read. Roland ___ Reply to this item at: http://savannah.gnu.org/bugs/?func=detailitemitem_id=7872 ___ Nachricht geschickt von/durch Savannah http://savannah.gnu.org/ ___ Mc-devel mailing list http://mail.gnome.org/mailman/listinfo/mc-devel
[bug #7872] Suggested changes in Python syntax bindings
Follow-up Comment #5, bug #7872 (project mc): The use of matching /usr/bin/env seems rather pointless if you are already matching the interpreter on the first line. We could just as well start matching all possible paths to the binaries. Regarding the syntax additions, I don't do python yet. If you (Oswald) could comment on the usefulness of the fixes from the original poster I'd be happy to commit those. ___ Reply to this item at: http://savannah.gnu.org/bugs/?func=detailitemitem_id=7872 ___ Message sent via/by Savannah http://savannah.gnu.org/ ___ Mc-devel mailing list http://mail.gnome.org/mailman/listinfo/mc-devel
[bug #7872] Suggested changes in Python syntax bindings
Follow-up Comment #3, bug #7872 (project mc): err, i misread it. in fact, this is very similar to what i have submitted some time ago (and somehow i thought it was already committed ... which is sort of like believing in santa claus ;). it's only pointless to look for env somewhere else than in /usr/bin/. here is my complete patch. ___ Additional Item Attachment: File name: Syntax.diffSize:0 KB patch making mcedit recognize scripts that invoke the interpreter via /usr/bin/env http://savannah.gnu.org/bugs/download.php?item_id=7872item_file_id=2524 ___ Reply to this item at: http://savannah.gnu.org/bugs/?func=detailitemitem_id=7872 ___ Message sent via/by Savannah http://savannah.gnu.org/ ___ Mc-devel mailing list http://mail.gnome.org/mailman/listinfo/mc-devel
[bug #7872] Suggested changes in Python syntax bindings
Follow-up Comment #1, bug #7872 (project mc): What's the point of the (env\s)? change? And isn't 'context ' a comment? Don't you mean to see changes to the 'context '? Please be so kind to provide a patch (diff -up) so it is more clear what you do want to see changed. ___ Reply to this item at: http://savannah.gnu.org/bugs/?func=detailitemitem_id=7872 ___ Message sent via/by Savannah http://savannah.gnu.org/ ___ Mc-devel mailing list http://mail.gnome.org/mailman/listinfo/mc-devel
[bug #7872] Suggested changes in Python syntax bindings
Follow-up Comment #2, bug #7872 (project mc): What's the point of the (env\s)? change? pointless, imo. env located in any other directory is entirely against the idea of using it in the first place ... And isn't 'context ' a comment? nope. read the lang spec. :-P ___ Reply to this item at: http://savannah.gnu.org/bugs/?func=detailitemitem_id=7872 ___ Message sent via/by Savannah http://savannah.gnu.org/ ___ Mc-devel mailing list http://mail.gnome.org/mailman/listinfo/mc-devel