Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing preview of entered unicode codepoints (C-q codepoint SPC) #7311

Closed
Qqwy opened this issue Oct 7, 2016 · 6 comments
Closed

Missing preview of entered unicode codepoints (C-q codepoint SPC) #7311

Qqwy opened this issue Oct 7, 2016 · 6 comments

Comments

@Qqwy
Copy link

Qqwy commented Oct 7, 2016

Today I learned from this tutorial, starts at time with exact explanation of this feature that you can type C-q, followed by the octal(or, if configured, decimal or hexadecimal) unicode codepoint, followed by non-digit key, to insert the appropriate unicode character.

However, for some reason, these typed codepoints do not show up in the bar at the far bottom (Is it which-key that is in charge of that bar? I am still very new to spacemacs), making it very easy to mistype.

I am not entirely sure if this missing preview (As can be seen in the video, that staple version of emacs does show the typed codepoints) is an issue of Spacemacs or of one of the many packages it works with; please tell me where to take the issue if this is not the correct location for it.

Thank you very much for this amazing editor! 😄

@Qqwy
Copy link
Author

Qqwy commented Oct 7, 2016

For completion's sake:

System Info

  • OS: gnu/linux
  • Emacs: 24.5.1
  • Spacemacs: 0.105.22
  • Spacemacs branch: master (rev. 9f9faa4)
  • Graphic display: t
  • Distribution: spacemacs
  • Editing style: vim
  • Completion: helm
  • Layers:
(auto-completion better-defaults emacs-lisp git markdown org
                 (shell :variables shell-default-height 30 shell-default-position 'bottom)
                 spell-checking syntax-checking version-control elixir erlang haskell idris ruby rust yaml
                 (c-c++
                  (c-set-style "Linux")
                  (c-basic-offset 4)))

@TheBB
Copy link
Contributor

TheBB commented Oct 7, 2016

This is reproducible in emacs -Q, therefore it's an Emacs issue, not a Spacemacs issue. Please report upstream.

Is it which-key that is in charge of that bar?

No, that's the echo area.

@TheBB
Copy link
Contributor

TheBB commented Oct 7, 2016

Looks like quoted-insert users read-quoted-char in the background, which doesn't echo key presses unless it's called with a prompt.

Dirty workaround follows.

(defun read-quoted-char-always-echo (orig-fn &optional prompt)
  (funcall orig-fn (or prompt "Character code: ")))
(defun quoted-insert-always-echo (orig-fn arg)
  (prog2 
      (advice-add 'read-quoted-char :around 'read-quoted-char-always-echo)
      (funcall orig-fn arg)
    (advice-remove 'read-quoted-char 'read-quoted-char-always-echo)))
(advice-add 'quoted-insert :around 'quoted-insert-always-echo)

@Miciah
Copy link
Contributor

Miciah commented Jul 8, 2018

Looks like @Qqwy reported this upstream as https://debbugs.gnu.org/cgi/bugreport.cgi?bug=24635, which is now fixed on Emacs 25.2 and Emacs 26.1. Can this issue be either closed or labeled as "Emacs 24.1"?

@sdwolfz
Copy link
Contributor

sdwolfz commented Jul 9, 2018

Tried it out with 25.3 and 26.1 and it works properly. This can be closed.

@sdwolfz sdwolfz closed this as completed Jul 9, 2018
@Qqwy
Copy link
Author

Qqwy commented Jul 11, 2018

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants