unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Jan Moringen <jmoringe@techfak.uni-bielefeld.de>
To: 7505@debbugs.gnu.org
Subject: bug#7505: 24.0.50; Missing regexp escape in log-edit-changelog-entries
Date: Sun, 28 Nov 2010 15:09:24 +0100	[thread overview]
Message-ID: <1290953364.2483.15.camel@steed.robot-madness> (raw)

[-- Attachment #1: Type: text/plain, Size: 256 bytes --]

Hi,

the function `log-edit-changelog-entries' does a regexp search in
ChangeLog files using a regular expression that is constructed based on
a filename. The filename is not regexp quoted. The attach trivial patch
should fix the issue.

Kind regards,
Jan

[-- Attachment #2: Type: text/x-patch, Size: 455 bytes --]

=== modified file 'lisp/vc/log-edit.el'
--- lisp/vc/log-edit.el	2010-11-09 20:07:10 +0000
+++ lisp/vc/log-edit.el	2010-11-27 01:45:51 +0000
@@ -775,7 +775,7 @@
 		(setq pattern (file-name-nondirectory file)))
 
             (setq pattern (concat "\\(^\\|[^[:alnum:]]\\)"
-                                  pattern
+                                  (regexp-quote pattern)
                                   "\\($\\|[^[:alnum:]]\\)"))
 
 	    (let (texts


             reply	other threads:[~2010-11-28 14:09 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-28 14:09 Jan Moringen [this message]
2010-12-08  3:41 ` bug#7505: 24.0.50; Missing regexp escape in log-edit-changelog-entries Glenn Morris

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=1290953364.2483.15.camel@steed.robot-madness \
    --to=jmoringe@techfak.uni-bielefeld.de \
    --cc=7505@debbugs.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).