diff options
| author | Stefan Monnier | 2014-07-03 21:35:23 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2014-07-03 21:35:23 -0400 |
| commit | 7fe2ae672055afe911ee4b21e475d269001cc7d3 (patch) | |
| tree | 931d18ded278075f8fa056ce2419574c54bdb381 | |
| parent | f35b80810d584b30397c5ce38acf2305e50c23db (diff) | |
| download | emacs-7fe2ae672055afe911ee4b21e475d269001cc7d3.tar.gz emacs-7fe2ae672055afe911ee4b21e475d269001cc7d3.zip | |
* lisp/progmodes/octave.el (inferior-octave-mode):
Set comint-input-ring-size to a number.
Fixes: debbugs:17912
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/progmodes/octave.el | 7 |
2 files changed, 9 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 78235d76879..021b0693654 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2014-07-04 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * progmodes/octave.el (inferior-octave-mode): | ||
| 4 | Set comint-input-ring-size to a number (bug#17912). | ||
| 5 | |||
| 1 | 2014-07-03 Juri Linkov <juri@jurta.org> | 6 | 2014-07-03 Juri Linkov <juri@jurta.org> |
| 2 | 7 | ||
| 3 | * desktop.el (desktop-minor-mode-table): Add `defining-kbd-macro' | 8 | * desktop.el (desktop-minor-mode-table): Add `defining-kbd-macro' |
diff --git a/lisp/progmodes/octave.el b/lisp/progmodes/octave.el index 3fdcec219d3..25b081545a3 100644 --- a/lisp/progmodes/octave.el +++ b/lisp/progmodes/octave.el | |||
| @@ -747,9 +747,10 @@ Key bindings: | |||
| 747 | (setq-local info-lookup-mode 'octave-mode) | 747 | (setq-local info-lookup-mode 'octave-mode) |
| 748 | (setq-local eldoc-documentation-function 'octave-eldoc-function) | 748 | (setq-local eldoc-documentation-function 'octave-eldoc-function) |
| 749 | 749 | ||
| 750 | (setq comint-input-ring-file-name | 750 | (setq-local comint-input-ring-file-name |
| 751 | (or (getenv "OCTAVE_HISTFILE") "~/.octave_hist") | 751 | (or (getenv "OCTAVE_HISTFILE") "~/.octave_hist")) |
| 752 | comint-input-ring-size (or (getenv "OCTAVE_HISTSIZE") 1024)) | 752 | (setq-local comint-input-ring-size |
| 753 | (string-to-number (or (getenv "OCTAVE_HISTSIZE") "1024"))) | ||
| 753 | (comint-read-input-ring t) | 754 | (comint-read-input-ring t) |
| 754 | (setq-local comint-dynamic-complete-functions | 755 | (setq-local comint-dynamic-complete-functions |
| 755 | inferior-octave-dynamic-complete-functions) | 756 | inferior-octave-dynamic-complete-functions) |