aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorMichael Olson2007-09-19 03:29:03 +0000
committerMichael Olson2007-09-19 03:29:03 +0000
commitd20cf916c01d956cf65e280ecccf4ad10e8f566e (patch)
tree9c7756f724e91dd0361ea1490e59ceba0cd036ae /lisp
parent44954c2f94bf24ed1eaece22da665c088109efa3 (diff)
downloademacs-d20cf916c01d956cf65e280ecccf4ad10e8f566e.tar.gz
emacs-d20cf916c01d956cf65e280ecccf4ad10e8f566e.zip
Sync changes from upstream ERC
Diffstat (limited to 'lisp')
-rw-r--r--lisp/erc/ChangeLog28
-rw-r--r--lisp/erc/erc-log.el28
-rw-r--r--lisp/erc/erc-sound.el2
-rw-r--r--lisp/erc/erc-track.el6
4 files changed, 57 insertions, 7 deletions
diff --git a/lisp/erc/ChangeLog b/lisp/erc/ChangeLog
index 89bdee631a1..2c6c3e969ba 100644
--- a/lisp/erc/ChangeLog
+++ b/lisp/erc/ChangeLog
@@ -1,5 +1,33 @@
12007-09-18 Exal de Jesus Garcia Carrillo <exal@gmx.de>
2
3 * erc.texi (Special-Features): Fix small typo.
4
52007-09-16 Michael Olson <mwolson@gnu.org>
6
7 * erc-track.el (erc-track-switch-direction): Mention
8 erc-track-faces-priority-list. Thanks to Leo for the suggestion.
9
102007-09-11 Exal de Jesus Garcia Carrillo <exal@gnu.org>
11
12 * erc-sound.el: Fix typo in setting up instructions.
13
142007-09-10 Michael Olson <mwolson@gnu.org>
15
16 * Makefile (elpa): Copy dir template rather than echoing a few
17 lines. The reason for this is that the ELPA package for ERC was
18 getting a corrupt dir entry.
19
20 * dir-template: Template for the ELPA dir file.
21
12007-09-08 Michael Olson <mwolson@gnu.org> 222007-09-08 Michael Olson <mwolson@gnu.org>
2 23
24 * erc-log.el (erc-log-filter-function): New option that specifies
25 the function to call for filtering text before writing it to a log
26 file. Thanks to David O'Toole for the suggestion.
27 (erc-save-buffer-in-logs): Use erc-log-filter-function. Make sure
28 we carry along the value of coding-system-for-write, because this
29 could potentially be shadowed by the temporary buffer.
30
3 * erc.el (erc-version-string): Update to 5.3, development version. 31 * erc.el (erc-version-string): Update to 5.3, development version.
4 32
52007-09-07 Glenn Morris <rgm@gnu.org> 332007-09-07 Glenn Morris <rgm@gnu.org>
diff --git a/lisp/erc/erc-log.el b/lisp/erc/erc-log.el
index 856f1dca89e..1733b3d1b00 100644
--- a/lisp/erc/erc-log.el
+++ b/lisp/erc/erc-log.el
@@ -205,6 +205,16 @@ This should ideally, be a \"catch-all\" coding system, like
205`emacs-mule', or `iso-2022-7bit'." 205`emacs-mule', or `iso-2022-7bit'."
206 :group 'erc-log) 206 :group 'erc-log)
207 207
208(defcustom erc-log-filter-function nil
209 "*If non-nil, pass text through the given function before writing it to
210a log file.
211
212The function should take one argument, which is the text to filter."
213 :group 'erc-log
214 :type '(choice (function "Function")
215 (const :tag "No filtering" nil)))
216
217
208;;;###autoload (autoload 'erc-log-mode "erc-log" nil t) 218;;;###autoload (autoload 'erc-log-mode "erc-log" nil t)
209(define-erc-module log nil 219(define-erc-module log nil
210 "Automatically logs things you receive on IRC into files. 220 "Automatically logs things you receive on IRC into files.
@@ -405,17 +415,25 @@ You can save every individual message by putting this function on
405 (or buffer (setq buffer (current-buffer))) 415 (or buffer (setq buffer (current-buffer)))
406 (when (erc-logging-enabled buffer) 416 (when (erc-logging-enabled buffer)
407 (let ((file (erc-current-logfile buffer)) 417 (let ((file (erc-current-logfile buffer))
408 (coding-system-for-write erc-log-file-coding-system)) 418 (coding-system erc-log-file-coding-system))
409 (save-excursion 419 (save-excursion
410 (with-current-buffer buffer 420 (with-current-buffer buffer
411 (save-restriction 421 (save-restriction
412 (widen) 422 (widen)
413 ;; early on in the initalisation, don't try and write the log out 423 ;; early on in the initialization, don't try and write the log out
414 (when (and (markerp erc-last-saved-position) 424 (when (and (markerp erc-last-saved-position)
415 (> erc-insert-marker (1+ erc-last-saved-position))) 425 (> erc-insert-marker (1+ erc-last-saved-position)))
416 (write-region (1+ (marker-position erc-last-saved-position)) 426 (let ((start (1+ (marker-position erc-last-saved-position)))
417 (marker-position erc-insert-marker) 427 (end (marker-position erc-insert-marker)))
418 file t 'nomessage) 428 (if (functionp erc-log-filter-function)
429 (let ((text (buffer-substring start end)))
430 (with-temp-buffer
431 (insert (funcall erc-log-filter-function text))
432 (let ((coding-system-for-write coding-system))
433 (write-region (point-min) (point-max)
434 file t 'nomessage))))
435 (let ((coding-system-for-write coding-system))
436 (write-region start end file t 'nomessage))))
419 (if (and erc-truncate-buffer-on-save (interactive-p)) 437 (if (and erc-truncate-buffer-on-save (interactive-p))
420 (progn 438 (progn
421 (let ((inhibit-read-only t)) (erase-buffer)) 439 (let ((inhibit-read-only t)) (erase-buffer))
diff --git a/lisp/erc/erc-sound.el b/lisp/erc/erc-sound.el
index d02887a69dc..7a1a28198bf 100644
--- a/lisp/erc/erc-sound.el
+++ b/lisp/erc/erc-sound.el
@@ -30,7 +30,7 @@
30 30
31;; Add the following to your .emacs if you want to play sounds. 31;; Add the following to your .emacs if you want to play sounds.
32;; 32;;
33;; (require 'erc-soud) 33;; (require 'erc-sound)
34;; (erc-sound-enable) 34;; (erc-sound-enable)
35;; 35;;
36;; To send requests to other users from within query buffers, type the 36;; To send requests to other users from within query buffers, type the
diff --git a/lisp/erc/erc-track.el b/lisp/erc/erc-track.el
index 5865257434e..1408adcd942 100644
--- a/lisp/erc/erc-track.el
+++ b/lisp/erc/erc-track.el
@@ -285,7 +285,11 @@ when there are no more active channels."
285 oldest - find oldest active buffer 285 oldest - find oldest active buffer
286 newest - find newest active buffer 286 newest - find newest active buffer
287 leastactive - find buffer with least unseen messages 287 leastactive - find buffer with least unseen messages
288 mostactive - find buffer with most unseen messages." 288 mostactive - find buffer with most unseen messages.
289
290If set to 'importance, the importance is determined by position
291in `erc-track-faces-priority-list', where first is most
292important."
289 :group 'erc-track 293 :group 'erc-track
290 :type '(choice (const importance) 294 :type '(choice (const importance)
291 (const oldest) 295 (const oldest)