]> code.delx.au - gnu-emacs/commitdiff
Mark python-mode abbrevs as system abbrevs.
authorChong Yidong <cyd@gnu.org>
Sat, 23 Jun 2012 09:28:10 +0000 (17:28 +0800)
committerChong Yidong <cyd@gnu.org>
Sat, 23 Jun 2012 09:28:10 +0000 (17:28 +0800)
* progmodes/python.el (python-skeleton-define): Mark abbrevs as
system abbrevs.

* ansi-color.el (ansi-color-apply-on-region): Doc fix.

lisp/ChangeLog
lisp/ansi-color.el
lisp/progmodes/python.el

index 4f017f0f5038aeb0a027dbd3f7481b6af9ad0649..cbc7b493b21f22600f84484f3d8534aa94b73841 100644 (file)
@@ -1,3 +1,10 @@
+2012-06-23  Chong Yidong  <cyd@gnu.org>
+
+       * progmodes/python.el (python-skeleton-define): Mark abbrevs as
+       system abbrevs.
+
+       * ansi-color.el (ansi-color-apply-on-region): Doc fix.
+
 2012-06-23  Stefan Monnier  <monnier@iro.umontreal.ca>
 
        * emacs-lisp/cl-macs.el (cl--make-usage-args): Handle improper lists
index d677f7067041394d530d0a759a0b512336348e31..18b2c846274ea88032492abb2ff4a8c1659e9a22 100644 (file)
@@ -358,11 +358,12 @@ it will override BEGIN, the start of the region.  Set
   "Translates SGR control sequences into overlays or extents.
 Delete all other control sequences without processing them.
 
-SGR control sequences are applied by setting foreground and
-background colors to the text between BEGIN and END using
-overlays.  The colors used are given in `ansi-color-faces-vector'
-and `ansi-color-names-vector'.  See `ansi-color-apply-sequence'
-for details.
+SGR control sequences are applied by calling the function
+specified by `ansi-color-apply-face-function'.  The default
+function sets foreground and background colors to the text
+between BEGIN and END, using overlays.  The colors used are given
+in `ansi-color-faces-vector' and `ansi-color-names-vector'.  See
+`ansi-color-apply-sequence' for details.
 
 Every call to this function will set and use the buffer-local variable
 `ansi-color-context-region' to save position and current face.  This
index a43dc1eb1d3d68350d93b17cec7773cfa8119acb..ddedbdb7ddc37b978830149a01c75f6d2b928e92 100644 (file)
@@ -2152,7 +2152,8 @@ be added to `python-mode-abbrev-table'."
   (let* ((name (symbol-name name))
          (function-name (intern (concat "python-skeleton-" name))))
     `(progn
-       (define-abbrev python-mode-abbrev-table ,name "" ',function-name)
+       (define-abbrev python-mode-abbrev-table ,name "" ',function-name
+        :system t)
        (setq python-skeleton-available
              (cons ',function-name python-skeleton-available))
        (define-skeleton ,function-name