summaryrefslogtreecommitdiffstats
path: root/Misc
Commit message (Collapse)AuthorAgeFilesLines
* #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
|
* New blood.Guido van Rossum1997-12-301-0/+5
|
* Typed in the relevant changes since 1.5b1.Guido van Rossum1997-12-111-2/+172
|
* Doug Marien.Guido van Rossum1997-12-111-0/+1
|
* Update to the Big Comment at the top of the file. It should betterBarry Warsaw1997-12-111-24/+43
| | | | | explain what the users of the various Emacsen have to do to get this all working.
* New names.Guido van Rossum1997-12-101-0/+3
|
* Added some links to OO-Browser, given by Harri Pasanen.Barry Warsaw1997-12-061-2/+8
| | | | Updated the to do list.
* (py-jump-on-exception): Variable which if t, means that if anBarry Warsaw1997-12-031-7/+19
| | | | | exception occurs in a synchronous Python subprocess, the mode will automatically jump to the innermost exception.
* Removed redundant eval-when-compile.Barry Warsaw1997-12-031-19/+13
| | | | | | | | | | | (python-mode): Conditionalize imenu initializations to when we can safely require imenu. Under Emacs this should prevent python-mode from hosing the global value of imenu-create-index-function and messing things up for all other modes. Problem identified by Christian Egli. (py-describe-mode): py-delete-char => py-electric-backspace. Given by Christian Egli.
* (python-mode): Patch to make font-lock work automatically for Emacs.Barry Warsaw1997-12-021-0/+1
| | | | Unnecessary for XEmacs, but oh well...
* Test for an up-to-date Custom library when byte-compiling, and issueBarry Warsaw1997-12-021-1/+20
| | | | | an informative message when one cannot be found, as is the case with a vanilla Emacs 19.34 (and NTEmacs 19.34).
* Add attributions to Jeffrey Ollie and Tim Peters for re.py.Guido van Rossum1997-12-021-6/+6
|
* Require 'cl when compiling so that the push macro gets picked in EmacsBarry Warsaw1997-12-011-0/+2
| | | | 19.34.
* (py-traceback-line-re): Relaxation of regexp to catch SyntaxErrors.Barry Warsaw1997-11-271-2/+2
| | | | Harri Pasanen.
* (py-process-filter): py-delete-file-silently is obsolete. Use aBarry Warsaw1997-11-261-1/+1
| | | | py-safe wrapped delete-file call instead.
* (py-compute-indentation): Check for multiline stringness andBarry Warsaw1997-11-261-4/+4
| | | | | commentness so that hitting TAB in the middle of a comment will still indent the line.
* (py-mode-map): Bind py-mark-def-or-class to C-M-h with a differentBarry Warsaw1997-11-261-2/+3
| | | | | spelling so that it doesn't clobber the standard M-BS binding. This should be portable between X/Emacsen.
* Added list of what's new in 1.5b1. Changed intro and some section titles.Guido van Rossum1997-11-261-11/+216
|
* Four more valuable contributors...Guido van Rossum1997-11-261-0/+4
|
* (python-mode): Make imenu-create-index-function buffer local.Barry Warsaw1997-11-261-3/+4
| | | | | | | | | (imenu-example--create-python-index-engine): Use buffer-substring-no-properties. Also, don't use imenu-create-submenu-name. Apparently it is obsolete. These Imenu patches were given by Christian Egli <christian.egli@stest.ch>
* (py-mark-def-or-class): Added an exchange-point-and-mark and aBarry Warsaw1997-11-261-2/+4
| | | | | | | | | py-keep-region-active so that the marked def/class gets the zmacs-region or transient-mark region highlighted. Also point should be left at the end of the marked region. (py-mode-map): Moved py-mark-def-or-class to M-C-h to conform to Emacs major mode standards.