aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeo Liu2011-06-01 16:10:42 +0800
committerLeo Liu2011-06-01 16:10:42 +0800
commit108bf785c8200c4d284da770c6455ef9cf990431 (patch)
tree5154c338720ce6342ef415171f528a7b41f7262e
parent67a0931d39202b9e7169c88d7fe47aa345fbfcae (diff)
downloademacs-108bf785c8200c4d284da770c6455ef9cf990431.tar.gz
emacs-108bf785c8200c4d284da770c6455ef9cf990431.zip
Fix last change on rcirc-print and rcirc-decode-coding-system
-rw-r--r--lisp/ChangeLog7
-rw-r--r--lisp/net/rcirc.el9
2 files changed, 11 insertions, 5 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 307aac72bc5..1769629115c 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,10 @@
12011-06-01 Leo Liu <sdl.web@gmail.com>
2
3 * net/rcirc.el (rcirc-decode-coding-system): Revert last change;
4 improve doc-string as suggested by Marco Pessotto
5 <melmothx@gmail.com>.
6 (rcirc-print): Fix last change.
7
12011-05-31 Stefan Monnier <monnier@iro.umontreal.ca> 82011-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
2 9
3 * minibuffer.el (complete-with-action): Return nil for the metadata and 10 * minibuffer.el (complete-with-action): Return nil for the metadata and
diff --git a/lisp/net/rcirc.el b/lisp/net/rcirc.el
index b1ee4c45373..bd9d6846a4b 100644
--- a/lisp/net/rcirc.el
+++ b/lisp/net/rcirc.el
@@ -314,11 +314,11 @@ Called with 5 arguments, PROCESS, SENDER, RESPONSE, TARGET and TEXT."
314 :type 'boolean 314 :type 'boolean
315 :group 'rcirc) 315 :group 'rcirc)
316 316
317(defcustom rcirc-decode-coding-system nil 317(defcustom rcirc-decode-coding-system 'utf-8
318 "Coding system used to decode incoming irc messages. 318 "Coding system used to decode incoming irc messages.
319If nil automatically detect the coding system." 319Set to 'undecided if you want the encoding of the incoming
320messages autodetected."
320 :type 'coding-system 321 :type 'coding-system
321 :version "24.1"
322 :group 'rcirc) 322 :group 'rcirc)
323 323
324(defcustom rcirc-encode-coding-system 'utf-8 324(defcustom rcirc-encode-coding-system 'utf-8
@@ -1482,8 +1482,7 @@ record activity."
1482 (old-point (point-marker)) 1482 (old-point (point-marker))
1483 (fill-start (marker-position rcirc-prompt-start-marker))) 1483 (fill-start (marker-position rcirc-prompt-start-marker)))
1484 1484
1485 (setq text (decode-coding-string text (or rcirc-decode-coding-system 1485 (setq text (decode-coding-string text rcirc-decode-coding-system))
1486 (detect-coding-string text t))))
1487 (unless (string= sender (rcirc-nick process)) 1486 (unless (string= sender (rcirc-nick process))
1488 ;; mark the line with overlay arrow 1487 ;; mark the line with overlay arrow
1489 (unless (or (marker-position overlay-arrow-position) 1488 (unless (or (marker-position overlay-arrow-position)