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: zimoun
Subject: Re: `ibuffer-saved-filter-groups` case sensitive?
Date: Sat, 8 Apr 2017 13:03:36 +0200

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 <address@hidden> wrote:
> 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]