Commit Graph

352 Commits

Author SHA1 Message Date
Barry Warsaw 2518c67984 (mark-python-def-or-class): Renamed to py-mark-def-or-class globally.
(py-mode-map): Moved py-mark-def-or-class from M-C-h to C-c C-m since
the old binding conflicts with the standard global backward-kill-word
binding, and this new binding is more conformant with other language
modes.  Moved py-mark-block to C-c C-k.
1997-11-05 00:51:08 +00:00
Barry Warsaw 6d48c4a00b (py-backspace-function): New variable.
(py-electric-backspace, py-electric-delete): Support the XEmacs 20 Way
for backspace and delete mappings.  In XEmacs 19, Emacs 19, and Emacs
20, both backspace and delete keysyms are bound to
py-electric-backspace.  In XEmacs 20, backspace and delete keysyms are
bound separately, allowing the user to specify forward or backward
deletion of the delete keysym through the variable
delete-key-deletes-forward.  All this is the Right Way To Do It and
this implementation was largely ripped from CC Mode.
1997-11-04 19:21:50 +00:00
Barry Warsaw a97a3f34d6 First round of changes, mostly subprocess stuff.
(py-execute-file): Better interaction with comint.  Set
comint-scroll-to-bottom-on-output to t.  Wrapper buffer change in
unwind-protect in case process filter fails.

(py-shell): Start Python with -i flag to fix tty problem on Windows;
presumably -- not yet tested.

(py-clear-queue): New function to clear the pending exec file queue.
Not currently keybound.

(py-execute-region, py-execute-buffer): Added optional async flag (use
via C-u prefix) to execute the region in a new asynchrous buffer, even
if the Python shell is running.

(py-append-to-process-buffer): Removed as obsolete.  Comint provides
this functionality.

Removed fbound test defun of match-string.  All modern X/Emacsen have
this function.
1997-11-04 18:47:06 +00:00
Guido van Rossum 615022fbf8 Doing the most complicated CVS dance I've ever seen. Barry has had
his *own* RCS file for python-mode.el, and I've agreed that it would
be better if his version was in the Python source tree.  However I
don't want to totally get rid of the old RCS file (which has
interesting info such as which version was in which Python release).
So I've moved the old one to python-mode-old.el behind the scenes,
and this checkin message indicates that I'm now deleting it.
If you do an update, you will actually get Barry's *new* version!
1997-11-03 17:14:19 +00:00
Barry Warsaw affc0ca0e8 Changes in preparation for integrating into the Python CVS tree.
Introductory comment updates.

(python-font-lock-keywords): Added "assert"

(py-block-closing-keywords-re): New variable.

(py-no-outdent-re): Rewrite to use py-block-closing-keywords-re.

(py-shell): py-process-filter should no longer be necessary.  Comint
should do all the work.  Note that more fixes to the py-shell process
mechanism need to be done.

(py-execute-region): Check for empty region.  Some questionable
changes to set-buffer after shell-command-on-region.  Again, this all
needs to be closely examined for X/Emacs 19/20 compatibility.

(py-goto-beyond-final-line): py-parse-partial-sexp-works-p should no
longer be necessary.

(py-statement-closes-block-p): Use py-block-closing-keywords-re.
1997-11-03 16:59:38 +00:00
Guido van Rossum 9a513efffa Final touch -- Don's SGI_ABI patches. 1997-10-09 23:32:24 +00:00
Guido van Rossum 91922677ea Don Beaudry's changes to support SGI_ABI on Irix 6.x. 1997-10-09 20:24:13 +00:00
Guido van Rossum 764a377cef Typo in description of news in errno; added setlocale() call. 1997-10-08 22:49:49 +00:00
Guido van Rossum b68b77f62d A few last-minute additions and some rearrangements and corrections.
What's "xlib"?  I took the line that mentioned it out.
1997-10-07 19:12:50 +00:00
Barry Warsaw 93374539ad Updated for Python 1.5, including my experiences with Purify on
Solaris 2.6 and with a threaded interpreter.  I also included my name
and email address.
1997-10-07 15:50:58 +00:00
Guido van Rossum 43b26ea0fa Whole bunch of additions... 1997-10-07 14:52:19 +00:00
Guido van Rossum 92664b890b Completed the changes between 1.5a3 and now. Not yet sorted though. 1997-10-07 00:12:43 +00:00
Guido van Rossum 1f83ccee88 Done with adding changes from 1.4 till 1.5a3. 1997-10-06 21:04:35 +00:00
Guido van Rossum 474ba3bd46 The directory containing config.h has changed. 1997-10-05 03:01:28 +00:00
Fred Drake bfeb74d4ca install: New target that installs shared modules in
$exec_prefix/lib/python$VERSION/site-packages by default.
1997-10-04 04:56:40 +00:00
Guido van Rossum 4cf4de5d11 Brought up to date with new options and env vars. 1997-09-08 04:06:15 +00:00
Barry Warsaw c12c62ee5a (py-parse-partial-sexp-works-p): Removed as obsolete. All current
Emacs and XEmacs versions should have working parse-partial-sexp's.

(py-emacs-features): Defined as future placeholder.
1997-09-04 04:18:07 +00:00
Guido van Rossum 522578e90f Complete log of changes since 1.5a3 at the end. 1997-08-28 03:43:21 +00:00
Guido van Rossum 2da391f387 I'm tired -- checking in more news items. This isn't complete; I'm
about halfways.
1997-08-18 21:17:32 +00:00
Guido van Rossum 6688d35c43 Removed ancient FAQ from distribution 1997-08-18 19:55:01 +00:00
Guido van Rossum 61000333bf Another checkpoint -- reorganized, in sections. 1997-08-15 04:39:58 +00:00
Guido van Rossum 34900f8147 . 1997-08-15 02:52:20 +00:00
Guido van Rossum f0b69f01eb Checkpoint checkin of list of changes. Much more to follow, but it's
late...
1997-08-15 02:50:47 +00:00
Barry Warsaw 516b6208c7 #Fixed two byte-compiler errors 1997-08-09 06:43:20 +00:00
Barry Warsaw c72c11c9e3 #Checkpointing X/Emacs 20'fication of this mode. 1997-08-09 06:42:08 +00:00
Barry Warsaw 7d6b7d3f54 #Bumping to version 3.0 1997-08-08 16:19:03 +00:00
Guido van Rossum fb84255e67 New version of Vladimir Marangozov's AIX hacks -- simpler etc. 1997-08-06 23:42:07 +00:00
Guido van Rossum bef03ae032 Adapted to the new build system. 1997-07-19 22:52:43 +00:00
Guido van Rossum 8aea8d9600 Remove -s option and $PYTHONSUPPRESS environment variable. 1997-07-19 20:46:22 +00:00
Guido van Rossum 5624abd086 Emptied (in expectation of a laundry list of what's new in 1.5). 1997-07-19 20:45:30 +00:00
Guido van Rossum ecd3b153d5 Added note about libpython1.5.a. 1997-07-19 20:44:33 +00:00
Guido van Rossum 132cd063f5 Some new names. 1997-07-19 20:44:09 +00:00
Barry Warsaw e6648967b7 (py-shell): Remove support for Emacs 18, implicitly add support for
Emacs 20, and bind TAB key to self-insert-command in *Python* process.
1997-07-10 15:58:36 +00:00
Guido van Rossum 821a558f39 Moved the 1.4 NEWS file here (it had to happen someday...). 1997-05-23 04:05:31 +00:00
Guido van Rossum cbf1b9c40e Added warning about the optimizer bug on AIX 4.2.1 1997-05-22 20:20:57 +00:00
Guido van Rossum d0c87ee6c4 Oops, another forgotten renaming: varobject -> PyVarObject. 1997-05-15 21:31:03 +00:00
Guido van Rossum 6a9ee0eeaf New heros. 1997-05-09 03:21:12 +00:00
Guido van Rossum b6a7f77c9f Oops -- missed FloatingPointError in renaming. 1997-05-09 03:03:23 +00:00
Guido van Rossum 45510aee8f Fix old typo PyArgs_VaParse -> PyArg_VaParse. 1997-05-05 21:53:03 +00:00
Guido van Rossum 1a43ce848b Added inittab. 1997-04-29 20:22:47 +00:00
Guido van Rossum 04e30c188a Remove err_input from rename list -- it is a static inside errors.c. 1997-04-29 18:25:32 +00:00
Guido van Rossum 58d8e3dd9e Remove renaming instructions for ANY -- this is not renamed in
mymalloc.h.  (Since it's a macro, I don't care much.  It is used
internally only; others can use void *.)
1997-04-29 18:19:10 +00:00
Guido van Rossum 5d88aa3a36 Oops, added <URL:...> around the URL. 1997-04-11 16:46:56 +00:00
Guido van Rossum 24c93591cd (Sjoerd:) Incorporate `build number' stuff. 1997-04-11 15:25:47 +00:00
Guido van Rossum 44adb0c95f Added note about SWIG (replacing a whole lot of nonsense about how
difficult it is to do).
1997-04-11 15:19:35 +00:00
Guido van Rossum 31ef35b861 Added two new questions about number conversions. 1997-03-25 18:25:20 +00:00
Guido van Rossum 14d1c721d5 Added note about adding \n to source for exec and compile. 1997-03-19 14:43:28 +00:00
Guido van Rossum 4a908be231 Added Q. about HTTP/1.1. 1997-03-16 18:34:00 +00:00
Guido van Rossum 80eb3c0202 Zap all env vars beginning with PYTHON to prevent an obvious form of attack. 1997-03-11 18:24:21 +00:00
Guido van Rossum 17e973cb32 Remove the list of Python users, replace it with a pointer to the
on-line list of same.
1997-02-26 16:11:55 +00:00
Guido van Rossum 7b6f3435e4 Added new ftp mirror site ftp://ftp.cdrom.com/pub/python/ (Walnut Creek CDROM). 1997-02-25 23:08:03 +00:00
Barry Warsaw fb07f408b6 (python-font-lock-keywords): Use new convention for installing in mode 1997-02-24 03:37:22 +00:00
Guido van Rossum 01094e4089 Change the question about os.environ changes not working -- it now
works unless you don't have putenv.
1997-02-17 18:40:02 +00:00
Guido van Rossum 8651d27e0a Two changes:
- add awarning about reconfiguring after Slackware96 fix
- add reference to Jim F's ExtensionClass module
1997-02-17 18:27:32 +00:00
Barry Warsaw 941f70c331 (py-mode-map): Comment Out Region / Uncomment Region should use
py-comment-region instead of comment-region.
1997-01-30 20:16:18 +00:00
Barry Warsaw 2ccda502f6 #Updated authorship line 1997-01-30 19:50:39 +00:00
Barry Warsaw f770578225 (py-parse-partial-sexp-works-p): New variable to work around a bug in
parse-partial-sexp in some Emacsen.

(py-goto-beyond-final-line): use py-parse-partial-sexp-works-p.
1997-01-30 19:49:39 +00:00
Barry Warsaw bb779ec4d9 README file for hints on Purify'ing or Quantify'ing the Python
interpreter.  It also mentions the soon to be checked in pure module.
1997-01-16 23:55:38 +00:00
Barry Warsaw fca8371e1f (python-cc-style): Added definitions for c-hanging-braces-alist which
make the most sense for PyMethodDef structures.  [one small fix]
1996-12-20 16:43:32 +00:00
Barry Warsaw 7607e8f4fb (python-cc-style): Added definitions for c-hanging-braces-alist which
make the most sense for PyMethodDef structures.
1996-12-20 16:42:04 +00:00
Barry Warsaw b05399373c (py-delete-function): new variable
(py-delete-char): funcall py-delete-function.
1996-12-17 22:05:07 +00:00
Barry Warsaw 5c8bef1888 (python-mode): added comment-end definitions. 1996-12-17 21:56:10 +00:00
Barry Warsaw eb14d61e28 (python-cc-style): typo "c-offset-alist" => "c-offsets-alist" 1996-12-12 22:57:05 +00:00
Barry Warsaw 1d75734608 Added a provide so the corresponding require will succeed. 1996-12-10 16:29:21 +00:00
Barry Warsaw 5632ce033f (python-cc-style): Although open braces for substatements typically
hang on the right side, if they are on a separate line, indent them
under the keyword.
1996-12-09 23:01:30 +00:00
Barry Warsaw 8c0710fdd3 (python-cc-style): Oops, we decided to use TABs for 8 spaces where
possible.
1996-12-09 22:07:22 +00:00
Barry Warsaw 0b32459004 C coding standard for Python C files.
Currently fairly minimal, but I'll be adding to this as needed.  I
think it's pretty darn close.

To use this, just load the file and in a C buffer type:

M-x c-set-style RET python RET

[there are ways to automate much of this!]
1996-12-09 21:57:25 +00:00
Guido van Rossum ba469ba9d7 More stale info. 1996-12-05 22:26:17 +00:00
Guido van Rossum 794137903f New URL for Swiss ftp mirror. 1996-12-05 22:01:11 +00:00
Guido van Rossum f06ee5fa07 /usr/local/bin/python -> /usr/bin/env python 1996-11-27 19:52:01 +00:00
Guido van Rossum bec74843de Added note about "boot" implying "clobber".
Added definition TARGET=python for more flexibility.
1996-11-27 19:38:53 +00:00
Guido van Rossum 47427674f6 Corrected *noconfig* to be *shared*; added cc: vlad back. 1996-11-27 19:38:00 +00:00
Guido van Rossum 4662b87604 monty -> grail in Grail URL. 1996-11-27 15:24:34 +00:00
Guido van Rossum c59120ba17 Added os.remove()/unlink(), rmdir(), rename(), and [f]truncate(). 1996-11-14 14:10:11 +00:00
Guido van Rossum caa83c4b9e Added Q. about enabling *shared* on Linux. 1996-11-13 15:06:24 +00:00
Guido van Rossum 7d42d95bd7 Fix syntax of commented-out variables 1996-11-06 16:39:12 +00:00
Barry Warsaw 3622e0d090 (match-string): Added a definition for older Emacsen. 1996-10-29 15:32:57 +00:00
Guido van Rossum d266eb460e New permission notice, includes CNRI. 1996-10-25 14:44:06 +00:00
Guido van Rossum 7704bb7f32 Added last-minute changes. 1996-10-25 14:21:55 +00:00
Guido van Rossum 130575dc80 CNRI additions, approved by the boss and his wife :-) 1996-10-25 13:45:43 +00:00
Guido van Rossum b0259bc3ad Add SHELL=/bin/sh definition, to override SGI make's default to $SHELL. 1996-10-24 21:47:45 +00:00
Guido van Rossum a83f3b82b9 Barry's latest (2.83). He likes this version particularly because
83 is a prime number.
1996-10-23 20:55:00 +00:00
Guido van Rossum 9e0e4dd7b2 Added answer by Greg Stein about threads on Linux. 1996-10-23 20:52:55 +00:00
Barry Warsaw 7cb505c89b (py-indent-line): take an optional universal argument which says to
defeat extra outdentation for block closing statements (return, raise,
break, continue, pass).

(py-compute-indentation): extra argument to honor block closing
statements.

(py-electric-colon, py-indent-region): use py-compute-indentation's
extra argument

(py-statement-closes-block-p): `pass' treated as a block closing
statement.
1996-10-23 20:44:59 +00:00
Guido van Rossum bed266ab89 New version for 1.4 from Manus. 1996-10-22 22:08:02 +00:00
Guido van Rossum a4e41a805a Added question about error from misuse of mangled names. 1996-10-22 03:00:43 +00:00
Guido van Rossum 02afd080ec Added all current changes. 1996-10-22 02:16:19 +00:00
Guido van Rossum 9c5dc29c3d Added item about bug in Slackware96 libdl. 1996-10-13 15:48:56 +00:00
Guido van Rossum 43e6661d25 Add a dependency on clobber to the boot target. Now, if you run "make
-f Makefile.pre.in boot", all traces of previous runs are removed.
1996-10-10 19:12:47 +00:00
Guido van Rossum f17fa685aa Nils Fischbeck, Tim Hochberg, Terry Reedy, Ka-Ping Yee 1996-10-08 17:22:00 +00:00
Guido van Rossum 434882e6e9 Added 'static' target; add variable TARGET replacing python 1996-10-08 17:21:11 +00:00
Guido van Rossum 8a91302cf1 Toss Q 3.10 on posix.listdir on NeXT. Add revived vpApp. 1996-10-08 17:18:30 +00:00
Guido van Rossum 098331529b Toss the outdated QuickRef. 1996-10-08 17:16:02 +00:00
Barry Warsaw 7a73ef852f (py-process-filter): Make sure current-buffer is restored, even in the
event of error.  Can't use new Emacs primitive save-current-buffer, so
use unwind-protect instead.
1996-09-30 23:00:40 +00:00
Guido van Rossum dc082eba02 Added editline fix 1996-09-12 17:29:33 +00:00
Guido van Rossum c458e945a4 Rewrite sections on GUI and DOS/Windows, various other small edits,
added 1996 copyright, $Revision$.
1996-09-11 15:43:13 +00:00
Guido van Rossum 946cf890d4 Improvement suggested by Sjoerd: use $(MAKE)
in boot target and use $(srcdir)/Makefile.pre.in
1996-09-11 12:15:07 +00:00
Guido van Rossum 1631cbe03a Added Makefile.pre.in, my generic makefile 1996-09-10 18:19:23 +00:00
Guido van Rossum 694f7010ed Rewritten by Ka-Ping Yee. 1996-09-10 17:59:15 +00:00
Guido van Rossum 8727df4623 Removed some obsolete questions and references to version 1.2.
Added some cross refs about broken lambda and broken recursion of
nested functions.
1996-09-09 15:16:39 +00:00