aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorChong Yidong2012-06-23 17:28:10 +0800
committerChong Yidong2012-06-23 17:28:10 +0800
commit0e9e6c6abce029feda6cced84cb1fa2dc1d6d1c1 (patch)
tree4146147e562826ec342451596acbfafc2850b78d /lisp
parentd054f3fb9af7399ee67be94e1602b45d21fc555f (diff)
downloademacs-0e9e6c6abce029feda6cced84cb1fa2dc1d6d1c1.tar.gz
emacs-0e9e6c6abce029feda6cced84cb1fa2dc1d6d1c1.zip
Mark python-mode abbrevs as system abbrevs.
* progmodes/python.el (python-skeleton-define): Mark abbrevs as system abbrevs. * ansi-color.el (ansi-color-apply-on-region): Doc fix.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog7
-rw-r--r--lisp/ansi-color.el11
-rw-r--r--lisp/progmodes/python.el3
3 files changed, 15 insertions, 6 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 4f017f0f503..cbc7b493b21 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,10 @@
12012-06-23 Chong Yidong <cyd@gnu.org>
2
3 * progmodes/python.el (python-skeleton-define): Mark abbrevs as
4 system abbrevs.
5
6 * ansi-color.el (ansi-color-apply-on-region): Doc fix.
7
12012-06-23 Stefan Monnier <monnier@iro.umontreal.ca> 82012-06-23 Stefan Monnier <monnier@iro.umontreal.ca>
2 9
3 * emacs-lisp/cl-macs.el (cl--make-usage-args): Handle improper lists 10 * emacs-lisp/cl-macs.el (cl--make-usage-args): Handle improper lists
diff --git a/lisp/ansi-color.el b/lisp/ansi-color.el
index d677f706704..18b2c846274 100644
--- a/lisp/ansi-color.el
+++ b/lisp/ansi-color.el
@@ -358,11 +358,12 @@ it will override BEGIN, the start of the region. Set
358 "Translates SGR control sequences into overlays or extents. 358 "Translates SGR control sequences into overlays or extents.
359Delete all other control sequences without processing them. 359Delete all other control sequences without processing them.
360 360
361SGR control sequences are applied by setting foreground and 361SGR control sequences are applied by calling the function
362background colors to the text between BEGIN and END using 362specified by `ansi-color-apply-face-function'. The default
363overlays. The colors used are given in `ansi-color-faces-vector' 363function sets foreground and background colors to the text
364and `ansi-color-names-vector'. See `ansi-color-apply-sequence' 364between BEGIN and END, using overlays. The colors used are given
365for details. 365in `ansi-color-faces-vector' and `ansi-color-names-vector'. See
366`ansi-color-apply-sequence' for details.
366 367
367Every call to this function will set and use the buffer-local variable 368Every call to this function will set and use the buffer-local variable
368`ansi-color-context-region' to save position and current face. This 369`ansi-color-context-region' to save position and current face. This
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el
index a43dc1eb1d3..ddedbdb7ddc 100644
--- a/lisp/progmodes/python.el
+++ b/lisp/progmodes/python.el
@@ -2152,7 +2152,8 @@ be added to `python-mode-abbrev-table'."
2152 (let* ((name (symbol-name name)) 2152 (let* ((name (symbol-name name))
2153 (function-name (intern (concat "python-skeleton-" name)))) 2153 (function-name (intern (concat "python-skeleton-" name))))
2154 `(progn 2154 `(progn
2155 (define-abbrev python-mode-abbrev-table ,name "" ',function-name) 2155 (define-abbrev python-mode-abbrev-table ,name "" ',function-name
2156 :system t)
2156 (setq python-skeleton-available 2157 (setq python-skeleton-available
2157 (cons ',function-name python-skeleton-available)) 2158 (cons ',function-name python-skeleton-available))
2158 (define-skeleton ,function-name 2159 (define-skeleton ,function-name