summaryrefslogtreecommitdiffstats
path: root/Misc
Commit message (Collapse)AuthorAgeFilesLines
* Add LDLAST to the list of variables processed by the sed script.Guido van Rossum1998-05-201-0/+1
|
* (py-ask-about-save): New variable used inBarry Warsaw1998-05-191-5/+13
| | | | | py-execute-import-or-reload. Same semantics as compilation-ask-about-save.
* (py-execute-string): Bind to C-c C-s, and put on menuBarry Warsaw1998-05-191-0/+2
|
* (py-stringlit-re): Another ME patch to recognize SQTQs and DQTQsBarry Warsaw1998-05-191-2/+20
| | | | | (single and double quoted triple quoted strings :-) with embedded single like-quotes. Also recognizes raw prefix.
* More ME patches:Barry Warsaw1998-05-191-4/+86
| | | | | | | | | | | | | | (py-execute-import-or-reload): Cool new command that imports or reloads the current file as a module, so as not to clutter the global namespace. Bound to C-c C-m. (py-execute-def-or-class): New command that sends the current def or class to the interpreter. Bound to C-M-x. (py-execute-string): New command that sends arbitrary string to the interpreter. Not bound by default. (py-describe-mode): Doco updates.
* (beginning-of-python-def-or-class): Renamed toBarry Warsaw1998-05-191-52/+82
| | | | | | | | | py-beginning-of-def-or-class, and defaliased for backwards compatibility. ME patch to add optional second argument, count. (end-of-python-def-or-class): Renamed to py-end-of-def-or-class, and defaliased for backwards compatibility. ME patch to add optional second argument, count.
* More ME patches:Barry Warsaw1998-05-191-2/+7
| | | | | | | | (py-shell): Recognize the Python debugger prompt (py-jump-to-exception): Force into python-mode any buffer that gets jumped to on exception. Cope with py-exception-buffer possibly a cons.
* #Documentation and comment typos patch given by Michael Ernst. MoreBarry Warsaw1998-05-191-17/+17
| | | | #of his patches to follow.
* Add some help for AIX. (Konrad Hinsen)Guido van Rossum1998-04-301-0/+4
|
* (py-compute-indentation): Use forward-comment to skip over allBarry Warsaw1998-04-161-1/+1
| | | | whitespace and comment noise.
* Some more new stuff.Guido van Rossum1998-04-131-13/+43
|
* Two more, for beta testers who reported real bugs.Guido van Rossum1998-04-131-0/+2
|
* Added changes from 1.5 to 1.5.1.Guido van Rossum1998-04-101-904/+1264
| | | | | The sections are now in a more useful order: the most recent changes are listed first.
* Document -x too.Guido van Rossum1998-04-101-0/+8
|
* Document -t flag.Guido van Rossum1998-04-101-1/+9
|
* Jeff EplerGuido van Rossum1998-04-101-0/+1
|
* (py-toggle-shells): Added a message in the minibuf.Barry Warsaw1998-04-101-0/+1
|
* Quick and extremely dirty hacks to toggle between using CPython andBarry Warsaw1998-04-091-1/+59
| | | | | | | | | | | | | | | JPython interpreters. This implementation may suck. (py-jpython-command, py-jpython-command-args): New variables. (py-mode-map): py-toggle-shells bound to C-c C-t (py-toggle-shells): Command to toggle between using CPython (the default) and JPython. This is buffer local, and notice the mode-name change. (py-shell): Use either CPython or JPython. Note that py-execute-* still needs to be modified.
* Tons of new names...Guido van Rossum1998-04-091-0/+23
|
* (imenu-example--python-class-regexp): Fix to recognize Module.Class inBarry Warsaw1998-04-041-1/+1
| | | | inheritance list.
* #Oops, I lost the CVS/RCS $Revision$Barry Warsaw1998-04-021-1/+1
|
* (py-compute-indentation): When looking at a continuation line insideBarry Warsaw1998-04-011-1/+6
| | | | | | | | | | | an open paren, do a better job of reindenting the line. For example: def foo(): print 'hello %s, %d' % ( a, b) Hit TAB on the line starting with `a'. Without this patch this line will never be reindented.
* Two patches for Emacs 20.2 compatibility:Barry Warsaw1998-04-011-5/+4
| | | | | | | | | (py-compute-indentation): int-to-char isn't defined in Emacs, but we don't really need it anyway, so just remove this conversion. XEmacs is happy either way. (py-parse-state): The Emacs branch (i.e. w/o buffer-syntactic-context) wasn't adjusting point correctly.
* (py-postprocess-output-buffer): Return t if an exception was found,Barry Warsaw1998-03-261-9/+13
| | | | | | | | | | otherwise return nil. (py-execute-region): When executing the buffer asynchronously in a subprocess, if an exception occurred, show both the output buffer and the file containing the exception, leaving point on the source line containing bottom-most error in the traceback. If no exception occurred, jump to the output buffer (no change).
* (py-execute-region): Watch out for shell-command-on-region killing aBarry Warsaw1998-03-251-4/+10
| | | | zero sized output buffer.
* Removed all the mixed indentation face stuff. It's not as helpful asBarry Warsaw1998-03-201-9/+0
| | | | | it at first seems. I think we've got a good idea of what to do, but it'll be a bit of work... for later.
* (py-tab-face): => py-mixed-indentation-faceBarry Warsaw1998-03-201-5/+6
| | | | | | (python-font-lock-keywords): Better regexp given by Sjoerd. This matches only mixed indentation which is probably more useful than matching all tabs.
* (py-in-literal, py-fast-in-literal): New functions (mostly) stolenBarry Warsaw1998-03-191-24/+45
| | | | | | | | from CC Mode. (py-guess-indent-offset): Teach it about colons in `literals' (e.g. comments and strings). Don't false hit colons in literals; keep searching for a real block introducing line.
* #minor change to eval-while-compile so that it must both findBarry Warsaw1998-03-191-4/+7
| | | | | #custom.el and have an up-to-date version (i.e. one that defines #defcustom -- which Emacs 19.34's by default does not).
* (py-tab-face, python-font-lock-keywords): Color all tabs at the startBarry Warsaw1998-03-191-0/+8
| | | | | | | of a line in py-tab-face to aid in seeing mixed tab/space indentation. This face defaults to the `default' face so it is unobtrusive until you `M-x customize-face' py-tab-face to something obnoxious like "Yellow".
* (py-smart-indentation): Updated docstring for new policy.Barry Warsaw1998-03-161-8/+12
| | | | | (python-mode): Implement new policy: never turn indent-tabs-mode on. Only turn it off if tab-width != py-indent-offset.
* #(py-smart-indentation): Small fixes for clarity in the docstring.Barry Warsaw1998-03-131-5/+4
|
* (python-mode): Removed vi vi vi hack for setting the tab width from aBarry Warsaw1998-03-131-25/+0
| | | | | magic comment. Now Guido only has to worry about the northern Wisconsin Braces Freedom Fighter Militia.
* (py-smart-indentation): New variable which controls the automagicBarry Warsaw1998-03-131-20/+49
| | | | | | | | | | setting of py-indent-offset and indent-tabs-mode. (python-mode): After python-mode-hook is run, do the automagic calculation if py-smart-indentation is non-nil. (py-parse-state): Get rid of unused variable to quiet the byte-compiler.
* Add LINKFORSHARED and LDLAST as in the main Makefile.Guido van Rossum1998-03-111-2/+4
|
* (py-execute-region): Simplified calculation of temporary file name.Barry Warsaw1998-02-251-2/+3
| | | | | When running synchronously in a subproc buffer, be sure to pop-to-buffer so the output is visible.
* (py-temp-directory): Minor docstring nit.Barry Warsaw1998-02-251-1/+1
|
* (py-master-file): Fixed some typos in the docstring.Barry Warsaw1998-02-251-4/+4
|
* (py-compute-indentation): Several changes made to improve navigationBarry Warsaw1998-02-121-14/+33
| | | | | | | | | | | | | | | | over and around triple-quoted strings: - move the beginning-of-line to above the p-p-s call - in the `t' clause of the big cond, where we skip over triple-quoted strings, first find out if we're looking at a single or TQS, then skip over it in one fell swoop, instead of trying to loop over skipage of SQS's. (py-parse-state): Implement XEmacs only hack to more accurately figure out whether we're in a string or not. Can't do this in Emacs because it lacks the necessary primitive, so we just do it the old (and mostly accurate, but foolable) way for Emacs.
* (py-scroll-process-buffer): Default value changed to nil to act moreBarry Warsaw1998-02-061-1/+1
| | | | like default shell-mode behavior.
* (py-parse-state): When looking for landing inside triple-quotedBarry Warsaw1998-02-051-1/+1
| | | | | | string, don't check for indentation at column zero. This will falsely hit a line inside a docstring that starts at column zero but ends in a colon.
* (py-python-command-args): New variable, allows user to customize theBarry Warsaw1998-02-051-1/+6
| | | | arguments past to py-python-command when invoking the Python shell.
* (py-outdent-p): When looking at the previous line, watch out forBarry Warsaw1998-01-211-1/+3
| | | | | | | | | | | | | | | continuation lines. This fixes this bug report, reported by Frank Stajano. # But if I split the "raise" line and reindent, the else WRONGLY goes up a # level (?!?) while condition1: if condition2: raise error3, \ moreInfo4 else: # meant to close "if condition2" action5()
* (py-goto-initial-line): Shut up the byte compiler.Barry Warsaw1998-01-211-1/+1
|
* (py-mode-map): Add a binding of C-m to py-newline-and-indent. This isBarry Warsaw1998-01-211-1/+2
| | | | | | | | | | | a religious issue: RMS decrees that the Enter (RET) key should just do a newline and a LFD (C-j) should do a newline and indent (i.e. the python-mode version of this). Almost everyone I know disagrees and finds that RET should do newline and indent. Almost everyone hacks their modes to do this, if they know how. Because it's hard for newbies to figure out how to do this, and because most DOS keyboards lack a LFD (leaving users to the more obscure C-j), I think it makes better sense to add this default binding.
* (py-compute-indentation): In the most common case, where indentationBarry Warsaw1998-01-201-1/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | is based on the line above, watch out for landing inside a triple quoted string. In this case, use iterative search + parse-partial-sexp backwards to find the beginning of the string. Note this does affect performance, but very little in the common cases (I hope). It could be made *much* faster by adding Emacs and XEmacs dependent code -- different code naturally. :-( Fixes the following reported bug: if len(sys.argv) >= 6: # More lines here fptr = open('/etc/hosts', 'w') fptr.write("""# /etc/hosts -- autocreated by /etc/ppp/ip-up # # Address from pppd %-15s %s # For loopbacking 127.0.0.1 localhost 255.255.255.255 broadcast """ % (ipaddr, ipname) ) os.chmod('/etc/hosts', 0644)
* (py-master-file): New buffer-local variable which can be set in theBarry Warsaw1998-01-201-0/+24
| | | | | | | | | file local variable section of a file. When set, and the user hits C-c C-c, this file gets executed instead of the buffer's file. Idea given by Roy Dragseth <royd@math.uit.no>, but implemented differently. (py-execute-buffer): Support py-master-file variable. If this names a relative path, default-directory is prepended via expand-file-name.
* delete gMakefile, clarify Makefile.pre.inGuido van Rossum1998-01-131-2/+1
|
* No longer needed, sez Jim.Guido van Rossum1998-01-131-83/+0
|
* Added from 1.5b2 to 1.5.Guido van Rossum1997-12-311-0/+75
|