Skip to content

Special characters in heads/docs #126

Description

@orki

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
    )

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions