unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#6828: 24.0.50; [PATCH] rcirc process buffer log filenames invalid on  Windows
@ 2010-08-09  0:28 Deniz Dogan
  2010-08-14 23:07 ` Chong Yidong
  2010-08-16  3:26 ` bug#6828: (no subject) Ryan Yeske
  0 siblings, 2 replies; 4+ messages in thread
From: Deniz Dogan @ 2010-08-09  0:28 UTC (permalink / raw)
  To: 6828, rcyeske

[-- Attachment #1: Type: text/plain, Size: 1328 bytes --]

The rcirc logging facility doesn't play nicely when it comes to
writing process buffers (or "server buffers") to disk on Windows
systems. The generated log filenames contain asterisks which are not
allowed on Windows systems. This makes rcirc and Emacs as a whole
unusable when rcirc-log-flag is non-nil, i.e. when logging to disk is
turned on. Emacs just messages errors in the echo area when this
happens and you can't easily stop it.

Attached is a patch which introduces a new function and a new
customizable variable.

rcirc-generate-log-filename is the function which takes care of
generating filenames for rcirc buffer logs. It is now the default
instead of the old rcirc-generate-new-buffer-name.

rcirc-log-process-buffers is the new variable which decides whether or
not to log process buffers to disk at all. I get the feeling that not
that many people are interested in logging this as it rarely contains
any useful information that you would want to store. Nevertheless, the
variable is non-nil by default which turns on process buffer logging.

The setup I'm using by the way:

In GNU Emacs 24.0.50.1 (i386-mingw-nt6.1.7600)
 of 2010-08-02 on 3249CTO
Windowing system distributor `Microsoft Corp.', version 6.1.7600
configured using `configure --with-gcc (4.4) --no-opt --cflags -Ic:/xpm/include'

-- 
Deniz Dogan

[-- Attachment #2: rcirc-log-patch-dd.diff --]
[-- Type: application/octet-stream, Size: 778 bytes --]

1510,1511c1510,1513
<       (when rcirc-log-flag
<         (rcirc-log process sender response target text))
---
>       (when (and rcirc-log-flag
>                    (or target
>                        rcirc-log-process-buffers))
>           (rcirc-log process sender response target text))
1517c1519,1529
< (defcustom rcirc-log-filename-function 'rcirc-generate-new-buffer-name
---
> (defun rcirc-generate-log-filename (process target)
>   (if target
>       (rcirc-generate-new-buffer-name process target)
>     (process-name process)))
>
> (defcustom rcirc-log-process-buffers t
>   "Non-nil if rcirc process buffers should be logged to disk."
>   :group 'rcirc
>   :type 'boolean)
>
> (defcustom rcirc-log-filename-function 'rcirc-generate-log-filename

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-08-16  3:35 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-09  0:28 bug#6828: 24.0.50; [PATCH] rcirc process buffer log filenames invalid on Windows Deniz Dogan
2010-08-14 23:07 ` Chong Yidong
2010-08-16  3:26 ` bug#6828: (no subject) Ryan Yeske
2010-08-16  3:35   ` bug#6828: 24.0.50; [PATCH] rcirc process buffer log filenames invalid on Windows Chong Yidong

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).