annotate etc/emacs.py @ 98557:73eaaf9adee6

(rx-constituents): Change `anything' to call 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.
author Chong Yidong <cyd@stupidchicken.com>
date Tue, 07 Oct 2008 18:08:26 +0000
parents 69c173eabff4
children bdb3fe0ba9fa ef719132ddfa
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
84823
9b1c9000269c Adam Hupp <adam at hupp.org>
Glenn Morris <rgm@gnu.org>
parents: 78271
diff changeset
1 """Wrapper for version-specific implementations of python.el helper
9b1c9000269c Adam Hupp <adam at hupp.org>
Glenn Morris <rgm@gnu.org>
parents: 78271
diff changeset
2 functions """
77605
b4b0e39a8d1f Restore file pending consideration of python.el legal status.
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
3
84823
9b1c9000269c Adam Hupp <adam at hupp.org>
Glenn Morris <rgm@gnu.org>
parents: 78271
diff changeset
4 import sys
77605
b4b0e39a8d1f Restore file pending consideration of python.el legal status.
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
5
84823
9b1c9000269c Adam Hupp <adam at hupp.org>
Glenn Morris <rgm@gnu.org>
parents: 78271
diff changeset
6 if sys.version_info[0] == 3:
9b1c9000269c Adam Hupp <adam at hupp.org>
Glenn Morris <rgm@gnu.org>
parents: 78271
diff changeset
7 from emacs3 import *
9b1c9000269c Adam Hupp <adam at hupp.org>
Glenn Morris <rgm@gnu.org>
parents: 78271
diff changeset
8 else:
9b1c9000269c Adam Hupp <adam at hupp.org>
Glenn Morris <rgm@gnu.org>
parents: 78271
diff changeset
9 from emacs2 import *
84885
69c173eabff4 Add arch tagline
Miles Bader <miles@gnu.org>
parents: 84823
diff changeset
10
69c173eabff4 Add arch tagline
Miles Bader <miles@gnu.org>
parents: 84823
diff changeset
11 # arch-tag: 894b5227-638f-45fd-8567-0417d5c35900