unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Deniz Dogan <deniz.a.m.dogan@gmail.com>
To: 6828@debbugs.gnu.org, rcyeske@gmail.com
Subject: bug#6828: 24.0.50; [PATCH] rcirc process buffer log filenames invalid on  Windows
Date: Mon, 9 Aug 2010 02:28:26 +0200	[thread overview]
Message-ID: <AANLkTinGSY4t3cCpK73oU9hCnm=JR9yLWhR_W3zDNcwL@mail.gmail.com> (raw)

[-- 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

             reply	other threads:[~2010-08-09  0:28 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-09  0:28 Deniz Dogan [this message]
2010-08-14 23:07 ` bug#6828: 24.0.50; [PATCH] rcirc process buffer log filenames invalid on Windows 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='AANLkTinGSY4t3cCpK73oU9hCnm=JR9yLWhR_W3zDNcwL@mail.gmail.com' \
    --to=deniz.a.m.dogan@gmail.com \
    --cc=6828@debbugs.gnu.org \
    --cc=rcyeske@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).