##// 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 2006-03-12 Fernando Perez <Fernando.Perez@colorado.edu>
12 2006-03-12 Fernando Perez <Fernando.Perez@colorado.edu>
2
13
3 * IPython/Gnuplot2.py (_FileClass): update for current Gnuplot.py
14 * IPython/Gnuplot2.py (_FileClass): update for current Gnuplot.py
@@ -6,7 +6,7 b''
6 ;; URL: http://ipython.scipy.org
6 ;; URL: http://ipython.scipy.org
7 ;; Compatibility: Emacs21, XEmacs21
7 ;; Compatibility: Emacs21, XEmacs21
8 ;; FIXME: #$@! INPUT RING
8 ;; FIXME: #$@! INPUT RING
9 (defconst ipython-version "$Revision: 565 $"
9 (defconst ipython-version "$Revision: 1211 $"
10 "VC version number.")
10 "VC version number.")
11
11
12 ;;; Commentary
12 ;;; Commentary
@@ -305,6 +305,9 b' in the current *Python* session."'
305 (interactive)
305 (interactive)
306 (let* ((ugly-return nil)
306 (let* ((ugly-return nil)
307 (sep ";")
307 (sep ";")
308 (python-process (or (get-buffer-process (current-buffer))
309 ;XXX hack for .py buffers
310 (get-process py-which-bufname)))
308 ;; XXX currently we go backwards to find the beginning of an
311 ;; XXX currently we go backwards to find the beginning of an
309 ;; expression part; a more powerful approach in the future might be
312 ;; expression part; a more powerful approach in the future might be
310 ;; to let ipython have the complete line, so that context can be used
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 (delete-region comint-last-output-start
328 (delete-region comint-last-output-start
326 (process-mark (get-buffer-process (current-buffer)))))))))
329 (process-mark (get-buffer-process (current-buffer)))))))))
327 ;(message (format "#DEBUG pattern: '%s'" pattern))
330 ;(message (format "#DEBUG pattern: '%s'" pattern))
328 (process-send-string (or (get-buffer-process (current-buffer))
331 (process-send-string python-process
329 (get-process py-which-bufname)) ;XXX hack for .py buffers
330 (format ipython-completion-command-string pattern))
332 (format ipython-completion-command-string pattern))
331 (accept-process-output (get-buffer-process (current-buffer)))
333 (accept-process-output python-process)
332 ;(message (format "DEBUG return: %s" ugly-return))
334 ;(message (format "DEBUG return: %s" ugly-return))
333 (setq completions
335 (setq completions
334 (split-string (substring ugly-return 0 (position ?\n ugly-return)) sep))
336 (split-string (substring ugly-return 0 (position ?\n ugly-return)) sep))
@@ -354,6 +356,9 b' in the current *Python* session."'
354 (interactive)
356 (interactive)
355 (let* ((ugly-return nil)
357 (let* ((ugly-return nil)
356 (sep ";")
358 (sep ";")
359 (python-process (or (get-buffer-process (current-buffer))
360 ;XXX hack for .py buffers
361 (get-process py-which-bufname)))
357 ;; XXX currently we go backwards to find the beginning of an
362 ;; XXX currently we go backwards to find the beginning of an
358 ;; expression part; a more powerful approach in the future might be
363 ;; expression part; a more powerful approach in the future might be
359 ;; to let ipython have the complete line, so that context can be used
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 (lambda (string)
376 (lambda (string)
372 (setq ugly-return (concat ugly-return string))
377 (setq ugly-return (concat ugly-return string))
373 "")))))
378 "")))))
374 (process-send-string (or (get-buffer-process (current-buffer))
379 (process-send-string python-process
375 (get-process py-which-bufname)) ;XXX hack for .py buffers
376 (format ipython-completion-command-string pattern))
380 (format ipython-completion-command-string pattern))
377 (accept-process-output (get-buffer-process (current-buffer)))
381 (accept-process-output python-process)
378 (setq completions
382 (setq completions
379 (split-string (substring ugly-return 0 (position ?\n ugly-return)) sep))
383 (split-string (substring ugly-return 0 (position ?\n ugly-return)) sep))
380 ;(message (format "DEBUG completions: %S" completions))
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 \layout Standard
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 To permanently set your color preferences, edit the file
1668 To permanently set your color preferences, edit the file
1668 \family typewriter
1669 \family typewriter
1669 $HOME/.ipython/ipythonrc
1670 $HOME/.ipython/ipythonrc
@@ -1834,10 +1835,8 b' Once you put these files in your Emacs path, all you need in your'
1834 .emacs
1835 .emacs
1835 \family default
1836 \family default
1836 file is:
1837 file is:
1837 \layout Standard
1838 \layout LyX-Code
1838
1839
1839
1840 \family typewriter
1841 (require 'ipython)
1840 (require 'ipython)
1842 \layout Standard
1841 \layout Standard
1843
1842
@@ -1849,6 +1848,17 b' C-c\\SpecialChar ~'
1849 \family default
1848 \family default
1850 , etc.
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 \layout Subsubsection*
1862 \layout Subsubsection*
1853
1863
1854 Notes
1864 Notes
General Comments 0
You need to be logged in to leave comments. Login now