all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: raman <raman@google.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: HowTo: directory-files and friends and case-insensitive match
Date: Sun, 07 Feb 2016 11:53:06 -0800	[thread overview]
Message-ID: <p9160y0cn6l.fsf@google.com> (raw)
In-Reply-To: <m2k2mgqupu.fsf@newartisans.com> (John Wiegley's message of "Sun,  07 Feb 2016 12:46:37 -0500")

John Wiegley <jwiegley@gmail.com> writes:

As I said, I've implemented myself a solution and moved on. That said, I
do not entirely buy Eli's "this is a large problem that needs to be
solved first" argument -- if that were the case, variables like
completion-ignore-case and   read-file-name-completion-ignore-case would
not exist either -- but I digress ...>>>>>> raman  <raman@google.com> writes:
>
>> I'm specifically trying to match file extensions in a case insensitive
>> manner in this instance, so yes a somewhat more confined problem. Given the
>> complexity I'll just go ahead and construct the regexp to match lower and
>> upper case.
>
> To make any variation on .jpeg:
>
>     (directory-files DIR t "\\.[Jj][Pp][Ee]?[Gg]\\'")
>
> You could write a helper function to "case insensitize" regexps, if one
> doesn't already exist somewhere.

-- 



  reply	other threads:[~2016-02-07 19:53 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-06  3:40 HowTo: directory-files and friends and case-insensitive match raman
2016-02-06  6:21 ` Marcin Borkowski
2016-02-06  8:06 ` Eli Zaretskii
2016-02-06 16:07   ` raman
2016-02-07 17:46     ` John Wiegley
2016-02-07 19:53       ` raman [this message]
2016-02-07 19:57         ` Eli Zaretskii
2016-02-07 21:37           ` raman
2016-02-07 22:15           ` John Wiegley
2016-02-08 14:06       ` Regexp matching (was: HowTo: directory-files and friends and case-insensitive match) Stefan Monnier
2016-02-08 15:57         ` Regexp matching John Wiegley
2016-02-08 16:21         ` Paul Eggert
2016-02-11 19:01           ` John Wiegley

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=p9160y0cn6l.fsf@google.com \
    --to=raman@google.com \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@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.