From: Andreas Schwab <schwab@linux-m68k.org>
To: Tino Calancha <tino.calancha@gmail.com>
Cc: Thien-Thi Nguyen <ttn@gnu.org>, 24317@debbugs.gnu.org
Subject: bug#24317: 25.1.50; image-dired-rotate-original: regexp doesn't match .jpeg suffix
Date: Sun, 28 Aug 2016 08:22:32 +0200 [thread overview]
Message-ID: <87bn0dpg47.fsf@linux-m68k.org> (raw)
In-Reply-To: <alpine.DEB.2.20.1608272114590.20460@calancha-pc> (Tino Calancha's message of "Sat, 27 Aug 2016 21:18:37 +0900 (JST)")
On Aug 27 2016, Tino Calancha <tino.calancha@gmail.com> wrote:
> diff --git a/lisp/image-dired.el b/lisp/image-dired.el
> index 67b023d..61b0751 100644
> --- a/lisp/image-dired.el
> +++ b/lisp/image-dired.el
> @@ -1205,6 +1205,10 @@ image-dired-dired-file-marked-p
> (beginning-of-line)
> (not (looking-at "^ .*$"))))
>
> +(defsubst image-dired-jpeg-file-p (file)
> + "Return non-nil if FILE has a JPEG extension."
> + (string-match-p "\\.[Jj][Pp][Ee]?[Gg]$" file))
FWIW, the regexp should end in "\\'".
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
prev parent reply other threads:[~2016-08-28 6:22 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-27 8:04 bug#24317: 25.1.50; image-dired-rotate-original: regexp doesn't match .jpeg suffix Tino Calancha
2016-08-27 8:21 ` Eli Zaretskii
2016-08-27 8:53 ` Tino Calancha
2016-08-27 8:57 ` Eli Zaretskii
2016-08-27 9:21 ` Tino Calancha
2016-08-27 9:27 ` Tino Calancha
2016-08-27 9:42 ` Thien-Thi Nguyen
2016-08-27 11:28 ` Eli Zaretskii
2016-08-27 12:18 ` Tino Calancha
2016-08-27 12:55 ` Eli Zaretskii
2016-08-28 12:26 ` Tino Calancha
2016-08-28 14:31 ` Eli Zaretskii
2016-08-28 14:49 ` Tino Calancha
2016-09-04 2:19 ` Tino Calancha
2016-08-28 6:22 ` Andreas Schwab [this message]
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87bn0dpg47.fsf@linux-m68k.org \
--to=schwab@linux-m68k.org \
--cc=24317@debbugs.gnu.org \
--cc=tino.calancha@gmail.com \
--cc=ttn@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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).