aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes/python.el
diff options
context:
space:
mode:
authorNoam Postavsky2017-10-05 19:16:46 -0400
committerNoam Postavsky2017-10-07 19:19:05 -0400
commitc194fb61c638490e3510864fe2750814af8c3719 (patch)
tree5f69e75001faa4ddcf176395692331eb3c0041b2 /lisp/progmodes/python.el
parent6dfc778d54ceb02b135d45300a201ec79edf1af2 (diff)
downloademacs-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.el8
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).