aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorStefan Monnier2007-03-05 19:57:03 +0000
committerStefan Monnier2007-03-05 19:57:03 +0000
commit86a3e45eea1176c0af1fedc38c11f2959570d5e3 (patch)
treef73b4e7c6855f9d13560342ac6a3e5a1dffa170a /lisp
parent2c5b1db7f5d4582ee735b2f33b29616f5e370244 (diff)
downloademacs-86a3e45eea1176c0af1fedc38c11f2959570d5e3.tar.gz
emacs-86a3e45eea1176c0af1fedc38c11f2959570d5e3.zip
(python-send-command): Restart proc if necessary.
(python-proc): Simplify.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog61
-rw-r--r--lisp/progmodes/python.el12
2 files changed, 40 insertions, 33 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index c9f69716cee..01eccdb411e 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,11 @@
12007-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 * pcomplete.el (pcomplete-show-completions): Improve last change, so
4 as not to use an invisible window and to create a window if none exist.
5
6 * progmodes/python.el (python-send-command): Restart proc if necessary.
7 (python-proc): Simplify.
8
12007-03-05 David Hansen <david.hansen@gmx.net> (tiny change) 92007-03-05 David Hansen <david.hansen@gmx.net> (tiny change)
2 10
3 * pcomplete.el (pcomplete-show-completions): Search all frames for 11 * pcomplete.el (pcomplete-show-completions): Search all frames for
@@ -16,8 +24,7 @@
16 24
17 * net/tramp.el (tramp-make-temp-file): New parameter FILENAME. 25 * net/tramp.el (tramp-make-temp-file): New parameter FILENAME.
18 Append its extension to the resulting temporary file name. 26 Append its extension to the resulting temporary file name.
19 (tramp-handle-file-local-copy, tramp-handle-write-region): Apply 27 (tramp-handle-file-local-copy, tramp-handle-write-region): Apply it.
20 it.
21 28
22 * net/tramp-smb.el (tramp-smb-handle-file-local-copy) 29 * net/tramp-smb.el (tramp-smb-handle-file-local-copy)
23 (tramp-smb-handle-write-region): Apply it. 30 (tramp-smb-handle-write-region): Apply it.
@@ -244,32 +251,32 @@
244 (org-table-toggle-coordinate-overlays): New functions. 251 (org-table-toggle-coordinate-overlays): New functions.
245 (org-table-overlay-coordinates, org-table-coordinate-overlays): 252 (org-table-overlay-coordinates, org-table-coordinate-overlays):
246 New variables. 253 New variables.
247 (org-startup-with-deadline-check): Option removed. 254 (org-startup-with-deadline-check): Remove option.
248 (org-mode): Remove deadline check on startup. 255 (org-mode): Remove deadline check on startup.
249 (org-table-limit-column-width): Option removed. 256 (org-table-limit-column-width): Remove option.
250 (org-table-formula-numbers-only): Option removed. 257 (org-table-formula-numbers-only): Remove option.
251 (org-link-style, org-link-format): Options removed. 258 (org-link-style, org-link-format): Remove options.
252 (org-select-agenda-window, org-fit-agenda-window): Options removed. 259 (org-select-agenda-window, org-fit-agenda-window): Remove options.
253 (org-export-ascii-show-new-buffer) 260 (org-export-ascii-show-new-buffer)
254 (org-export-html-show-new-buffer): Options removed. 261 (org-export-html-show-new-buffer): Remove options.
255 (org-activate-links): Camel option removed. 262 (org-activate-links): Remove camel option.
256 (org-file-link-context-use-camel-case): Option removed. 263 (org-file-link-context-use-camel-case): Remove option.
257 (org-camel-regexp): Veriable removed. 264 (org-camel-regexp): Remove variable.
258 (org-activate-camels): Function removed. 265 (org-activate-camels): Remove function.
259 (org-store-link): Removed Camel stuff. 266 (org-store-link): Remove Camel stuff.
260 (org-make-org-heading-camel): Function removed. 267 (org-make-org-heading-camel): Remove function.
261 (org-open-at-point): Removed camel stuff. 268 (org-open-at-point): Remove camel stuff.
262 (org-link-search): Removed camel stuff. 269 (org-link-search): Remove camel stuff.
263 (org-camel-to-words): Function removed. 270 (org-camel-to-words): Function removed.
264 (org-get-agenda-file-buffer): Make sure we prepare the base 271 (org-get-agenda-file-buffer): Make sure we prepare the base
265 buffers, not any indirect buffers. 272 buffers, not any indirect buffers.
266 (org-sort-entries): Sort top-level when not on a headline, and no 273 (org-sort-entries): Sort top-level when not on a headline, and no
267 active region. 274 active region.
268 (org-in-regexp): New function. 275 (org-in-regexp): New function.
269 (org-search-not-self): Renamed from `org-search-not-link'. 276 (org-search-not-self): Rename from `org-search-not-link'.
270 (org-open-link-marker): New variable. 277 (org-open-link-marker): New variable.
271 (org-open-at-point): Set `org-open-link-marker'. 278 (org-open-at-point): Set `org-open-link-marker'.
272 (org-print-icalendar-entries): Fixed bug with excluding DONE 279 (org-print-icalendar-entries): Fixe bug with excluding DONE
273 entries from the exported list. 280 entries from the exported list.
274 (org-edit-formula-lisp-indent): New command. 281 (org-edit-formula-lisp-indent): New command.
275 (orgtbl-to-texinfo, orgtbl-to-html): New functions. 282 (orgtbl-to-texinfo, orgtbl-to-html): New functions.
@@ -285,7 +292,7 @@
285 (org-upgrade-old-links) 292 (org-upgrade-old-links)
286 (org-table-modify-formulas, org-table-replace-in-formulas) 293 (org-table-modify-formulas, org-table-replace-in-formulas)
287 (org-table-find-dataline) 294 (org-table-find-dataline)
288 (org-table-get-vertical-vector): Functions removed. 295 (org-table-get-vertical-vector): Remove functions.
289 (org-table-remove-rectangle-highlight) 296 (org-table-remove-rectangle-highlight)
290 (org-time-stamp-format, org-toggle-log-option) 297 (org-time-stamp-format, org-toggle-log-option)
291 (org-table-highlight-rectangle) 298 (org-table-highlight-rectangle)
@@ -318,17 +325,17 @@
318 (org-table-edit-scroll, org-table-edit-scroll-down) 325 (org-table-edit-scroll, org-table-edit-scroll-down)
319 (org-set-frame-title, org-show-reference) 326 (org-set-frame-title, org-show-reference)
320 (org-unhighlight-once, org-verify-change-for-undo): New functions. 327 (org-unhighlight-once, org-verify-change-for-undo): New functions.
321 (org-show-variable): Command removed. 328 (org-show-variable): Remove command.
322 (org-add-log-maybe): New arguments STATE, FINDPOS 329 (org-add-log-maybe): New arguments STATE, FINDPOS
323 (org-table-sort-lines): Rewritten from scratch. 330 (org-table-sort-lines): Rewrite from scratch.
324 (org-link-search): New argument AVOID-POS. 331 (org-link-search): New argument AVOID-POS.
325 (org-print-icalendar-entries): Argument CATEGORY removed. 332 (org-print-icalendar-entries): Remove argument CATEGORY.
326 (org-run-agenda-series): Argument WONDOW removed. 333 (org-run-agenda-series): Remove argument WONDOW.
327 (org-next-link, org-previous-link): New commands. 334 (org-next-link, org-previous-link): New commands.
328 (org-agenda-date-format): New option. 335 (org-agenda-date-format): New option.
329 (org-table-iterate): New command. 336 (org-table-iterate): New command.
330 (org-table-modify-formulas) 337 (org-table-modify-formulas)
331 (org-table-replace-in-formulas): Functions removed. 338 (org-table-replace-in-formulas): Remove functions.
332 (org-table-fix-formulas): New function. 339 (org-table-fix-formulas): New function.
333 (org-table-insert-column, org-table-delete-column) 340 (org-table-insert-column, org-table-delete-column)
334 (org-table-move-column): Use `org-table-fix-formulas'. 341 (org-table-move-column): Use `org-table-fix-formulas'.
@@ -349,8 +356,8 @@
349 (org-read-date): Accept "+N" as input for a date relative to the 356 (org-read-date): Accept "+N" as input for a date relative to the
350 current date. 357 current date.
351 (org-remove-subtree-entries-from-agenda): New function. 358 (org-remove-subtree-entries-from-agenda): New function.
352 (org-agenda-archive, org-agenda-kill): Use 359 (org-agenda-archive, org-agenda-kill):
353 `org-remove-subtree-entries-from-agenda'. 360 Use `org-remove-subtree-entries-from-agenda'.
354 (org-do-sort, org-sort-entries): New functions. 361 (org-do-sort, org-sort-entries): New functions.
355 (org-sort): New command. 362 (org-sort): New command.
356 (org-table-sort-lines): Use `org-do-sort'. 363 (org-table-sort-lines): Use `org-do-sort'.
@@ -358,7 +365,7 @@
358 (org-table-number-regexp): Require 0x... to identify as number 365 (org-table-number-regexp): Require 0x... to identify as number
359 in tables. 366 in tables.
360 (org-startup-options): New keywords for note taking. 367 (org-startup-options): New keywords for note taking.
361 (org-upgrade-old-links): Function removed. 368 (org-upgrade-old-links): Remove function.
362 (org-get-repeat): New function. 369 (org-get-repeat): New function.
363 (org-show-context): Also show siblings on current level. 370 (org-show-context): Also show siblings on current level.
364 (org-show-siblings): New function. 371 (org-show-siblings): New function.
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el
index 38e846aa2cc..6c37fb859e1 100644
--- a/lisp/progmodes/python.el
+++ b/lisp/progmodes/python.el
@@ -1383,11 +1383,11 @@ buffer for a list of commands.)"
1383COMMAND should be a single statement." 1383COMMAND should be a single statement."
1384 ;; (assert (not (string-match "\n" command))) 1384 ;; (assert (not (string-match "\n" command)))
1385 ;; (let ((end (marker-position (process-mark (python-proc))))) 1385 ;; (let ((end (marker-position (process-mark (python-proc)))))
1386 (with-current-buffer python-buffer (goto-char (point-max))) 1386 (with-current-buffer (process-buffer (python-proc))
1387 (goto-char (point-max))
1387 (compilation-forget-errors) 1388 (compilation-forget-errors)
1388 (python-send-string command) 1389 (python-send-string command)
1389 (with-current-buffer python-buffer 1390 (setq compilation-last-buffer (current-buffer)))
1390 (setq compilation-last-buffer (current-buffer)))
1391 ;; No idea what this is for but it breaks the call to 1391 ;; No idea what this is for but it breaks the call to
1392 ;; compilation-fake-loc in python-send-region. -- Stef 1392 ;; compilation-fake-loc in python-send-region. -- Stef
1393 ;; Must wait until this has completed before re-setting variables below. 1393 ;; Must wait until this has completed before re-setting variables below.
@@ -1517,9 +1517,9 @@ See variable `python-buffer'. Starts a new process if necessary."
1517 ;; isn't one for `python-buffer'. 1517 ;; isn't one for `python-buffer'.
1518 (unless (comint-check-proc python-buffer) 1518 (unless (comint-check-proc python-buffer)
1519 (run-python nil t)) 1519 (run-python nil t))
1520 (get-buffer-process (or (if (derived-mode-p 'inferior-python-mode) 1520 (get-buffer-process (if (derived-mode-p 'inferior-python-mode)
1521 (current-buffer) 1521 (current-buffer)
1522 python-buffer)))) 1522 python-buffer)))
1523 1523
1524(defun python-set-proc () 1524(defun python-set-proc ()
1525 "Set the default value of `python-buffer' to correspond to this buffer. 1525 "Set the default value of `python-buffer' to correspond to this buffer.