emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] Changes to emacs/src/bytecode.c,v


From: Miles Bader
Subject: [Emacs-diffs] Changes to emacs/src/bytecode.c,v
Date: Fri, 01 Feb 2008 16:01:49 +0000

CVSROOT:        /cvsroot/emacs
Module name:    emacs
Changes by:     Miles Bader <miles>     08/02/01 16:01:31

Index: src/bytecode.c
===================================================================
RCS file: /cvsroot/emacs/emacs/src/bytecode.c,v
retrieving revision 1.96
retrieving revision 1.97
diff -u -b -r1.96 -r1.97
--- src/bytecode.c      8 Jan 2008 20:44:12 -0000       1.96
+++ src/bytecode.c      1 Feb 2008 16:00:40 -0000       1.97
@@ -37,7 +37,7 @@
 #include <config.h>
 #include "lisp.h"
 #include "buffer.h"
-#include "charset.h"
+#include "character.h"
 #include "syntax.h"
 #include "window.h"
 
@@ -1394,10 +1394,17 @@
          break;
 
        case Bchar_syntax:
+         {
+           int c;
+
          BEFORE_POTENTIAL_GC ();
-         CHECK_NUMBER (TOP);
+           CHECK_CHARACTER (TOP);
          AFTER_POTENTIAL_GC ();
-         XSETFASTINT (TOP, syntax_code_spec[(int) SYNTAX (XINT (TOP))]);
+           c = XFASTINT (TOP);
+           if (NILP (current_buffer->enable_multibyte_characters))
+             MAKE_CHAR_MULTIBYTE (c);
+           XSETFASTINT (TOP, syntax_code_spec[(int) SYNTAX (c)]);
+         }
          break;
 
        case Bbuffer_substring:




reply via email to

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