From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: zimoun Newsgroups: gmane.emacs.help Subject: Re: `ibuffer-saved-filter-groups` case sensitive? Date: Sat, 8 Apr 2017 13:03:36 +0200 Message-ID: References: <20170407110624.GA6139@workstation> <878tnc2lqc.fsf@drachen> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: blaine.gmane.org 1491649465 1025 195.159.176.226 (8 Apr 2017 11:04:25 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 8 Apr 2017 11:04:25 +0000 (UTC) Cc: help-gnu-emacs@gnu.org, hector To: Michael Heerdegen Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Apr 08 13:04:14 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 1cwo9z-00069O-Cf for geh-help-gnu-emacs@m.gmane.org; Sat, 08 Apr 2017 13:04:03 +0200 Original-Received: from localhost ([::1]:54209 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cwoA3-0005fX-No for geh-help-gnu-emacs@m.gmane.org; Sat, 08 Apr 2017 07:04:07 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53723) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cwo9b-0005fE-7y for help-gnu-emacs@gnu.org; Sat, 08 Apr 2017 07:03:40 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cwo9a-000670-9n for help-gnu-emacs@gnu.org; Sat, 08 Apr 2017 07:03:39 -0400 Original-Received: from mail-wr0-x231.google.com ([2a00:1450:400c:c0c::231]:32940) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cwo9a-00066r-2R for help-gnu-emacs@gnu.org; Sat, 08 Apr 2017 07:03:38 -0400 Original-Received: by mail-wr0-x231.google.com with SMTP id g19so78817885wrb.0 for ; Sat, 08 Apr 2017 04:03:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=cHqT6GroCUO6Wd4f+JUjuiW/h86swct2Dhn7c7Rpgfk=; b=rrB+7Rh0akuVljZQRXugmjGntqisDWHnWu+XIQ6d7NP7VolzwhKamTWCDeyqB/BYXN xXbQuiNIH/ZPyqVu7VyfQLwD0kJla7A7znATgKKJqGteexEmRYp3Rt3W5nUCe4vFuaqK warQwMc3mdxxgxmlyRQN543pjwUw4LKQtWLDzAxUzSxLmMzuSIUyrzKOj6qI3zS7KQwg b/vZy4fVAiyPw98sFrVYjbV/9ZswfrBdNQE7p+oAM52cIfcyTPq9bcJD+Bm+m6bXth3N s5saqPs4YORSne2jTFvMOeOzeRRnYreDuup1mlYvJeoU1s5X5ORZNofrHwHbsYXIxvpu GJfQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=cHqT6GroCUO6Wd4f+JUjuiW/h86swct2Dhn7c7Rpgfk=; b=NPlkZxA0Zh2lUiH292W4pUg39DKjNRnCsa0SwM40mOIaUtDOotia06KQsuuZi5D7hc cQSC3JqqCdjacwJ9QU6bsnZc9A4qI7kwZpjWgZL7HkRC21ZHnCF6Ca4plIHJmT83HXKd aAiLQxjR4uFQ2IKNY3FYf0Ke1VcswO0r8VxbfnYaHL1ZN18ThJfpQmqd0YFIzn+p16kc Hli51U4B2Pq7XBFc/YwquS3dGgNS2pYpVxZ+sfgj064Ei0GcRVY+MOpZfrwoWy3t/zLx fVbmZnDGHsBAkn3D0PjfsLfxWNVeNm0tIFzvUBnVpPBQVYcK2oItI+uCofh4oQH2Hdrp Iyig== X-Gm-Message-State: AFeK/H25B+l88EV/7Maqn5UsStnyepKw2s3HFqO4Equ/ovl8obwPDl+C7cXBCws2YNtEnlcp1tKQaGju3GB52g== X-Received: by 10.223.163.28 with SMTP id c28mr36827531wrb.186.1491649416934; Sat, 08 Apr 2017 04:03:36 -0700 (PDT) Original-Received: by 10.28.137.209 with HTTP; Sat, 8 Apr 2017 04:03:36 -0700 (PDT) In-Reply-To: <878tnc2lqc.fsf@drachen> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c0c::231 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:112724 Archived-At: Hi! Thank you ! Both of you did my week-end :-) Ah, I have missed this point about `[[:lower::]'. Thank you for the explanations. All the best, -simon On 7 April 2017 at 19:03, Michael Heerdegen wrote: > zimoun writes: > >> Thank you for the tip. >> However, I have tried different ways to use it and no one works. >> Any advice ? > > This works for me: > > #+begin_src emacs-lisp > (setq ibuffer-saved-filter-groups > (quote (("default" > ("lower" (name . "\\`[^[:upper:]]*\\'")) > ("Upper" (name . "[[:upper:]]")))))) > (add-hook 'ibuffer-mode-hook > (lambda () > (setq-local case-fold-search nil) > (ibuffer-switch-to-saved-filter-groups "default"))) > #+end_src > > "[[:lower:]]" would match names containing at least one lowercase > letter. That's not what you want. The regexp used above for "lower" > matches any string not containing any uppercase letter. > > > Michael.