Subject: bug#7505: closed (Re: bug#7505: 24.0.50; Missing regexp escape in log-edit-changelog-entries)

From: [email-masked] (GNU bug Tracking System)
Date: Wed, 08 Dec 2010 03:36:02 +0000

Your bug report

#7505: 24.0.50; Missing regexp escape in log-edit-changelog-entries

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
7505: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7505
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#7505: 24.0.50; Missing regexp escape in log-edit-changelog-entries
From: Glenn Morris <[email-masked]>
To: [email-masked]
Date: Tue, 07 Dec 2010 22:41:14 -0500
List-Id: <debbugs-submit.debbugs.gnu.org>

Version: 23.3

Thanks; applied.

Subject: 24.0.50; Missing regexp escape in log-edit-changelog-entries
From: Jan Moringen <[email-masked]>
To: [email-masked]
Date: Sun, 28 Nov 2010 15:09:24 +0100
List-Id: <debbugs-submit.debbugs.gnu.org>

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