The special character % in the last head below and the character ^ in the docstring below are not handled correctly:
(defhydra hydra-operate-on-number ()
"Arithmetic operations: + - * /
Remainder: \\
Exponent: ^
Arithmetic shift:< >
Base conversion: b o x X #
Choices: "
("+" apply-operation-to-number-at-point)
("-" apply-operation-to-number-at-point)
("*" apply-operation-to-number-at-point)
("/" apply-operation-to-number-at-point)
("\\" apply-operation-to-number-at-point)
("^" apply-operation-to-number-at-point)
("<" apply-operation-to-number-at-point)
(">" apply-operation-to-number-at-point)
("b" apply-operation-to-number-at-point :exit t)
("o" apply-operation-to-number-at-point :exit t)
("x" apply-operation-to-number-at-point :exit t)
("X" apply-operation-to-number-at-point :exit t)
("#" apply-operation-to-number-at-point :exit t)
;; ("%" apply-operation-to-number-at-point :exit t) ; need to file bug report
)
The special character
%in the last head below and the character^in the docstring below are not handled correctly: