diff options
| author | Deniz Dogan | 2011-01-31 18:11:29 -0500 |
|---|---|---|
| committer | Chong Yidong | 2011-01-31 18:11:29 -0500 |
| commit | 113ef437f21c6ea1b65abe668feb86f1622a9f2e (patch) | |
| tree | 13465414b1cbbcd64ee911248c427c79f07feb0d | |
| parent | 3b95603fb59f2445110e93b77b7470c3abf90913 (diff) | |
| download | emacs-pretest-23.2.93.tar.gz emacs-pretest-23.2.93.zip | |
Backport Bug#7933 fix from trunk.emacs-pretest-23.2.93
* lisp/net/rcirc.el: Clean log filenames (Bug#7933).
(rcirc-log-write): Use convert-standard-filename.
(rcirc-log-filename-function): Documentation updates.
| -rw-r--r-- | lisp/ChangeLog | 6 | ||||
| -rw-r--r-- | lisp/net/rcirc.el | 11 |
2 files changed, 14 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index c8e7a3f27bf..ead0456a7b1 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2011-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 | |||
| 1 | 2011-01-31 Alan Mackenzie <acm@muc.de> | 7 | 2011-01-31 Alan Mackenzie <acm@muc.de> |
| 2 | 8 | ||
| 3 | * progmodes/cc-cmds.el (c-forward-over-illiterals): Continue | 9 | * progmodes/cc-cmds.el (c-forward-over-illiterals): Continue |
diff --git a/lisp/net/rcirc.el b/lisp/net/rcirc.el index b4f97466baa..818128142f8 100644 --- a/lisp/net/rcirc.el +++ b/lisp/net/rcirc.el | |||
| @@ -1520,8 +1520,11 @@ return the filename, or nil if no logging is desired for this | |||
| 1520 | session. | 1520 | session. |
| 1521 | 1521 | ||
| 1522 | If the returned filename is absolute (`file-name-absolute-p' | 1522 | If the returned filename is absolute (`file-name-absolute-p' |
| 1523 | returns true), then it is used as-is, otherwise the resulting | 1523 | returns t), then it is used as-is, otherwise the resulting file |
| 1524 | file is put into `rcirc-log-directory'." | 1524 | is put into `rcirc-log-directory'. |
| 1525 | |||
| 1526 | The filename is then cleaned using `convert-standard-filename' to | ||
| 1527 | guarantee valid filenames for the current OS." | ||
| 1525 | :group 'rcirc | 1528 | :group 'rcirc |
| 1526 | :type 'function) | 1529 | :type 'function) |
| 1527 | 1530 | ||
| @@ -1546,7 +1549,9 @@ file is put into `rcirc-log-directory'." | |||
| 1546 | Log data is written to `rcirc-log-directory', except for | 1549 | Log data is written to `rcirc-log-directory', except for |
| 1547 | log-files with absolute names (see `rcirc-log-filename-function')." | 1550 | log-files with absolute names (see `rcirc-log-filename-function')." |
| 1548 | (dolist (cell rcirc-log-alist) | 1551 | (dolist (cell rcirc-log-alist) |
| 1549 | (let ((filename (expand-file-name (car cell) rcirc-log-directory)) | 1552 | (let ((filename (convert-standard-filename |
| 1553 | (expand-file-name (car cell) | ||
| 1554 | rcirc-log-directory))) | ||
| 1550 | (coding-system-for-write 'utf-8)) | 1555 | (coding-system-for-write 'utf-8)) |
| 1551 | (make-directory (file-name-directory filename) t) | 1556 | (make-directory (file-name-directory filename) t) |
| 1552 | (with-temp-buffer | 1557 | (with-temp-buffer |