help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: `ibuffer-saved-filter-groups` case sensitive?


From: Michael Heerdegen
Subject: Re: `ibuffer-saved-filter-groups` case sensitive?
Date: Fri, 07 Apr 2017 19:03:55 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux)

zimoun <address@hidden> 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 via email to

[Prev in Thread] Current Thread [Next in Thread]