Piotr Gajewski may have said:
(defun pg-test1 () "Test: qwerty.cc --> .cc, 6, 9"
(interactive)
(let ((name "qwerty.cc"))
(if (or (string-match "\.cc$" name) ; <---- 1
(string-match "\.c$" name)) ; <---- 2
(pg-dump name))))
Shouldn't the regular expressions be "\\\.cc$" and "\\\.c$"?
The Lisp interpreter will convert "\.c$" to ".c$", which will
(correctly) match "qwerty.cc"...
Cheers,
-Ted