Commit 183fc730 authored by Leo Liu's avatar Leo Liu

Conditionally initialize rcirc-input-ring

parent 77694924
2011-09-07 Leo Liu <sdl.web@gmail.com>
* net/rcirc.el (rcirc-mode): Conditionally initialize
rcirc-input-ring.
2011-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
* emacs-lisp/find-func.el (find-function-C-source): Only set
......
......@@ -964,7 +964,13 @@ This number is independent of the number of lines in the buffer.")
(setq mode-line-process nil)
(set (make-local-variable 'rcirc-input-ring)
(make-ring rcirc-input-ring-size))
;; If rcirc-input-ring is already a ring with desired size do
;; not re-initialize.
(if (and (ring-p rcirc-input-ring)
(= (ring-size rcirc-input-ring)
rcirc-input-ring-size))
rcirc-input-ring
(make-ring rcirc-input-ring-size)))
(set (make-local-variable 'rcirc-server-buffer) (process-buffer process))
(set (make-local-variable 'rcirc-target) target)
(set (make-local-variable 'rcirc-topic) nil)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment