unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Michael Heerdegen <michael_heerdegen@web.de>
To: zimoun <zimon.toutoune@gmail.com>
Cc: help-gnu-emacs@gnu.org, hector <hectorlahoz@gmail.com>
Subject: Re: `ibuffer-saved-filter-groups` case sensitive?
Date: Fri, 07 Apr 2017 19:03:55 +0200	[thread overview]
Message-ID: <878tnc2lqc.fsf@drachen> (raw)
In-Reply-To: <CAJ3okZ3Ei5trMC=dajZKJpT2oOYoPN2iCCay7_bcyvzMtzj5hw@mail.gmail.com> (zimoun's message of "Fri, 7 Apr 2017 14:47:39 +0200")

zimoun <zimon.toutoune@gmail.com> 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.



  reply	other threads:[~2017-04-07 17:03 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-24 17:06 `ibuffer-saved-filter-groups` case sensitive? zimoun
2017-04-07  9:37 ` zimoun
2017-04-07 11:06   ` hector
2017-04-07 12:47     ` zimoun
2017-04-07 17:03       ` Michael Heerdegen [this message]
2017-04-08 11:03         ` zimoun

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=878tnc2lqc.fsf@drachen \
    --to=michael_heerdegen@web.de \
    --cc=hectorlahoz@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=zimon.toutoune@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.
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).