From: Leo Liu Date: Mon, 13 Feb 2012 07:54:47 +0000 (+0800) Subject: Trivial fix for rcirc-markup-attributes X-Git-Tag: emacs-pretest-24.0.94~156 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=142b4d90fa4a147dcfd2075448f39bf7a4356187;p=emacs.git Trivial fix for rcirc-markup-attributes --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index a078c43cd6c..9669fbe70d0 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2012-02-13 Leo Liu + + * net/rcirc.el (rcirc-markup-attributes): Move point to the + beginning so that all \C-o chars are removed. + 2012-02-12 Teodor Zlatanov * net/gnutls.el (gnutls-algorithm-priority): Add missing :group diff --git a/lisp/net/rcirc.el b/lisp/net/rcirc.el index b8bf270d87c..1c74e6190dc 100644 --- a/lisp/net/rcirc.el +++ b/lisp/net/rcirc.el @@ -2384,6 +2384,7 @@ keywords when no KEYWORD is given." (delete-region (match-beginning 1) (match-end 1)) (goto-char (match-beginning 1))) ;; remove the ^O characters now + (goto-char (point-min)) (while (re-search-forward "\C-o+" nil t) (delete-region (match-beginning 0) (match-end 0))))