]> code.delx.au - gnu-emacs/commitdiff
Backport Bug#7933 fix from trunk. emacs-pretest-23.2.93
authorDeniz Dogan <deniz.a.m.dogan@gmail.com>
Mon, 31 Jan 2011 23:11:29 +0000 (18:11 -0500)
committerChong Yidong <cyd@stupidchicken.com>
Mon, 31 Jan 2011 23:11:29 +0000 (18:11 -0500)
* lisp/net/rcirc.el: Clean log filenames (Bug#7933).
(rcirc-log-write): Use convert-standard-filename.
(rcirc-log-filename-function): Documentation updates.

lisp/ChangeLog
lisp/net/rcirc.el

index c8e7a3f27bf007c28f9bcd1138fb28171c100d8d..ead0456a7b1e56d8a9eadd07143f4e0a04bfb54b 100644 (file)
@@ -1,3 +1,9 @@
+2011-01-31  Deniz Dogan  <deniz.a.m.dogan@gmail.com>
+
+       * net/rcirc.el: Clean log filenames (Bug#7933).
+       (rcirc-log-write): Use convert-standard-filename.
+       (rcirc-log-filename-function): Documentation updates.
+
 2011-01-31  Alan Mackenzie  <acm@muc.de>
 
        * progmodes/cc-cmds.el (c-forward-over-illiterals): Continue
index b4f97466baa9f98e08bff50ab062aff7132621a3..818128142f8bc7b9e9a2e7ea8ec73886f0cf5d6a 100644 (file)
@@ -1520,8 +1520,11 @@ return the filename, or nil if no logging is desired for this
 session.
 
 If the returned filename is absolute (`file-name-absolute-p'
-returns true), then it is used as-is, otherwise the resulting
-file is put into `rcirc-log-directory'."
+returns t), then it is used as-is, otherwise the resulting file
+is put into `rcirc-log-directory'.
+
+The filename is then cleaned using `convert-standard-filename' to
+guarantee valid filenames for the current OS."
   :group 'rcirc
   :type 'function)
 
@@ -1546,7 +1549,9 @@ file is put into `rcirc-log-directory'."
 Log data is written to `rcirc-log-directory', except for
 log-files with absolute names (see `rcirc-log-filename-function')."
   (dolist (cell rcirc-log-alist)
-    (let ((filename (expand-file-name (car cell) rcirc-log-directory))
+    (let ((filename (convert-standard-filename
+                     (expand-file-name (car cell)
+                                       rcirc-log-directory)))
          (coding-system-for-write 'utf-8))
       (make-directory (file-name-directory filename) t)
       (with-temp-buffer