diff options
| author | Deniz Dogan | 2011-01-31 16:19:57 +0100 |
|---|---|---|
| committer | Deniz Dogan | 2011-01-31 16:19:57 +0100 |
| commit | 186ecaf1a6d22b7e0eae83ba31136d90fb5a49a6 (patch) | |
| tree | f79d716c6199344452c604fd04d1658f65d5bda9 /lisp | |
| parent | 0c74b838718955f7989a76f1e829af6fc8e25e61 (diff) | |
| download | emacs-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/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 f69b32a4878..d9e4d58af59 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-30 Jan Djärv <jan.h.d@swipnet.se> | 7 | 2011-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 | |||
| 1565 | session. | 1565 | session. |
| 1566 | 1566 | ||
| 1567 | If the returned filename is absolute (`file-name-absolute-p' | 1567 | If the returned filename is absolute (`file-name-absolute-p' |
| 1568 | returns true), then it is used as-is, otherwise the resulting | 1568 | returns t), then it is used as-is, otherwise the resulting file |
| 1569 | file is put into `rcirc-log-directory'." | 1569 | is put into `rcirc-log-directory'. |
| 1570 | |||
| 1571 | The filename is then cleaned using `convert-standard-filename' to | ||
| 1572 | guarantee 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'." | |||
| 1591 | Log data is written to `rcirc-log-directory', except for | 1594 | Log data is written to `rcirc-log-directory', except for |
| 1592 | log-files with absolute names (see `rcirc-log-filename-function')." | 1595 | log-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 |