1. 15 Apr, 2015 1 commit
    • Paul Eggert's avatar
      Make [:graph:] act like [:print:] sans space · a122a027
      Paul Eggert authored
      In POSIX [[:print:]] is equivalent to [ [:graph:]], so change
      [:graph:] so that it matches everything that [:print:] does,
      except for space.
      * doc/lispref/searching.texi (Char Classes):
      * etc/NEWS:
      * lisp/emacs-lisp/rx.el (rx):
      Document [:graph:] to be [:print:] sans ' '.
      * src/character.c, src/character.h (graphicp): New function.
      * src/regex.c (ISGRAPH) [emacs]: Use it.
      (BIT_GRAPH): New macro.
      (BIT_PRINT): Increase to 0x200, to make room for BIT_GRAPH.
      (re_wctype_to_bit) [! WIDE_CHAR_SUPPORT]:
      Return BIT_GRAPH for RECC_GRAPH.
      (re_match_2_internal) [emacs]: Use ISGRAPH if BIT_GRAPH,
      and ISPRINT if BIT_PRINT.
      a122a027
  2. 14 Apr, 2015 1 commit
    • Eli Zaretskii's avatar
      Make [:print:] support non-ASCII characters correctly · 6c284c6b
      Eli Zaretskii authored
      * src/regex.c (ISPRINT): Call 'printablep' for multibyte characters.
      (BIT_PRINT): New bit mask.
      (re_wctype_to_bit): Return BIT_PRINT for RECC_PRINT.
      * src/character.c (printablep): New function.
      * src/character.h (printablep): Add prototype.
      
      * lisp/emacs-lisp/rx.el (rx): Doc fix: document the new behavior
      of 'print', 'alnum', and 'alphabetic'.
      
      * doc/lispref/searching.texi (Char Classes): Document the new
      behavior of [:print:].
      
      * etc/NEWS: Mention the new behavior of [:print:].
      6c284c6b
  3. 01 Jan, 2015 2 commits
  4. 10 Feb, 2014 1 commit
  5. 05 Jan, 2014 1 commit
  6. 01 Jan, 2014 1 commit
  7. 24 Dec, 2013 1 commit
  8. 01 Jan, 2013 1 commit
  9. 10 Aug, 2012 1 commit
  10. 02 Aug, 2012 1 commit
  11. 11 Jan, 2012 1 commit
  12. 05 Jan, 2012 1 commit
  13. 14 Nov, 2011 1 commit
  14. 18 Jun, 2011 1 commit
  15. 25 Jan, 2011 1 commit
  16. 05 Jan, 2011 1 commit
  17. 02 Jan, 2011 1 commit
  18. 30 Dec, 2010 1 commit
  19. 26 Dec, 2010 1 commit
    • Stefan Monnier's avatar
      * lisp/emacs-lisp/rx.el: Make it a superset of sregex. · 723ee192
      Stefan Monnier authored
      (rx-constituents): Add `any => "."', mark `repeat' as taking any number
      of args, add `regex' alias.
      (rx-info): Add arg to distinguish head and standalone forms.
      (rx-check, rx-form): Pass the corresponding arg.
      (rx-**): Simplify.
      (rx-repeat): Make it work for any number of args.
      (rx-syntax): Make it accept syntax chars as is.
      * lisp/obsolete/sregex.el: Move from emacs-lisp/.
      * lisp/emacs-lisp/re-builder.el: Remove sregex support.
      * lisp/emacs-lisp/edebug.el (sregexq, rx): Remove redundant defs.
      723ee192
  20. 05 Sep, 2010 1 commit
  21. 29 Jun, 2010 1 commit
  22. 13 Jan, 2010 1 commit
  23. 05 Jan, 2009 1 commit
  24. 28 Dec, 2008 1 commit
  25. 09 Dec, 2008 1 commit
  26. 07 Oct, 2008 1 commit
    • Chong Yidong's avatar
      (rx-constituents): Change `anything' to call · 5dbe5c8f
      Chong Yidong authored
      rx-anything. Change `not-wordchar' assignment to "\\W" from
      "[^[:word:]]".
      (rx-group-if): New function.
      (rx-parent): New variable.
      (rx-and, rx-or): Put shy groups only when necessary.
      (rx-bracket): Remove.
      (rx-anything): New function.
      (rx-any-delete-from-range, rx-any-condense-range)
      (rx-check-any-string): New functions.
      (rx-check-any): Return result as a list. Don't convert chars to
      strings. Don't prepend "\\" to "^". Don't search for close
      bracket. Check char category string. Call rx-form instead of
      rx-to-string.
      (rx-any): Rebuid to complete the function.
      (rx-check-not): Fix char category regexp pattern string. Call
      rx-form instead of rx-to-string.
      (rx-not): Call rx-form instead of rx-to-string. Convert "[^]" to
      "[^^]". Call regexp-quote for one char string when not called from
      rx-not. Add "\\w", and toggle to upcase. Add the case of
      "\\[SCBW]" to toggle.
      (rx-=, rx->=, rx -**, rx-repeat, rx-submatch): Call rx-form
      instead of rx-to-string.
      (rx-kleene): Call rx-form instead of rx-to-string. Call
      rx-group-if to adjust putting of shy groups.
      (rx-atomic-p): Make check more precisely.
      (rx-eval, rx-greedy): Call rx-form instead of rx-to-string.
      (rx-regexp): Call rx-group-if.
      (rx-form): New function.
      (rx-to-string): Call rx-form, rx-group-if. Refine definition of
      NO-GROUP.
      5dbe5c8f
  27. 03 Oct, 2008 1 commit
  28. 04 Jun, 2008 1 commit
  29. 06 May, 2008 1 commit
  30. 07 Jan, 2008 1 commit
  31. 05 Sep, 2007 1 commit
  32. 08 Aug, 2007 1 commit
  33. 25 Jul, 2007 1 commit
  34. 30 Jun, 2007 1 commit
  35. 29 May, 2007 2 commits
  36. 21 Jan, 2007 1 commit
  37. 03 Mar, 2006 1 commit
  38. 06 Feb, 2006 1 commit