aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorDeniz Dogan2011-01-31 16:19:57 +0100
committerDeniz Dogan2011-01-31 16:19:57 +0100
commit186ecaf1a6d22b7e0eae83ba31136d90fb5a49a6 (patch)
treef79d716c6199344452c604fd04d1658f65d5bda9 /lisp
parent0c74b838718955f7989a76f1e829af6fc8e25e61 (diff)
downloademacs-186ecaf1a6d22b7e0eae83ba31136d90fb5a49a6.tar.gz
emacs-186ecaf1a6d22b7e0eae83ba31136d90fb5a49a6.zip
* lisp/net/rcirc.el: Clean log filenames (Bug#7933).
(rcirc-log-write): Use convert-standard-filename. (rcirc-log-filename-function): Documentation updates.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog6
-rw-r--r--lisp/net/rcirc.el11
2 files changed, 14 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index f69b32a4878..d9e4d58af59 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,9 @@
12011-01-31 Deniz Dogan <deniz.a.m.dogan@gmail.com>
2
3 * net/rcirc.el: Clean log filenames (Bug#7933).
4 (rcirc-log-write): Use convert-standard-filename.
5 (rcirc-log-filename-function): Documentation updates.
6
12011-01-30 Jan Djärv <jan.h.d@swipnet.se> 72011-01-30 Jan Djärv <jan.h.d@swipnet.se>
2 8
3 * mail/emacsbug.el (report-emacs-bug-insert-to-mailer): Check 9 * mail/emacsbug.el (report-emacs-bug-insert-to-mailer): Check
diff --git a/lisp/net/rcirc.el b/lisp/net/rcirc.el
index 60efa9dd3ee..59a7b176088 100644
--- a/lisp/net/rcirc.el
+++ b/lisp/net/rcirc.el
@@ -1565,8 +1565,11 @@ return the filename, or nil if no logging is desired for this
1565session. 1565session.
1566 1566
1567If the returned filename is absolute (`file-name-absolute-p' 1567If the returned filename is absolute (`file-name-absolute-p'
1568returns true), then it is used as-is, otherwise the resulting 1568returns t), then it is used as-is, otherwise the resulting file
1569file is put into `rcirc-log-directory'." 1569is put into `rcirc-log-directory'.
1570
1571The filename is then cleaned using `convert-standard-filename' to
1572guarantee valid filenames for the current OS."
1570 :group 'rcirc 1573 :group 'rcirc
1571 :type 'function) 1574 :type 'function)
1572 1575
@@ -1591,7 +1594,9 @@ file is put into `rcirc-log-directory'."
1591Log data is written to `rcirc-log-directory', except for 1594Log data is written to `rcirc-log-directory', except for
1592log-files with absolute names (see `rcirc-log-filename-function')." 1595log-files with absolute names (see `rcirc-log-filename-function')."
1593 (dolist (cell rcirc-log-alist) 1596 (dolist (cell rcirc-log-alist)
1594 (let ((filename (expand-file-name (car cell) rcirc-log-directory)) 1597 (let ((filename (convert-standard-filename
1598 (expand-file-name (car cell)
1599 rcirc-log-directory)))
1595 (coding-system-for-write 'utf-8)) 1600 (coding-system-for-write 'utf-8))
1596 (make-directory (file-name-directory filename) t) 1601 (make-directory (file-name-directory filename) t)
1597 (with-temp-buffer 1602 (with-temp-buffer