1. 24 Sep, 2010 1 commit
    • Eli Zaretskii's avatar
      Fix int/EMACS_INT use in casefiddle.c and syntax.c. · 4f3a2f8d
      Eli Zaretskii authored
       syntax.c (scan_words, update_syntax_table)
       (prev_char_comend_first, back_comment, skip_chars)
       (skip_syntaxes, Fforward_comment, Fbackward_prefix_chars): Use
       EMACS_INT for buffer and string positions.
       syntax.h (scan_words, update_syntax_table): Adjust prototypes.
       casefiddle.c (operate_on_word): Use EMACS_INT for buffer
       positions.
      4f3a2f8d
  2. 12 Aug, 2010 1 commit
    • Stefan Monnier's avatar
      Introduce a new comment style "c" flag. · c5683ceb
      Stefan Monnier authored
      * src/syntax.c (SYNTAX_FLAGS_COMMENT_STYLEB)
      (SYNTAX_FLAGS_COMMENT_STYLEC): New macros.
      (SYNTAX_FLAGS_COMMENT_STYLE): Use them, add an argument.
      (syntax_prefix_flag_p): New function.
      (Fstring_to_syntax): Understand new "c" flag.
      (Finternal_describe_syntax_value): Recognize new flag; use the
      SYNTAX_FLAGS_* macros.
      (scan_sexps_forward, Fparse_partial_sexp): Change representation of
      comment style to accomodate the new styles.
      (back_comment, forw_comment, Fforward_comment, scan_lists)
      (scan_sexps_forward): Update code to obey the new comment style flag.
      * src/syntax.h: Move SYNTAX_FLAGS_FOO() macros to syntax.c.
      * src/casefiddle.c (casify_region): Use the new syntax_prefix_flag_p.
      * lisp/progmodes/octave-mod.el (octave-mode-syntax-table): Use the new "c"
      comment style.
      * lisp/progmodes/scheme.el (scheme-mode-syntax-table):
      * lisp/emacs-lisp/lisp-mode.el (lisp-mode-syntax-table): Remove spurious
      "b" flag in "14b" syntax.
      
      Fixes: debbugs:6834
      c5683ceb
  3. 02 Jul, 2010 1 commit
    • Jan D's avatar
      Remove P_ and __P macros. · 383e0970
      Jan D authored
      * lwlib/lwlib-Xaw.h: Remove P_ and __P macros.
      * lwlib/lwlib-Xlw.h:
      * lwlib/lwlib-Xm.h:
      * lwlib/lwlib-int.h:
      * lwlib/lwlib-utils.h:
      * lwlib/lwlib.h: Likewise.
      
      * src/buffer.h: Remove P_ and __P macros.
      * src/category.h:
      * src/ccl.h:
      * src/character.h:
      * src/charset.h:
      * src/cm.h:
      * src/coding.h:
      * src/composite.h:
      * src/dispextern.h:
      * src/disptab.h:
      * src/font.h:
      * src/fontset.h:
      * src/frame.h:
      * src/gtkutil.h:
      * src/indent.h:
      * src/intervals.h:
      * src/keyboard.h:
      * src/keymap.h:
      * src/lisp.h:
      * src/macros.h:
      * src/md5.h:
      * src/menu.h:
      * src/msdos.h:
      * src/nsterm.h:
      * src/puresize.h:
      * src/region-cache.h:
      * src/syntax.h:
      * src/syssignal.h:
      * src/systime.h:
      * src/termhooks.h:
      * src/w32term.h:
      * src/widget.h:
      * src/window.h:
      * src/xgselect.h:
      * src/xsettings.h:
      * src/xterm.h: Likewise.
      383e0970
  4. 10 Mar, 2010 1 commit
    • Stefan Monnier's avatar
      Cleanup setup of gl_state in various parts of the code. · d48cd3f4
      Stefan Monnier authored
      * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
      (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
      * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren, skip_chars):
      * regex.c (regex_compile): Use it.
      (re_compile_pattern): Don't set gl_state.current_syntax_table since
      it's now set in regex_compile when/if we need it.
      d48cd3f4
  5. 13 Jan, 2010 1 commit
  6. 08 Jan, 2009 1 commit
  7. 15 May, 2008 1 commit
  8. 07 Feb, 2008 1 commit
  9. 08 Jan, 2008 1 commit
  10. 25 Jul, 2007 1 commit
  11. 14 Jan, 2007 1 commit
  12. 06 Feb, 2006 1 commit
  13. 07 Aug, 2005 1 commit
  14. 04 Jul, 2005 1 commit
  15. 13 Jun, 2004 1 commit
  16. 02 May, 2004 1 commit
  17. 08 Apr, 2004 1 commit
  18. 08 Sep, 2003 1 commit
  19. 01 Sep, 2003 1 commit
  20. 04 Feb, 2003 1 commit
  21. 16 Jul, 2002 1 commit
  22. 15 Jul, 2002 1 commit
  23. 09 May, 2002 1 commit
  24. 05 Mar, 2002 1 commit
  25. 01 Mar, 2002 1 commit
  26. 12 Oct, 2001 1 commit
  27. 15 Dec, 1999 1 commit
  28. 11 Sep, 1999 1 commit
  29. 29 Aug, 1999 1 commit
  30. 16 Nov, 1998 1 commit
  31. 11 Jun, 1998 1 commit
  32. 12 Apr, 1998 1 commit
    • Karl Heuer's avatar
      (SETUP_SYNTAX_TABLE_FOR_OBJECT): FROM counts chars. · f79b4b7e
      Karl Heuer authored
      (SYNTAX_TABLE_BYTE_TO_CHAR): Handle the offset properly
      both before and after conversion.
      
      (UPDATE_SYNTAX_TABLE_FORWARD): Arg renamed to charpos.
      (UPDATE_SYNTAX_TABLE_BACKWARD, UPDATE_SYNTAX_TABLE): Likewise.
      f79b4b7e
  33. 17 Mar, 1998 1 commit
  34. 02 Mar, 1998 1 commit
  35. 22 Feb, 1998 1 commit
  36. 21 Jan, 1998 1 commit
  37. 16 Jan, 1998 1 commit
    • Richard M. Stallman's avatar
      (SYNTAX_TABLE_BYTE_TO_CHAR): New macro. · c292db29
      Richard M. Stallman authored
      (struct gl_state_s): New field `object'.
      (SETUP_SYNTAX_TABLE_FOR_OBJECT): Set it.
      Handle non-current buffer properly.  Args renamed to all caps.
      (SETUP_SYNTAX_TABLE): Set `object'.  Args renamed to all caps.
      (UPDATE_SYNTAX_TABLE): Use gl_state.object.
      (UPDATE_SYNTAX_TABLE_FORWARD, UPDATE_SYNTAX_TABLE_BACKWARD): Likewise.
      
      (SETUP_SYNTAX_TABLE_FOR_OBJECT): Add gl_state.offset
      when using the arg FROM.  Use BYTE_TO_CHAR.
      c292db29
  38. 01 Jan, 1998 1 commit
  39. 21 Dec, 1997 1 commit
  40. 25 Nov, 1997 1 commit