unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#7505: 24.0.50; Missing regexp escape in log-edit-changelog-entries
@ 2010-11-28 14:09 Jan Moringen
  2010-12-08  3:41 ` Glenn Morris
  0 siblings, 1 reply; 2+ messages in thread
From: Jan Moringen @ 2010-11-28 14:09 UTC (permalink / raw)
  To: 7505

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

* bug#7505: 24.0.50; Missing regexp escape in log-edit-changelog-entries
  2010-11-28 14:09 bug#7505: 24.0.50; Missing regexp escape in log-edit-changelog-entries Jan Moringen
@ 2010-12-08  3:41 ` Glenn Morris
  0 siblings, 0 replies; 2+ messages in thread
From: Glenn Morris @ 2010-12-08  3:41 UTC (permalink / raw)
  To: 7505-done

Version: 23.3

Thanks; applied.






^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-12-08  3:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-28 14:09 bug#7505: 24.0.50; Missing regexp escape in log-edit-changelog-entries Jan Moringen
2010-12-08  3:41 ` Glenn Morris

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).