all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: Florian v. Savigny <f.savigny@mailbox.org>
Cc: 44653@debbugs.gnu.org, Dale Sedivec <dale@codefu.org>
Subject: bug#44653: 28.0.50; sql-mode gets confused about string literals
Date: Mon, 16 Nov 2020 23:42:56 +0100	[thread overview]
Message-ID: <874klovs7j.fsf@gnus.org> (raw)
In-Reply-To: <04127C97-3437-4A95-9640-92347FB62FE4@codefu.org> (Dale Sedivec's message of "Sun, 15 Nov 2020 00:37:08 -0600")

Dale Sedivec <dale@codefu.org> writes:

> 2. Evaluate the following in *scratch*:
>
>       (let ((buf (generate-new-buffer "sql")))
>         (switch-to-buffer buf)
>         (sql-mode)
>         (insert "select '''")
>         (goto-char 1)
>         (delete-region 1 8)
>         (goto-char (point-max)))
>
>    Point should now be at the end of an `sql-mode' buffer containing
>    "'''" (three apostrophes).
>
> 4. Press backspace to erase the third apostrophe.
>
> 5. M-: (nth 3 (syntax-ppss)) RET
>
> Expected result: fourth element of syntax-ppss, the delimiter character
> for the current string, is nil, since we are no longer in a string
>
> Observed result: fourth element is ?' (39), indicating that point is
> still inside a string
>
> My first guess is that this is related to commit 289d6b2265e and #40231.

Yes, sounds likely.  I've added Florian to the Cc's -- perhaps he has
some comments here.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





  reply	other threads:[~2020-11-16 22:42 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-15  6:37 bug#44653: 28.0.50; sql-mode gets confused about string literals Dale Sedivec
2020-11-16 22:42 ` Lars Ingebrigtsen [this message]
2021-01-27  3:57 ` Lars Ingebrigtsen
2021-01-27 18:09   ` Dale Sedivec
2021-01-28  4:35     ` Lars Ingebrigtsen
2021-01-28  4:48       ` Lars Ingebrigtsen
2021-01-28  9:41     ` martin rudalics

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=874klovs7j.fsf@gnus.org \
    --to=larsi@gnus.org \
    --cc=44653@debbugs.gnu.org \
    --cc=dale@codefu.org \
    --cc=f.savigny@mailbox.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.