From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/69176 Path: news.gmane.org!not-for-mail From: Harry Putnam Newsgroups: gmane.emacs.gnus.general Subject: Re: filtering nntp messages Date: Sat, 24 Oct 2009 17:59:44 -0500 Organization: Still searching... Message-ID: <87ljj04cv3.fsf@newsguy.com> References: <87fx9ayr7z.fsf@newsguy.com> <874oppivvc.fsf@topper.koldfront.dk> <87skd9en56.fsf@lifelogs.com> <87bpjxpnim.fsf@newsguy.com> <873a58q14l.fsf@newsguy.com> <87hbto927t.fsf@topper.koldfront.dk> <874opo7eif.fsf@newsguy.com> <87d44cwnye.fsf@topper.koldfront.dk> <87pr8c4f9i.fsf@newsguy.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1256425251 14228 80.91.229.12 (24 Oct 2009 23:00:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 24 Oct 2009 23:00:51 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M17589@lists.math.uh.edu Sun Oct 25 01:00:43 2009 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.50) id 1N1pbE-0005r1-79 for ding-account@gmane.org; Sun, 25 Oct 2009 01:00:40 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1N1pan-0007Zn-EE; Sat, 24 Oct 2009 18:00:13 -0500 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1N1pal-0007Za-LK for ding@lists.math.uh.edu; Sat, 24 Oct 2009 18:00:11 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.69) (envelope-from ) id 1N1pak-00047S-5i for ding@lists.math.uh.edu; Sat, 24 Oct 2009 18:00:11 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1N1paj-0001LV-00 for ; Sun, 25 Oct 2009 01:00:09 +0200 Original-Received: from list by lo.gmane.org with local (Exim 4.50) id 1N1pai-0005jD-HR for ding@gnus.org; Sun, 25 Oct 2009 01:00:08 +0200 Original-Received: from c-98-215-178-110.hsd1.in.comcast.net ([98.215.178.110]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 25 Oct 2009 01:00:08 +0200 Original-Received: from reader by c-98-215-178-110.hsd1.in.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 25 Oct 2009 01:00:08 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 69 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: c-98-215-178-110.hsd1.in.comcast.net User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1.50 (gnu/linux) Cancel-Lock: sha1:xHMeoAZYV9j3TEksKFAuTN8TAi8= X-Spam-Score: -2.5 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:69176 Archived-At: Harry Putnam writes: > I've set a regex to match subjects that I thought would match: > Any two or more tildes in a row OR any 4 Uppercase letters in a row. > > (("subject" > ("~~\\|[A-Z]\\{4\\}" -101 nil r))) > > But apparently I'd miss-reading the regular expressions section in > emacs manual or making some other blunder because the regex above > matches every last message in comp.programming > > Then I tried `~~\\|\\[A-Z\\]\\{4\\}' > And it worked as planned Ahh scratch that... it doesn't match 4 uppercase letters either. This one below seems to match most closely what the regexps syntax part of emacs manual actually says. `[A-Z][A-Z]' (BUT:It matches everything) Is it a case problem... is emacs using the regex case insensitively? This does not match either. \\[A-Z\\]\\[A-Z\\] I do have this in .emacs (setq case-fold-search nil) But still in gnus-summary-mode C-h v case-fold-search shows it with the value t So setting it manually with M-x set-variable.. I then see the value is: ,---- | case-fold-search is a variable defined in `C source code'. | Its value is nil | Local in buffer | *Summary nntp+enews.newsguy.com:comp.infosystems*; global value is t `---- but still the regex [A-Z][A-Z] affects ALL subject lines. A little more testing shows that emacs insists on using the regex case insensitively. I even tried: (defun case-fold-nil () (setq case-fold-search nil)) (add-hook 'gnus-summary-mode-hook 'case-fold-nil) But when I evaluate that it returns: (case-fold-nil gnus-agent-mode) And in summary-buffer C-h v case-fold-search returns: ,---- | case-fold-search is a variable defined in `C source code'. | Its value is nil | Local in buffer *Summary nntp+enews.newsguy.com:comp.infosystems*; global value is t `---- But still when I run V R with the score file: (("subject" ("winning" -101 nil r))) It still marks a subject with WINNING in it. What am I doing wrong here...? case-fold-search does need to be nil right?