summaryrefslogtreecommitdiff
path: root/lisp/calc/calccomp.el
diff options
context:
space:
mode:
authorLars Ingebrigtsen <larsi@gnus.org>2020-09-15 18:03:50 +0200
committerLars Ingebrigtsen <larsi@gnus.org>2020-09-15 18:03:50 +0200
commit5e6393fc61a2a2423038fb80288aef30626bdba7 (patch)
tree650368a01e2faf781b12d2e0103e22b622850bea /lisp/calc/calccomp.el
parentf4b4166e0075943641cd75c5935959cdc157c585 (diff)
downloademacs-5e6393fc61a2a2423038fb80288aef30626bdba7.tar.gz
emacs-5e6393fc61a2a2423038fb80288aef30626bdba7.tar.bz2
emacs-5e6393fc61a2a2423038fb80288aef30626bdba7.zip
Use a square root character in calc displays
* lisp/calc/calccomp.el (math-compose-sqrt): Use a square root character, if possible (bug#22919). Suggested by Zephyr Pellerin <zephyr.pellerin@gmail.com>.
Diffstat (limited to 'lisp/calc/calccomp.el')
-rw-r--r--lisp/calc/calccomp.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/calc/calccomp.el b/lisp/calc/calccomp.el
index 0367c537b5a..1f3ae842638 100644
--- a/lisp/calc/calccomp.el
+++ b/lisp/calc/calccomp.el
@@ -1018,7 +1018,8 @@
(make-string (+ w 2) ?\_))
(list 'horiz
(if (= h 1)
- "V"
+ (if (char-displayable-p ?√)
+ "√" "V")
(append (list 'vleft (1- a))
(make-list (1- h) " |")
'("\\|")))