aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKelvin White2014-08-13 09:14:43 -0400
committerKelvin White2014-08-13 09:14:43 -0400
commit92180ebd2eb944cc84f6e3c6f26a58b21374a79a (patch)
treeeaa3b5e858f51c297d1d0f329c804b059bac3951
parentb5354531bac4ea261d66804ac81be222fdeaaec2 (diff)
downloademacs-92180ebd2eb944cc84f6e3c6f26a58b21374a79a.tar.gz
emacs-92180ebd2eb944cc84f6e3c6f26a58b21374a79a.zip
* erc.el Disable display commands in current buffer, fix case where buffer name is already set
-rw-r--r--lisp/erc/ChangeLog5
-rw-r--r--lisp/erc/erc.el6
2 files changed, 7 insertions, 4 deletions
diff --git a/lisp/erc/ChangeLog b/lisp/erc/ChangeLog
index bf7e1924b52..dcde62af9c2 100644
--- a/lisp/erc/ChangeLog
+++ b/lisp/erc/ChangeLog
@@ -1,3 +1,8 @@
12014-08-13 Kelvin White <kwhite@gnu.org>
2
3 * erc.el (erc-send-input): Disable display commands in current buffer
4 (erc-format-target-and/or-network): Fix cases when buffer name is set
5
12014-08-12 Stefan Monnier <monnier@iro.umontreal.ca> 62014-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
2 7
3 * erc-stamp.el (erc-timestamp-intangible): Disable by default because 8 * erc-stamp.el (erc-timestamp-intangible): Disable by default because
diff --git a/lisp/erc/erc.el b/lisp/erc/erc.el
index 36a176c6925..cedc4f6b517 100644
--- a/lisp/erc/erc.el
+++ b/lisp/erc/erc.el
@@ -5376,9 +5376,7 @@ This returns non-nil only if we actually send anything."
5376 (null erc-flood-protect) t)) 5376 (null erc-flood-protect) t))
5377 (or (and erc-flood-protect (erc-split-line line)) 5377 (or (and erc-flood-protect (erc-split-line line))
5378 (list line)))) 5378 (list line))))
5379 (split-string str "\n")) 5379 (split-string str "\n"))
5380 ;; Insert the prompt along with the command.
5381 (erc-display-command str)
5382 (erc-process-input-line (concat str "\n") t nil)) 5380 (erc-process-input-line (concat str "\n") t nil))
5383 t))))) 5381 t)))))
5384 5382
@@ -6234,7 +6232,7 @@ shortened server name instead."
6234 (concat (erc-string-no-properties (erc-default-target)) 6232 (concat (erc-string-no-properties (erc-default-target))
6235 "@" network-name)) 6233 "@" network-name))
6236 ((and network-name 6234 ((and network-name
6237 (not (string-equal network-name (buffer-name)))) 6235 (not (get-buffer network-name)))
6238 (rename-buffer network-name) 6236 (rename-buffer network-name)
6239 network-name) 6237 network-name)
6240 (t (buffer-name (current-buffer)))))) 6238 (t (buffer-name (current-buffer))))))