emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: c-forward-sws: Is the code right?


From: Noam Postavsky
Subject: Re: c-forward-sws: Is the code right?
Date: Tue, 27 Mar 2018 21:56:39 -0400

On 27 March 2018 at 21:35, zhang cc <address@hidden> wrote:
>
>> Is the bug reproducible?
>
> Yes. See
> https://github.com/joaotavora/yasnippet/issues/923#issuecomment-376569337

A simpler reproduction:

    emacs -Q -f c-mode -f toggle-debug-on-error --eval '(insert "\u963Fa")'
    DEL

Debugger entered--Lisp error: (wrong-type-argument integer-or-marker-p nil)
  c-forward-sws()
  c-unfind-coalesced-tokens(147 148)
  c-before-change(147 148)
  delete-char(-1 nil)
  delete-backward-char(1 nil)
  backward-delete-char-untabify(1)
  c-electric-backspace(nil)
  funcall-interactively(c-electric-backspace nil)
  call-interactively(c-electric-backspace nil nil)
  command-execute(c-electric-backspace)

>> If so, could you possibly patch that bit of
>> code to add (not (equal c-opt-cpp-prefix "\\<\\>")) before the
>> (looking-at ...) form, and see if that stops the error.
>
>
> No. the value of c-opt-cpp-prefix printed as "\s *#\s *”.

I believe you mean: "\\s *#\\s *"



reply via email to

[Prev in Thread] Current Thread [Next in Thread]