From truenolejano at yahoo.com Wed Dec 1 14:07:19 2004 From: truenolejano at yahoo.com (truenolejano@yahoo.com) Date: Thu Dec 2 11:44:10 2004 Subject: [Python-mode] elisp submission Message-ID: <200412011307.iB1D7JBn002420@spike.bebop> I use the following with your emacs python mode and thought I'd share. --- (defun pydoc-class () "run pydoc on class at point" (interactive) (setq class (thing-at-point `word)) (setq query class) (call-process "pydoc" nil "pydoc" nil query) (split-window-vertically) (switch-to-buffer "pydoc") (shrink-window-if-larger-than-buffer) (beginning-of-buffer) ) (defun pydoc-method () "run pydoc on class...method at point" (interactive) (backward-word 1) (setq beg (point)) (search-forward "(") (backward-char) (setq end (point)) (setq query (buffer-substring beg end)) (message query) (call-process "pydoc" nil "pydoc" nil query) (split-window-vertically) (switch-to-buffer "pydoc") (shrink-window-if-larger-than-buffer) (beginning-of-buffer) ) (defun pydoc-close () "rm pydoc window" (interactive) (delete-window) (kill-buffer "pydoc") ) (define-key py-mode-map "\M-1" 'pydoc-class) (define-key py-mode-map "\M-2" 'pydoc-method) (define-key global-map "\M-3" 'pydoc-close) -- - Friend of All the World -- There is neither Jew nor Greek, there is neither bond nor free, there is neither male nor female: for ye are all one in Christ Jesus. And if ye be Christ's, then are ye Abraham's seed, and heirs according to the promise. [Galatians 3:28-29] From noreply at sourceforge.net Thu Dec 2 21:57:10 2004 From: noreply at sourceforge.net (SourceForge.net) Date: Thu Dec 2 21:57:13 2004 Subject: [Python-mode] [ python-mode-Patches-1077902 ] Show upper methods and classes Message-ID: Patches item #1077902, was opened at 2004-12-02 20:57 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=581351&aid=1077902&group_id=86916 Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Thomas Guettler (guettli) Assigned to: Nobody/Anonymous (nobody) Summary: Show upper methods and classes Initial Comment: Hi, this patch shows the upper methods and classes and binds this to C-c C-x Example: class Foo: def blu(): def subblu(): print "foo" if you press C-c C-x in the last line you see Foo/blu/subblu/ This is handy if you query-replace in a long method and you want to be sure that you are still in this method and not in the next Tested with XEmacs 21.4 and Emacs 21.3.1 I tried to bind this into the mode-line, but failed. This would be better since you could see all the time in which methods and classes the cursor is. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=581351&aid=1077902&group_id=86916 From noreply at sourceforge.net Mon Dec 6 11:07:01 2004 From: noreply at sourceforge.net (SourceForge.net) Date: Mon Dec 6 11:07:04 2004 Subject: [Python-mode] [ python-mode-Bugs-1079878 ] C-c C-c moves cursor into Python Output buffer Message-ID: Bugs item #1079878, was opened at 2004-12-06 11:07 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=581349&aid=1079878&group_id=86916 Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Thomas Heller (theller) Assigned to: Nobody/Anonymous (nobody) Summary: C-c C-c moves cursor into Python Output buffer Initial Comment: When I edit a Python script with XEmacs, then hit C-c C-c, the script is executed, the output is shown in a *Python Output* buffer, and the cursor is moved into this buffer. I want the cursor to stay in the buffer displaying the Python script. According to Skip this is a bug. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=581349&aid=1079878&group_id=86916 From noreply at sourceforge.net Tue Dec 7 16:22:52 2004 From: noreply at sourceforge.net (SourceForge.net) Date: Tue Dec 7 16:23:02 2004 Subject: [Python-mode] [ python-mode-Bugs-1079878 ] C-c C-c moves cursor into Python Output buffer Message-ID: Bugs item #1079878, was opened at 2004-12-06 11:07 Message generated for change (Comment added) made by theller You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=581349&aid=1079878&group_id=86916 Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Thomas Heller (theller) Assigned to: Nobody/Anonymous (nobody) Summary: C-c C-c moves cursor into Python Output buffer Initial Comment: When I edit a Python script with XEmacs, then hit C-c C-c, the script is executed, the output is shown in a *Python Output* buffer, and the cursor is moved into this buffer. I want the cursor to stay in the buffer displaying the Python script. According to Skip this is a bug. ---------------------------------------------------------------------- >Comment By: Thomas Heller (theller) Date: 2004-12-07 16:22 Message: Logged In: YES user_id=11105 The attached patch works for me. But - I'm not an elisp hacker, so I have no idea if that's correct. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=581349&aid=1079878&group_id=86916 From noreply at sourceforge.net Tue Dec 7 21:15:53 2004 From: noreply at sourceforge.net (SourceForge.net) Date: Tue Dec 7 21:15:58 2004 Subject: [Python-mode] [ python-mode-Bugs-1079878 ] C-c C-c moves cursor into Python Output buffer Message-ID: Bugs item #1079878, was opened at 2004-12-06 10:07 Message generated for change (Comment added) made by guettli You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=581349&aid=1079878&group_id=86916 Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Thomas Heller (theller) Assigned to: Nobody/Anonymous (nobody) Summary: C-c C-c moves cursor into Python Output buffer Initial Comment: When I edit a Python script with XEmacs, then hit C-c C-c, the script is executed, the output is shown in a *Python Output* buffer, and the cursor is moved into this buffer. I want the cursor to stay in the buffer displaying the Python script. According to Skip this is a bug. ---------------------------------------------------------------------- Comment By: Thomas Guettler (guettli) Date: 2004-12-07 20:15 Message: Logged In: YES user_id=22123 Hi Thomas Heller, the drawback of your patch is, that the output buffer is not visible after py-execute-buffer. It is only visible if it was before. ---------------------------------------------------------------------- Comment By: Thomas Heller (theller) Date: 2004-12-07 15:22 Message: Logged In: YES user_id=11105 The attached patch works for me. But - I'm not an elisp hacker, so I have no idea if that's correct. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=581349&aid=1079878&group_id=86916 From noreply at sourceforge.net Tue Dec 7 21:21:12 2004 From: noreply at sourceforge.net (SourceForge.net) Date: Tue Dec 7 21:21:17 2004 Subject: [Python-mode] [ python-mode-Bugs-1079878 ] C-c C-c moves cursor into Python Output buffer Message-ID: Bugs item #1079878, was opened at 2004-12-06 10:07 Message generated for change (Comment added) made by guettli You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=581349&aid=1079878&group_id=86916 Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Thomas Heller (theller) Assigned to: Nobody/Anonymous (nobody) Summary: C-c C-c moves cursor into Python Output buffer Initial Comment: When I edit a Python script with XEmacs, then hit C-c C-c, the script is executed, the output is shown in a *Python Output* buffer, and the cursor is moved into this buffer. I want the cursor to stay in the buffer displaying the Python script. According to Skip this is a bug. ---------------------------------------------------------------------- Comment By: Thomas Guettler (guettli) Date: 2004-12-07 20:21 Message: Logged In: YES user_id=22123 Unfortunately it is not possible to upload a file. Here is my patch. It calls pop-to-buffer after py-execute-region. I am not a (e)lisp expert, too. @@ -1747,12 +1747,15 @@ See the `\[py-execute-region]' docs for an account of some subtleties, including the use of the optional ASYNC argument." (interactive "P") - (if py-master-file - (let* ((filename (expand-file-name py-master-file)) - (buffer (or (get-file-buffer filename) - (find-file-noselect filename)))) - (set-buffer buffer))) - (py-execute-region (point-min) (point-max) async)) + (let ((old-buffer (current-buffer))) + (if py-master-file + (let* ((filename (expand-file-name py-master-file)) + (buffer (or (get-file-buffer filename) + (find-file-noselect filename)))) + (set-buffer buffer))) + (py-execute-region (point-min) (point-max) async) + (pop-to-buffer old-buffer) + )) (defun py-execute-import-or-reload (&optional async) "Import the current buffer's file in a Python interpreter. ---------------------------------------------------------------------- Comment By: Thomas Guettler (guettli) Date: 2004-12-07 20:15 Message: Logged In: YES user_id=22123 Hi Thomas Heller, the drawback of your patch is, that the output buffer is not visible after py-execute-buffer. It is only visible if it was before. ---------------------------------------------------------------------- Comment By: Thomas Heller (theller) Date: 2004-12-07 15:22 Message: Logged In: YES user_id=11105 The attached patch works for me. But - I'm not an elisp hacker, so I have no idea if that's correct. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=581349&aid=1079878&group_id=86916 From noreply at sourceforge.net Wed Dec 8 09:29:17 2004 From: noreply at sourceforge.net (SourceForge.net) Date: Wed Dec 8 09:29:22 2004 Subject: [Python-mode] [ python-mode-Bugs-1079878 ] C-c C-c moves cursor into Python Output buffer Message-ID: Bugs item #1079878, was opened at 2004-12-06 11:07 Message generated for change (Comment added) made by theller You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=581349&aid=1079878&group_id=86916 Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Thomas Heller (theller) Assigned to: Nobody/Anonymous (nobody) Summary: C-c C-c moves cursor into Python Output buffer Initial Comment: When I edit a Python script with XEmacs, then hit C-c C-c, the script is executed, the output is shown in a *Python Output* buffer, and the cursor is moved into this buffer. I want the cursor to stay in the buffer displaying the Python script. According to Skip this is a bug. ---------------------------------------------------------------------- >Comment By: Thomas Heller (theller) Date: 2004-12-08 09:29 Message: Logged In: YES user_id=11105 Yep - this one works much better ;-). Thanks. ---------------------------------------------------------------------- Comment By: Thomas Guettler (guettli) Date: 2004-12-07 21:21 Message: Logged In: YES user_id=22123 Unfortunately it is not possible to upload a file. Here is my patch. It calls pop-to-buffer after py-execute-region. I am not a (e)lisp expert, too. @@ -1747,12 +1747,15 @@ See the `\[py-execute-region]' docs for an account of some subtleties, including the use of the optional ASYNC argument." (interactive "P") - (if py-master-file - (let* ((filename (expand-file-name py-master-file)) - (buffer (or (get-file-buffer filename) - (find-file-noselect filename)))) - (set-buffer buffer))) - (py-execute-region (point-min) (point-max) async)) + (let ((old-buffer (current-buffer))) + (if py-master-file + (let* ((filename (expand-file-name py-master-file)) + (buffer (or (get-file-buffer filename) + (find-file-noselect filename)))) + (set-buffer buffer))) + (py-execute-region (point-min) (point-max) async) + (pop-to-buffer old-buffer) + )) (defun py-execute-import-or-reload (&optional async) "Import the current buffer's file in a Python interpreter. ---------------------------------------------------------------------- Comment By: Thomas Guettler (guettli) Date: 2004-12-07 21:15 Message: Logged In: YES user_id=22123 Hi Thomas Heller, the drawback of your patch is, that the output buffer is not visible after py-execute-buffer. It is only visible if it was before. ---------------------------------------------------------------------- Comment By: Thomas Heller (theller) Date: 2004-12-07 16:22 Message: Logged In: YES user_id=11105 The attached patch works for me. But - I'm not an elisp hacker, so I have no idea if that's correct. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=581349&aid=1079878&group_id=86916 From noreply at sourceforge.net Wed Dec 8 14:42:56 2004 From: noreply at sourceforge.net (SourceForge.net) Date: Wed Dec 8 14:43:02 2004 Subject: [Python-mode] [ python-mode-Bugs-1079878 ] C-c C-c moves cursor into Python Output buffer Message-ID: Bugs item #1079878, was opened at 2004-12-06 04:07 Message generated for change (Comment added) made by montanaro You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=581349&aid=1079878&group_id=86916 Category: None Group: None >Status: Closed >Resolution: Fixed Priority: 5 Submitted By: Thomas Heller (theller) >Assigned to: Skip Montanaro (montanaro) Summary: C-c C-c moves cursor into Python Output buffer Initial Comment: When I edit a Python script with XEmacs, then hit C-c C-c, the script is executed, the output is shown in a *Python Output* buffer, and the cursor is moved into this buffer. I want the cursor to stay in the buffer displaying the Python script. According to Skip this is a bug. ---------------------------------------------------------------------- >Comment By: Skip Montanaro (montanaro) Date: 2004-12-08 07:42 Message: Logged In: YES user_id=44345 Thanks to both Thomases. Incorporated as python-model.el v 4.69. ---------------------------------------------------------------------- Comment By: Thomas Heller (theller) Date: 2004-12-08 02:29 Message: Logged In: YES user_id=11105 Yep - this one works much better ;-). Thanks. ---------------------------------------------------------------------- Comment By: Thomas Guettler (guettli) Date: 2004-12-07 14:21 Message: Logged In: YES user_id=22123 Unfortunately it is not possible to upload a file. Here is my patch. It calls pop-to-buffer after py-execute-region. I am not a (e)lisp expert, too. @@ -1747,12 +1747,15 @@ See the `\[py-execute-region]' docs for an account of some subtleties, including the use of the optional ASYNC argument." (interactive "P") - (if py-master-file - (let* ((filename (expand-file-name py-master-file)) - (buffer (or (get-file-buffer filename) - (find-file-noselect filename)))) - (set-buffer buffer))) - (py-execute-region (point-min) (point-max) async)) + (let ((old-buffer (current-buffer))) + (if py-master-file + (let* ((filename (expand-file-name py-master-file)) + (buffer (or (get-file-buffer filename) + (find-file-noselect filename)))) + (set-buffer buffer))) + (py-execute-region (point-min) (point-max) async) + (pop-to-buffer old-buffer) + )) (defun py-execute-import-or-reload (&optional async) "Import the current buffer's file in a Python interpreter. ---------------------------------------------------------------------- Comment By: Thomas Guettler (guettli) Date: 2004-12-07 14:15 Message: Logged In: YES user_id=22123 Hi Thomas Heller, the drawback of your patch is, that the output buffer is not visible after py-execute-buffer. It is only visible if it was before. ---------------------------------------------------------------------- Comment By: Thomas Heller (theller) Date: 2004-12-07 09:22 Message: Logged In: YES user_id=11105 The attached patch works for me. But - I'm not an elisp hacker, so I have no idea if that's correct. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=581349&aid=1079878&group_id=86916 From noreply at sourceforge.net Wed Dec 8 16:22:27 2004 From: noreply at sourceforge.net (SourceForge.net) Date: Wed Dec 8 16:22:30 2004 Subject: [Python-mode] [ python-mode-Patches-1077902 ] Show upper methods and classes Message-ID: Patches item #1077902, was opened at 2004-12-02 14:57 Message generated for change (Comment added) made by montanaro You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=581351&aid=1077902&group_id=86916 Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Thomas Guettler (guettli) Assigned to: Nobody/Anonymous (nobody) Summary: Show upper methods and classes Initial Comment: Hi, this patch shows the upper methods and classes and binds this to C-c C-x Example: class Foo: def blu(): def subblu(): print "foo" if you press C-c C-x in the last line you see Foo/blu/subblu/ This is handy if you query-replace in a long method and you want to be sure that you are still in this method and not in the next Tested with XEmacs 21.4 and Emacs 21.3.1 I tried to bind this into the mode-line, but failed. This would be better since you could see all the time in which methods and classes the cursor is. ---------------------------------------------------------------------- >Comment By: Skip Montanaro (montanaro) Date: 2004-12-08 09:22 Message: Logged In: YES user_id=44345 I'm working on this. I noticed a number of changes of "iff" to "if". Just checking to make sure you're aware that in English "iff" is a shorthand for "if and only if". If you were just correcting spelling, I'll reword those comments to not rely on idiomatic English. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=581351&aid=1077902&group_id=86916 From noreply at sourceforge.net Wed Dec 8 22:14:12 2004 From: noreply at sourceforge.net (SourceForge.net) Date: Wed Dec 8 22:14:19 2004 Subject: [Python-mode] [ python-mode-Bugs-1079878 ] C-c C-c moves cursor into Python Output buffer Message-ID: Bugs item #1079878, was opened at 2004-12-06 11:07 Message generated for change (Comment added) made by theller You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=581349&aid=1079878&group_id=86916 Category: None Group: None Status: Closed Resolution: Fixed Priority: 5 Submitted By: Thomas Heller (theller) Assigned to: Skip Montanaro (montanaro) Summary: C-c C-c moves cursor into Python Output buffer Initial Comment: When I edit a Python script with XEmacs, then hit C-c C-c, the script is executed, the output is shown in a *Python Output* buffer, and the cursor is moved into this buffer. I want the cursor to stay in the buffer displaying the Python script. According to Skip this is a bug. ---------------------------------------------------------------------- >Comment By: Thomas Heller (theller) Date: 2004-12-08 22:14 Message: Logged In: YES user_id=11105 Thanks, Skip. When byte-compiling the file with XEmacs, I get these (don't know if it matters or not): Compiling file c:\sf\python-mode\python-mode.el at Wed Dec 08 22:13:20 2004 While compiling py-choose-shell-by-shebang: ** reference to free variable auto-mode-interpreter-regexp While compiling py-submit-bug-report: ** variable reporter-prompt-for-summary-p bound but not referenced ---------------------------------------------------------------------- Comment By: Skip Montanaro (montanaro) Date: 2004-12-08 14:42 Message: Logged In: YES user_id=44345 Thanks to both Thomases. Incorporated as python-model.el v 4.69. ---------------------------------------------------------------------- Comment By: Thomas Heller (theller) Date: 2004-12-08 09:29 Message: Logged In: YES user_id=11105 Yep - this one works much better ;-). Thanks. ---------------------------------------------------------------------- Comment By: Thomas Guettler (guettli) Date: 2004-12-07 21:21 Message: Logged In: YES user_id=22123 Unfortunately it is not possible to upload a file. Here is my patch. It calls pop-to-buffer after py-execute-region. I am not a (e)lisp expert, too. @@ -1747,12 +1747,15 @@ See the `\[py-execute-region]' docs for an account of some subtleties, including the use of the optional ASYNC argument." (interactive "P") - (if py-master-file - (let* ((filename (expand-file-name py-master-file)) - (buffer (or (get-file-buffer filename) - (find-file-noselect filename)))) - (set-buffer buffer))) - (py-execute-region (point-min) (point-max) async)) + (let ((old-buffer (current-buffer))) + (if py-master-file + (let* ((filename (expand-file-name py-master-file)) + (buffer (or (get-file-buffer filename) + (find-file-noselect filename)))) + (set-buffer buffer))) + (py-execute-region (point-min) (point-max) async) + (pop-to-buffer old-buffer) + )) (defun py-execute-import-or-reload (&optional async) "Import the current buffer's file in a Python interpreter. ---------------------------------------------------------------------- Comment By: Thomas Guettler (guettli) Date: 2004-12-07 21:15 Message: Logged In: YES user_id=22123 Hi Thomas Heller, the drawback of your patch is, that the output buffer is not visible after py-execute-buffer. It is only visible if it was before. ---------------------------------------------------------------------- Comment By: Thomas Heller (theller) Date: 2004-12-07 16:22 Message: Logged In: YES user_id=11105 The attached patch works for me. But - I'm not an elisp hacker, so I have no idea if that's correct. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=581349&aid=1079878&group_id=86916 From noreply at sourceforge.net Sat Dec 11 22:08:35 2004 From: noreply at sourceforge.net (SourceForge.net) Date: Sat Dec 11 22:08:37 2004 Subject: [Python-mode] [ python-mode-Bugs-1083602 ] Dislike "working on region in file ...." Message-ID: Bugs item #1083602, was opened at 2004-12-11 21:08 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=581349&aid=1083602&group_id=86916 Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Ben Bob (bpeng2000) Assigned to: Nobody/Anonymous (nobody) Summary: Dislike "working on region in file ...." Initial Comment: These messages are totally meaningless. Why cannot it be the code actually being executed? I have modified python-mode.el ==> insert the following line (setq text-to-be-executed (concat (mapconcat 'identity (split-string (buffer-string) "\n") "\n... " ) "\n") ) ===> before this. (line 1700?) (write-region (point-min) (point-max) file nil 'nomsg)) (if (not py-file-queue) (py-execute-file proc file) ===> and change (msg (format "## working on region in file %s...\n" filename)) ===> to (line 1303?) (msg text-to-be-executed) so that when I execute a region a=5 print a I get in python buffer >>> a=5 ... print a 5 >>> As a matter of fact, S-mode (for R or S-plus), matlab-mode all work in this way and I see no reason why we should tolerate "working on region in ..." any more. Bo ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=581349&aid=1083602&group_id=86916 From noreply at sourceforge.net Sun Dec 12 05:16:34 2004 From: noreply at sourceforge.net (SourceForge.net) Date: Sun Dec 12 05:16:38 2004 Subject: [Python-mode] [ python-mode-Bugs-1083602 ] Dislike "working on region in file ...." Message-ID: Bugs item #1083602, was opened at 2004-12-11 15:08 Message generated for change (Comment added) made by montanaro You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=581349&aid=1083602&group_id=86916 Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Ben Bob (bpeng2000) Assigned to: Nobody/Anonymous (nobody) Summary: Dislike "working on region in file ...." Initial Comment: These messages are totally meaningless. Why cannot it be the code actually being executed? I have modified python-mode.el ==> insert the following line (setq text-to-be-executed (concat (mapconcat 'identity (split-string (buffer-string) "\n") "\n... " ) "\n") ) ===> before this. (line 1700?) (write-region (point-min) (point-max) file nil 'nomsg)) (if (not py-file-queue) (py-execute-file proc file) ===> and change (msg (format "## working on region in file %s...\n" filename)) ===> to (line 1303?) (msg text-to-be-executed) so that when I execute a region a=5 print a I get in python buffer >>> a=5 ... print a 5 >>> As a matter of fact, S-mode (for R or S-plus), matlab-mode all work in this way and I see no reason why we should tolerate "working on region in ..." any more. Bo ---------------------------------------------------------------------- >Comment By: Skip Montanaro (montanaro) Date: 2004-12-11 22:16 Message: Logged In: YES user_id=44345 I'm sorry, I don't quite understand what you're asking. Do you want more than the output in the output buffer? If so, I think the current behavior is correct. This is not an interactive terminal session, but the output of executing a chunk of Python code more-or-less as a batch sort of thing. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=581349&aid=1083602&group_id=86916 From noreply at sourceforge.net Tue Dec 14 13:03:19 2004 From: noreply at sourceforge.net (SourceForge.net) Date: Tue Dec 14 13:03:22 2004 Subject: [Python-mode] [ python-mode-Bugs-1085071 ] win32 emacs hangs while script is running Message-ID: Bugs item #1085071, was opened at 2004-12-14 15:03 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=581349&aid=1085071&group_id=86916 Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: andy Tatarinov (elephantum) Assigned to: Nobody/Anonymous (nobody) Summary: win32 emacs hangs while script is running Initial Comment: on py-execute-* emacs hangs until program is finished. it's not very comfortable to debug programs with debug output. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=581349&aid=1085071&group_id=86916 From noreply at sourceforge.net Mon Dec 20 17:49:38 2004 From: noreply at sourceforge.net (SourceForge.net) Date: Mon Dec 20 17:49:40 2004 Subject: [Python-mode] [ python-mode-Bugs-1088514 ] Buffer name sometimes wrong Message-ID: Bugs item #1088514, was opened at 2004-12-20 17:49 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=581349&aid=1088514&group_id=86916 Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Thomas Heller (theller) Assigned to: Nobody/Anonymous (nobody) Summary: Buffer name sometimes wrong Initial Comment: Most of the time, but not always, the name of a buffer containing Python files has an "<2>" appended. How to reproduce: Start XEmacs. Enter "C-x C-f c:\python23\lib\urllib.py" - the buffer is named 'urllib.py'. Now, enter "C-x C-f httplib.py" - the new buffer is named "httplib.py<2>" XEmacs 21.4 (patch 13) "Rational FORTRAN" [Lucid] (i586-py-win32) of Sun May 25 2003 on TSUNAMI Using `python-mode' version $Revision: 4.69 $ WinXP Pro, SP2. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=581349&aid=1088514&group_id=86916 From noreply at sourceforge.net Mon Dec 20 17:51:15 2004 From: noreply at sourceforge.net (SourceForge.net) Date: Mon Dec 20 17:51:21 2004 Subject: [Python-mode] [ python-mode-Bugs-1085071 ] win32 emacs hangs while script is running Message-ID: Bugs item #1085071, was opened at 2004-12-14 13:03 Message generated for change (Comment added) made by theller You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=581349&aid=1085071&group_id=86916 Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: andy Tatarinov (elephantum) Assigned to: Nobody/Anonymous (nobody) Summary: win32 emacs hangs while script is running Initial Comment: on py-execute-* emacs hangs until program is finished. it's not very comfortable to debug programs with debug output. ---------------------------------------------------------------------- Comment By: Thomas Heller (theller) Date: 2004-12-20 17:51 Message: Logged In: YES user_id=11105 You can use 'C-u C-c C-c' to run the script asyncronously. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=581349&aid=1085071&group_id=86916 From noreply at sourceforge.net Mon Dec 20 20:58:51 2004 From: noreply at sourceforge.net (SourceForge.net) Date: Mon Dec 20 20:58:53 2004 Subject: [Python-mode] [ python-mode-Bugs-1088621 ] py-help-at-point doesn't work any longer Message-ID: Bugs item #1088621, was opened at 2004-12-20 20:58 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=581349&aid=1088621&group_id=86916 Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Thomas Heller (theller) Assigned to: Nobody/Anonymous (nobody) Summary: py-help-at-point doesn't work any longer Initial Comment: C-c C-h py-help-at-point gives 'Selecting deleted or non-existant buffer'. XEmacs 21.4 (patch 13) "Rational FORTRAN" [Lucid] (i586-py-win32) of Sun May 25 2003 on TSUNAMI Using `python-mode' version $Revision: 4.69 $ WinXP Pro, SP2. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=581349&aid=1088621&group_id=86916 From noreply at sourceforge.net Tue Dec 21 13:39:17 2004 From: noreply at sourceforge.net (SourceForge.net) Date: Tue Dec 21 13:39:24 2004 Subject: [Python-mode] [ python-mode-Bugs-1088621 ] py-help-at-point doesn't work any longer Message-ID: Bugs item #1088621, was opened at 2004-12-20 20:58 Message generated for change (Comment added) made by theller You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=581349&aid=1088621&group_id=86916 Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Thomas Heller (theller) Assigned to: Nobody/Anonymous (nobody) Summary: py-help-at-point doesn't work any longer Initial Comment: C-c C-h py-help-at-point gives 'Selecting deleted or non-existant buffer'. XEmacs 21.4 (patch 13) "Rational FORTRAN" [Lucid] (i586-py-win32) of Sun May 25 2003 on TSUNAMI Using `python-mode' version $Revision: 4.69 $ WinXP Pro, SP2. ---------------------------------------------------------------------- >Comment By: Thomas Heller (theller) Date: 2004-12-21 13:39 Message: Logged In: YES user_id=11105 This problem only occurrs when there is no *Python* shell buffer. Hitting C-c ! makes the problem disappear. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=581349&aid=1088621&group_id=86916 From noreply at sourceforge.net Tue Dec 21 13:45:46 2004 From: noreply at sourceforge.net (SourceForge.net) Date: Tue Dec 21 13:45:51 2004 Subject: [Python-mode] [ python-mode-Patches-1077902 ] Show upper methods and classes Message-ID: Patches item #1077902, was opened at 2004-12-02 21:57 Message generated for change (Comment added) made by theller You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=581351&aid=1077902&group_id=86916 Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Thomas Guettler (guettli) Assigned to: Nobody/Anonymous (nobody) Summary: Show upper methods and classes Initial Comment: Hi, this patch shows the upper methods and classes and binds this to C-c C-x Example: class Foo: def blu(): def subblu(): print "foo" if you press C-c C-x in the last line you see Foo/blu/subblu/ This is handy if you query-replace in a long method and you want to be sure that you are still in this method and not in the next Tested with XEmacs 21.4 and Emacs 21.3.1 I tried to bind this into the mode-line, but failed. This would be better since you could see all the time in which methods and classes the cursor is. ---------------------------------------------------------------------- Comment By: Thomas Heller (theller) Date: 2004-12-21 13:45 Message: Logged In: YES user_id=11105 FYI: func-menu (included with XEmacs) does something similar, and also works for other languages. It also displays the function or class/method the cursor is in in the mode-line. ---------------------------------------------------------------------- Comment By: Skip Montanaro (montanaro) Date: 2004-12-08 16:22 Message: Logged In: YES user_id=44345 I'm working on this. I noticed a number of changes of "iff" to "if". Just checking to make sure you're aware that in English "iff" is a shorthand for "if and only if". If you were just correcting spelling, I'll reword those comments to not rely on idiomatic English. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=581351&aid=1077902&group_id=86916 From noreply at sourceforge.net Tue Dec 21 15:58:43 2004 From: noreply at sourceforge.net (SourceForge.net) Date: Tue Dec 21 15:58:47 2004 Subject: [Python-mode] [ python-mode-Bugs-1088621 ] py-help-at-point doesn't work any longer Message-ID: Bugs item #1088621, was opened at 2004-12-20 13:58 Message generated for change (Comment added) made by montanaro You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=581349&aid=1088621&group_id=86916 Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Thomas Heller (theller) Assigned to: Nobody/Anonymous (nobody) Summary: py-help-at-point doesn't work any longer Initial Comment: C-c C-h py-help-at-point gives 'Selecting deleted or non-existant buffer'. XEmacs 21.4 (patch 13) "Rational FORTRAN" [Lucid] (i586-py-win32) of Sun May 25 2003 on TSUNAMI Using `python-mode' version $Revision: 4.69 $ WinXP Pro, SP2. ---------------------------------------------------------------------- >Comment By: Skip Montanaro (montanaro) Date: 2004-12-21 08:58 Message: Logged In: YES user_id=44345 Thanks. I started working on this last night and think I have a fix. Worrying that fixing this problem in the obvious way might lead to other problems elsewhere leads me to wonder if there's a unit test package for Emacs Lisp that's similar to Python's unittest module. ---------------------------------------------------------------------- Comment By: Thomas Heller (theller) Date: 2004-12-21 06:39 Message: Logged In: YES user_id=11105 This problem only occurrs when there is no *Python* shell buffer. Hitting C-c ! makes the problem disappear. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=581349&aid=1088621&group_id=86916 From noreply at sourceforge.net Wed Dec 22 21:39:08 2004 From: noreply at sourceforge.net (SourceForge.net) Date: Wed Dec 22 21:39:15 2004 Subject: [Python-mode] [ python-mode-Bugs-1088621 ] py-help-at-point doesn't work any longer Message-ID: Bugs item #1088621, was opened at 2004-12-20 20:58 Message generated for change (Comment added) made by theller You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=581349&aid=1088621&group_id=86916 Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Thomas Heller (theller) Assigned to: Nobody/Anonymous (nobody) Summary: py-help-at-point doesn't work any longer Initial Comment: C-c C-h py-help-at-point gives 'Selecting deleted or non-existant buffer'. XEmacs 21.4 (patch 13) "Rational FORTRAN" [Lucid] (i586-py-win32) of Sun May 25 2003 on TSUNAMI Using `python-mode' version $Revision: 4.69 $ WinXP Pro, SP2. ---------------------------------------------------------------------- >Comment By: Thomas Heller (theller) Date: 2004-12-22 21:39 Message: Logged In: YES user_id=11105 I have no idea, but I'm quite sure you will get usefull answers on the (x)emacs mailing lists. ---------------------------------------------------------------------- Comment By: Skip Montanaro (montanaro) Date: 2004-12-21 15:58 Message: Logged In: YES user_id=44345 Thanks. I started working on this last night and think I have a fix. Worrying that fixing this problem in the obvious way might lead to other problems elsewhere leads me to wonder if there's a unit test package for Emacs Lisp that's similar to Python's unittest module. ---------------------------------------------------------------------- Comment By: Thomas Heller (theller) Date: 2004-12-21 13:39 Message: Logged In: YES user_id=11105 This problem only occurrs when there is no *Python* shell buffer. Hitting C-c ! makes the problem disappear. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=581349&aid=1088621&group_id=86916