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'.
This commit is contained in:
parent
6dfc778d54
commit
c194fb61c6
1 changed files with 6 additions and 2 deletions
|
@ -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).
|
||||
|
|
Loading…
Add table
Reference in a new issue