diff options
| author | Noam Postavsky | 2017-10-05 19:16:46 -0400 |
|---|---|---|
| committer | Noam Postavsky | 2017-10-07 19:19:05 -0400 |
| commit | c194fb61c638490e3510864fe2750814af8c3719 (patch) | |
| tree | 5f69e75001faa4ddcf176395692331eb3c0041b2 /lisp/progmodes/python.el | |
| parent | 6dfc778d54ceb02b135d45300a201ec79edf1af2 (diff) | |
| download | emacs-c194fb61c638490e3510864fe2750814af8c3719.tar.gz emacs-c194fb61c638490e3510864fe2750814af8c3719.zip | |
Make python prettify symbols into a defvar (Bug#28713)
* lisp/progmodes/python.el (python-prettify-symbols-alist): New
variable.
(python--prettify-symbols-alist): Make into obsolete alias for
`python-prettify-symbols-alist'.
Diffstat (limited to 'lisp/progmodes/python.el')
| -rw-r--r-- | lisp/progmodes/python.el | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index 9aa5134ca0d..f79d9a47d31 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el | |||
| @@ -640,10 +640,14 @@ The type returned can be `comment', `string' or `paren'." | |||
| 640 | ((python-rx string-delimiter) | 640 | ((python-rx string-delimiter) |
| 641 | (0 (ignore (python-syntax-stringify)))))) | 641 | (0 (ignore (python-syntax-stringify)))))) |
| 642 | 642 | ||
| 643 | (defconst python--prettify-symbols-alist | 643 | (defvar python-prettify-symbols-alist |
| 644 | '(("lambda" . ?λ) | 644 | '(("lambda" . ?λ) |
| 645 | ("and" . ?∧) | 645 | ("and" . ?∧) |
| 646 | ("or" . ?∨))) | 646 | ("or" . ?∨)) |
| 647 | "Value for `prettify-symbols-alist' in `python-mode'.") | ||
| 648 | |||
| 649 | (define-obsolete-variable-alias 'python--prettify-symbols-alist | ||
| 650 | 'python-prettify-symbols-alist "26.1") | ||
| 647 | 651 | ||
| 648 | (defsubst python-syntax-count-quotes (quote-char &optional point limit) | 652 | (defsubst python-syntax-count-quotes (quote-char &optional point limit) |
| 649 | "Count number of quotes around point (max is 3). | 653 | "Count number of quotes around point (max is 3). |