* gnus-parameters ignores case
@ 2005-11-01 5:57 Katsumi Yamaoka
2005-11-01 23:29 ` Katsumi Yamaoka
0 siblings, 1 reply; 2+ messages in thread
From: Katsumi Yamaoka @ 2005-11-01 5:57 UTC (permalink / raw)
Cc: IRIE Tetsuya
[-- Attachment #1: Type: text/plain, Size: 406 bytes --]
Hi,
IRIE Tetsuya reported that he lost all mails in the INBOX.foo
group when he set `gnus-parameters' to:
(setq gnus-parameters '(("INBOX\\.FOO" (total-expire . t))))
He meant having added that parameter to the INBOX.FOO group, not
INBOX.foo group, however it was applied to both the groups. To
solve this problem, I propose the following changes. WDYT?
Plan 1: This might trouble some other users.
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Type: text/x-patch, Size: 384 bytes --]
--- gnus.el~ 2005-09-16 01:51:50 +0000
+++ gnus.el 2005-11-01 05:53:07 +0000
@@ -3769,7 +3769,8 @@
(defun gnus-parameters-get-parameter (group)
"Return the group parameters for GROUP from `gnus-parameters'."
- (let (params-list)
+ (let ((case-fold-search nil)
+ params-list)
(dolist (elem gnus-parameters)
(when (string-match (car elem) group)
(setq params-list
[-- Attachment #3: Type: text/plain, Size: 63 bytes --]
Plan 2: This does the same behavior as the conventional one.
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #4: Type: text/x-patch, Size: 1093 bytes --]
--- gnus.el~ 2005-09-16 01:51:50 +0000
+++ gnus.el 2005-11-01 05:53:08 +0000
@@ -1100,6 +1100,16 @@
:type '(repeat (cons regexp
(repeat sexp))))
+(defcustom gnus-parameters-case-fold-search 'default
+ "If it is t, ignore case of group names specified in `gnus-parameters'.
+If it is nil, don't ignore case. If it is `default', which is for the
+backward compatibility, use the value of `case-fold-search'."
+ :version "22.1"
+ :group 'gnus-group-various
+ :type '(radio (const :tag "Use `case-fold-search'" default)
+ (const nil)
+ (const t)))
+
(defvar gnus-group-parameters-more nil)
(defmacro gnus-define-group-parameter (param &rest rest)
@@ -3769,7 +3779,10 @@
(defun gnus-parameters-get-parameter (group)
"Return the group parameters for GROUP from `gnus-parameters'."
- (let (params-list)
+ (let ((case-fold-search (if (eq gnus-parameters-case-fold-search 'default)
+ case-fold-search
+ gnus-parameters-case-fold-search))
+ params-list)
(dolist (elem gnus-parameters)
(when (string-match (car elem) group)
(setq params-list
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: gnus-parameters ignores case
2005-11-01 5:57 gnus-parameters ignores case Katsumi Yamaoka
@ 2005-11-01 23:29 ` Katsumi Yamaoka
0 siblings, 0 replies; 2+ messages in thread
From: Katsumi Yamaoka @ 2005-11-01 23:29 UTC (permalink / raw)
Cc: IRIE Tetsuya
>>>>> In <b4mbr14rjug.fsf@jpl.org> Katsumi Yamaoka wrote:
> IRIE Tetsuya reported that he lost all mails in the INBOX.foo
> group when he set `gnus-parameters' to:
> (setq gnus-parameters '(("INBOX\\.FOO" (total-expire . t))))
> He meant having added that parameter to the INBOX.FOO group, not
> INBOX.foo group, however it was applied to both the groups. To
> solve this problem, I propose the following changes. WDYT?
> Plan 1: This might trouble some other users.
[...]
> Plan 2: This does the same behavior as the conventional one.
I've installed the second one.
BTW, I got the following warning when checking in to cvs.gnus.org:
open2: exec of diffstat -w 78 failed at /usr/local/cvsroot/CVSROOT/cvslog line 462
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-11-01 23:29 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-11-01 5:57 gnus-parameters ignores case Katsumi Yamaoka
2005-11-01 23:29 ` Katsumi Yamaoka
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 NNTP newsgroup(s).