##// END OF EJS Templates
- Small manual update about Emacs...
fperez -
Show More
@@ -1,3 +1,14 b''
1 2006-03-13 Fernando Perez <Fernando.Perez@colorado.edu>
2
3 * Manual: thanks to a tip on proper color handling for Emacs, by
4 Eric J Haywiser <ejh1-AT-MIT.EDU>.
5
6 * ipython.el: close http://www.scipy.net/roundup/ipython/issue57
7 by applying the provided patch. Thanks to Liu Jin
8 <m.liu.jin-AT-gmail.com> for the contribution. No problems under
9 XEmacs/Linux, I'm trusting the submitter that it actually helps
10 under win32/GNU Emacs. Will revisit if any problems are reported.
11
1 12 2006-03-12 Fernando Perez <Fernando.Perez@colorado.edu>
2 13
3 14 * IPython/Gnuplot2.py (_FileClass): update for current Gnuplot.py
@@ -6,7 +6,7 b''
6 6 ;; URL: http://ipython.scipy.org
7 7 ;; Compatibility: Emacs21, XEmacs21
8 8 ;; FIXME: #$@! INPUT RING
9 (defconst ipython-version "$Revision: 565 $"
9 (defconst ipython-version "$Revision: 1211 $"
10 10 "VC version number.")
11 11
12 12 ;;; Commentary
@@ -305,6 +305,9 b' in the current *Python* session."'
305 305 (interactive)
306 306 (let* ((ugly-return nil)
307 307 (sep ";")
308 (python-process (or (get-buffer-process (current-buffer))
309 ;XXX hack for .py buffers
310 (get-process py-which-bufname)))
308 311 ;; XXX currently we go backwards to find the beginning of an
309 312 ;; expression part; a more powerful approach in the future might be
310 313 ;; to let ipython have the complete line, so that context can be used
@@ -325,10 +328,9 b' in the current *Python* session."'
325 328 (delete-region comint-last-output-start
326 329 (process-mark (get-buffer-process (current-buffer)))))))))
327 330 ;(message (format "#DEBUG pattern: '%s'" pattern))
328 (process-send-string (or (get-buffer-process (current-buffer))
329 (get-process py-which-bufname)) ;XXX hack for .py buffers
331 (process-send-string python-process
330 332 (format ipython-completion-command-string pattern))
331 (accept-process-output (get-buffer-process (current-buffer)))
333 (accept-process-output python-process)
332 334 ;(message (format "DEBUG return: %s" ugly-return))
333 335 (setq completions
334 336 (split-string (substring ugly-return 0 (position ?\n ugly-return)) sep))
@@ -354,6 +356,9 b' in the current *Python* session."'
354 356 (interactive)
355 357 (let* ((ugly-return nil)
356 358 (sep ";")
359 (python-process (or (get-buffer-process (current-buffer))
360 ;XXX hack for .py buffers
361 (get-process py-which-bufname)))
357 362 ;; XXX currently we go backwards to find the beginning of an
358 363 ;; expression part; a more powerful approach in the future might be
359 364 ;; to let ipython have the complete line, so that context can be used
@@ -371,10 +376,9 b' in the current *Python* session."'
371 376 (lambda (string)
372 377 (setq ugly-return (concat ugly-return string))
373 378 "")))))
374 (process-send-string (or (get-buffer-process (current-buffer))
375 (get-process py-which-bufname)) ;XXX hack for .py buffers
379 (process-send-string python-process
376 380 (format ipython-completion-command-string pattern))
377 (accept-process-output (get-buffer-process (current-buffer)))
381 (accept-process-output python-process)
378 382 (setq completions
379 383 (split-string (substring ugly-return 0 (position ?\n ugly-return)) sep))
380 384 ;(message (format "DEBUG completions: %S" completions))
@@ -1663,7 +1663,8 b" this means that your terminal doesn't properly handle color escape sequences."
1663 1663
1664 1664 \layout Standard
1665 1665
1666 You can try using a different terminal emulator program.
1666 You can try using a different terminal emulator program (Emacs users, see
1667 below).
1667 1668 To permanently set your color preferences, edit the file
1668 1669 \family typewriter
1669 1670 $HOME/.ipython/ipythonrc
@@ -1834,10 +1835,8 b' Once you put these files in your Emacs path, all you need in your'
1834 1835 .emacs
1835 1836 \family default
1836 1837 file is:
1837 \layout Standard
1838
1838 \layout LyX-Code
1839 1839
1840 \family typewriter
1841 1840 (require 'ipython)
1842 1841 \layout Standard
1843 1842
@@ -1849,6 +1848,17 b' C-c\\SpecialChar ~'
1849 1848 \family default
1850 1849 , etc.
1851 1850
1851 \layout Standard
1852
1853 If you happen to get garbage instead of colored prompts as described in
1854 the previous section, you may need to set also in your
1855 \family typewriter
1856 .emacs
1857 \family default
1858 file:
1859 \layout LyX-Code
1860
1861 (setq ansi-color-for-comint-mode t)
1852 1862 \layout Subsubsection*
1853 1863
1854 1864 Notes
General Comments 0
You need to be logged in to leave comments. Login now