From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: hector Newsgroups: gmane.emacs.help Subject: Re: `ibuffer-saved-filter-groups` case sensitive? Date: Fri, 7 Apr 2017 13:06:24 +0200 Message-ID: <20170407110624.GA6139@workstation> References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: blaine.gmane.org 1491563458 15869 195.159.176.226 (7 Apr 2017 11:10:58 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 7 Apr 2017 11:10:58 +0000 (UTC) User-Agent: Mutt/1.5.20 (2009-06-14) Cc: zimon.toutoune@gmail.com To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Apr 07 13:10:53 2017 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cwRmz-0002pL-HY for geh-help-gnu-emacs@m.gmane.org; Fri, 07 Apr 2017 13:10:49 +0200 Original-Received: from localhost ([::1]:50135 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cwRn2-0006WL-3C for geh-help-gnu-emacs@m.gmane.org; Fri, 07 Apr 2017 07:10:52 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59067) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cwRmW-0006WE-Cj for help-gnu-emacs@gnu.org; Fri, 07 Apr 2017 07:10:21 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cwRmR-00017k-Ee for help-gnu-emacs@gnu.org; Fri, 07 Apr 2017 07:10:20 -0400 Original-Received: from mail-wr0-x235.google.com ([2a00:1450:400c:c0c::235]:36161) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cwRmR-00017X-7f for help-gnu-emacs@gnu.org; Fri, 07 Apr 2017 07:10:15 -0400 Original-Received: by mail-wr0-x235.google.com with SMTP id c55so28918290wrc.3 for ; Fri, 07 Apr 2017 04:10:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:date:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=LqunZtToP1UWBZckKmBZFGkztkiZX7nmKk0PYWX5QYU=; b=GG6Q9fnap1l1EzprN5MBRYfFgzytWroY06mKOYSUn60RFsOsPy4SMyz1o1nIB0YsKJ GR7+iGkBByZ0rmYg3IknJhhmwZHBRW3QXNhrRZYCyiqkvPb21WYadbnfPnBZh9qDVZK/ H8pNbNEoVOeSCZEbhV4dBv2l71+DdbxxyJdYOg16nr5nBVwpDNEpUedYNK7uVUmdIk0p 9nevHz87uNfXNf/vhcXVdG8BmxqRhClopa/Coi46JhBlycaW6K/3Uh4pna1bjTxlGNMO FarTFyj7sSKtWiBGePINDNNON5QYYZg0EmQg3qvSfPu8ajk82KTyf5iwliHkd15sNTA7 Jt4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:date:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=LqunZtToP1UWBZckKmBZFGkztkiZX7nmKk0PYWX5QYU=; b=Opa+ybtlBVbmgJux/GNQtzfHjjp36rmotJwKlEUV/iYU8czClWJQm6yeHPwhIt1BXj UNqJRP0a99VNqGhA8/f5RydVbPR6pKT9lhjMoLF0HqSadZlcCQlEHjsHmNn0eArHDGQ5 lOioTuGsTLUVoPYL9Ta66wzR3XP9GqPaqYMewvYijbBvrwOkaEqPSNkAGOoSILEeq7c+ 9HOz38K9Iwe6E7Aajgfdcryjf0zdOH45CpY/McYIMbUaqcEuLMlC6ucWJzdibR3ykcAE 9rCXP2FFaFGCeUUZSVgmA8QJv1M4gRbc9dXqw7dIUPSEBEuGoPiD7QGI6xOE9exq1fEw nr2g== X-Gm-Message-State: AFeK/H1dMslZjjee07bX37nKCA+wmj7zpYjUrvUf5IFo5zL0cZZxmJnk H59D2clv9rcdWhw2Q4Y= X-Received: by 10.28.60.65 with SMTP id j62mr27859189wma.73.1491563413667; Fri, 07 Apr 2017 04:10:13 -0700 (PDT) Original-Received: from workstation ([159.147.104.91]) by smtp.gmail.com with ESMTPSA id 32sm5627934wrr.2.2017.04.07.04.10.12 (version=TLS1 cipher=AES128-SHA bits=128/128); Fri, 07 Apr 2017 04:10:13 -0700 (PDT) X-Google-Original-From: hector Content-Disposition: inline In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c0c::235 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:112718 Archived-At: On Fri, Apr 07, 2017 at 11:37:15AM +0200, zimoun wrote: > Dear community, > > Ping. Pong :-) On 24 October 2016 at 19:06, zimoun wrote: > Dear, > > I do not know if this behavior is expected or I perhaps miss a point. > Ah, I am running Emacs 24.5.1 packaged by Debian (testing) and I have > not tried Emacs 25 yet. > > I would like to filter IBuffer in Gnus-style grouping. Then, I am not > able to split the buffer names between Upper-case and lower-case. > > If I understand well, in this case the regexp is case insensitive. If it uses string-match it depends on the value of case-fold-search. Try adding: (make-local-variable 'case-fold-search) (setq case-fold-search nil) > Using this minimal snippet (saved in `ibuf.el`): > > (setq ibuffer-saved-filter-groups > (quote (("default" > ("lower" (name . "[:lower:]")) > ("Upper" (name . "[:upper]")))))) > (add-hook 'ibuffer-mode-hook > (lambda () > (ibuffer-switch-to-saved-filter-groups "default"))) > The regexps are not anchored. "[[:lower:]]" would match any buffer with a lower case letter. If I'm not wrong, the right syntax would be: "[[:lower:]]" and "[[:upper:]]". > Then, running `emacs -Q -l ibuf.el`, for example, the buffer > *Messages* is in the lower-group. > > (note that if you switch the "filters", then *scratch* appears in Upper-group) > > To be concrete, I do not know to locally turn `case-fold-search` to > `nil`, or something in this flavor I guess. > > > Thank you in advance to any suggestion. I hope that helps.