From: zimoun <zimon.toutoune@gmail.com>
To: hector <hectorlahoz@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: `ibuffer-saved-filter-groups` case sensitive?
Date: Fri, 7 Apr 2017 14:47:39 +0200 [thread overview]
Message-ID: <CAJ3okZ3Ei5trMC=dajZKJpT2oOYoPN2iCCay7_bcyvzMtzj5hw@mail.gmail.com> (raw)
In-Reply-To: <20170407110624.GA6139@workstation>
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:]]".
Hum?
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
-simon
next prev parent reply other threads:[~2017-04-07 12:47 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 [this message]
2017-04-07 17:03 ` Michael Heerdegen
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAJ3okZ3Ei5trMC=dajZKJpT2oOYoPN2iCCay7_bcyvzMtzj5hw@mail.gmail.com' \
--to=zimon.toutoune@gmail.com \
--cc=hectorlahoz@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.