From: Noam Postavsky Date: Thu, 5 Oct 2017 23:16:46 +0000 (-0400) Subject: Make python prettify symbols into a defvar (Bug#28713) X-Git-Tag: emacs-26.0.90~45^2 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=c194fb61c6;p=emacs.git 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'. --- 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'." ((python-rx string-delimiter) (0 (ignore (python-syntax-stringify)))))) -(defconst python--prettify-symbols-alist +(defvar python-prettify-symbols-alist '(("lambda" . ?λ) ("and" . ?∧) - ("or" . ?∨))) + ("or" . ?∨)) + "Value for `prettify-symbols-alist' in `python-mode'.") + +(define-obsolete-variable-alias 'python--prettify-symbols-alist + 'python-prettify-symbols-alist "26.1") (defsubst python-syntax-count-quotes (quote-char &optional point limit) "Count number of quotes around point (max is 3).