]> code.delx.au - gnu-emacs/blobdiff - lisp/progmodes/sh-script.el
Fix minor quoting problems in doc strings
[gnu-emacs] / lisp / progmodes / sh-script.el
index 135f945dbb9f19bda60e2b3005cb0ce2f0d37154..537b180eed6a30df9ff5cd16f5b84ddb57d7f0ed 100644 (file)
@@ -921,7 +921,7 @@ See `sh-feature'.")
      (:foreground "magenta"))
     (t
      (:weight bold)))
-  "Face to show quoted execs like `blabla`."
+  "Face to show quoted execs like \\=`blabla\\=`."
   :group 'sh-indentation)
 (define-obsolete-face-alias 'sh-heredoc-face 'sh-heredoc "22.1")
 (defvar sh-heredoc-face 'sh-heredoc)
@@ -4344,7 +4344,7 @@ The document is bounded by `sh-here-document-word'."
   (or arg (sh--maybe-here-document)))
 
 (defun sh--maybe-here-document ()
-  (or (not (looking-back "[^<]<<"))
+  (or (not (looking-back "[^<]<<" (line-beginning-position)))
       (save-excursion
        (backward-char 2)
         (or (sh-quoted-p)