]> code.delx.au - gnu-emacs/blobdiff - lisp/comint.el
Backslash cleanup in Elisp source files
[gnu-emacs] / lisp / comint.el
index ead2757e6e8e92a1a5da082185fb2eedd927203e..e70fe88baf7dcd93a7f63fea66f8571d9a9303ff 100644 (file)
@@ -1581,7 +1581,7 @@ Go to the history element by the absolute history position HIST-POS."
 (defun comint-within-quotes (beg end)
   "Return t if the number of quotes between BEG and END is odd.
 Quotes are single and double."
-  (let ((countsq (comint-how-many-region "\\(^\\|[^\\\\]\\)\'" beg end))
+  (let ((countsq (comint-how-many-region "\\(^\\|[^\\\\]\\)'" beg end))
        (countdq (comint-how-many-region "\\(^\\|[^\\\\]\\)\"" beg end)))
     (or (= (mod countsq 2) 1) (= (mod countdq 2) 1))))