diff options
| author | Chong Yidong | 2012-06-23 17:28:10 +0800 |
|---|---|---|
| committer | Chong Yidong | 2012-06-23 17:28:10 +0800 |
| commit | 0e9e6c6abce029feda6cced84cb1fa2dc1d6d1c1 (patch) | |
| tree | 4146147e562826ec342451596acbfafc2850b78d /lisp | |
| parent | d054f3fb9af7399ee67be94e1602b45d21fc555f (diff) | |
| download | emacs-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/ChangeLog | 7 | ||||
| -rw-r--r-- | lisp/ansi-color.el | 11 | ||||
| -rw-r--r-- | lisp/progmodes/python.el | 3 |
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 @@ | |||
| 1 | 2012-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 | |||
| 1 | 2012-06-23 Stefan Monnier <monnier@iro.umontreal.ca> | 8 | 2012-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. |
| 359 | Delete all other control sequences without processing them. | 359 | Delete all other control sequences without processing them. |
| 360 | 360 | ||
| 361 | SGR control sequences are applied by setting foreground and | 361 | SGR control sequences are applied by calling the function |
| 362 | background colors to the text between BEGIN and END using | 362 | specified by `ansi-color-apply-face-function'. The default |
| 363 | overlays. The colors used are given in `ansi-color-faces-vector' | 363 | function sets foreground and background colors to the text |
| 364 | and `ansi-color-names-vector'. See `ansi-color-apply-sequence' | 364 | between BEGIN and END, using overlays. The colors used are given |
| 365 | for details. | 365 | in `ansi-color-faces-vector' and `ansi-color-names-vector'. See |
| 366 | `ansi-color-apply-sequence' for details. | ||
| 366 | 367 | ||
| 367 | Every call to this function will set and use the buffer-local variable | 368 | Every 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 |