[Top][All Lists]

[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: Fri, 7 Apr 2017 14:47:39 +0200

Thank you for the quick pong reply. ;-)

>> 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)

Thank you for the tip.
However, I have tried different  ways to use it and no one works.
Any advice ?

>> 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:]]".

ok, but it does not change anything.

> I hope that helps.

Thank you for your suggestions and I have learned
`make-local-variable' that I did not know.

All the best

reply via email to

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