diff options
| author | Ivan Shmakov | 2014-10-02 07:31:56 -0400 |
|---|---|---|
| committer | Kelvin White | 2014-10-02 07:31:56 -0400 |
| commit | 3af2917c91e4eb863e1cec92a68ccb3acf940dae (patch) | |
| tree | 05a9ae9edbb2d1a5a8e1a1605b4ea2f3074da7a6 | |
| parent | 5f8947c7007d1d844b3d1de97e2d232a005ca07d (diff) | |
| download | emacs-3af2917c91e4eb863e1cec92a68ccb3acf940dae.tar.gz emacs-3af2917c91e4eb863e1cec92a68ccb3acf940dae.zip | |
Do not reset input ring if one exists
Fixes: debbugs:18599
| -rw-r--r-- | lisp/erc/ChangeLog | 4 | ||||
| -rw-r--r-- | lisp/erc/erc-ring.el | 3 |
2 files changed, 6 insertions, 1 deletions
diff --git a/lisp/erc/ChangeLog b/lisp/erc/ChangeLog index 1ea79dbbc1a..e4f65895de9 100644 --- a/lisp/erc/ChangeLog +++ b/lisp/erc/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2014-10-02 Kelvin White <kwhite@gnu.org> | ||
| 2 | |||
| 3 | * erc-ring.el (erc-input-ring-setup): Fixes Bug #18599 | ||
| 4 | |||
| 1 | 2014-09-30 Stefan Monnier <monnier@iro.umontreal.ca> | 5 | 2014-09-30 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 6 | ||
| 3 | * erc-track.el (erc-modified-channels-display): Update all mode lines | 7 | * erc-track.el (erc-modified-channels-display): Update all mode lines |
diff --git a/lisp/erc/erc-ring.el b/lisp/erc/erc-ring.el index 1762700ff36..682585c53bb 100644 --- a/lisp/erc/erc-ring.el +++ b/lisp/erc/erc-ring.el | |||
| @@ -67,7 +67,8 @@ variable.") | |||
| 67 | (defun erc-input-ring-setup () | 67 | (defun erc-input-ring-setup () |
| 68 | "Do the setup required so that we can use comint style input rings. | 68 | "Do the setup required so that we can use comint style input rings. |
| 69 | Call this function when setting up the mode." | 69 | Call this function when setting up the mode." |
| 70 | (setq erc-input-ring (make-ring comint-input-ring-size)) | 70 | (unless (ring-p erc-input-ring) |
| 71 | (setq erc-input-ring (make-ring comint-input-ring-size))) | ||
| 71 | (setq erc-input-ring-index nil)) | 72 | (setq erc-input-ring-index nil)) |
| 72 | 73 | ||
| 73 | (defun erc-add-to-input-ring (s) | 74 | (defun erc-add-to-input-ring (s) |