emacs-devel
[Top][All Lists]
Advanced

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

Re: C++ mode and c-beginning-of-current-token


From: martin rudalics
Subject: Re: C++ mode and c-beginning-of-current-token
Date: Thu, 17 May 2007 12:18:15 +0200
User-agent: Mozilla Thunderbird 1.0 (Windows/20041206)

Please try the same thing with Emacs 22 started with
"--unibyte" argument.  The same error is signalled.

So, the bug has been in the original code of skip_chars
(where it handles a unibyte case) in Emacs 22.  Could
someone please fix it in Emacs 22?  Then, I'll do the same
fix on emacs-unicode-2.

FWIW, I couldn't find problems with the attached patch.
*** syntax.c    Wed Jan 17 09:31:10 2007
--- syntax.c    Thu May 17 11:15:42 2007
***************
*** 1672,1678 ****
                  if (! fastmap[(int) SYNTAX (p[-1])])
                    break;
                  p--, pos--;
!                 UPDATE_SYNTAX_TABLE_BACKWARD (pos - 1);
                }
          }
        }
--- 1672,1678 ----
                  if (! fastmap[(int) SYNTAX (p[-1])])
                    break;
                  p--, pos--;
!                 UPDATE_SYNTAX_TABLE_BACKWARD (pos);
                }
          }
        }

reply via email to

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