this post was submitted on 27 Nov 2023
2 points (75.0% liked)

Emacs

313 readers
2 users here now

A community for the timeless and infinitely powerful editor. Want to see what Emacs is capable of?!

Get Emacs

Rules

  1. Posts should be emacs related
  2. Be kind please
  3. Yes, we already know: Google results for "emacs" and "vi" link to each other. We good.

Emacs Resources

Emacs Tutorials

Useful Emacs configuration files and distributions

Quick pain-saver tip

founded 1 year ago
MODERATORS
 

Which is a bit of a pain. Without restarting Emacs (how does one even do that 🤣) I have to upcase-char or insert-quoted "C" to get a capital 'c'.

I have no idea what combination of keys I've hit to effect this change, but it does not happen on start-up.

Viewing lossage is not much help because quite a lot of time may have passed and my need to type "C". (I am not Carl Carlson Chairman of the Classic Car Confabulation Committee. )

Does anyone have any ideas how even to debug this? I am flummoxed.

Many thanks!!


There is nothing funky about my keybindings…

(keymap-global-set "C-="     #'text-scale-increase) 
(keymap-global-set "C--"     #'text-scale-decrease)
(keymap-global-set "C-z"     #'undo-fu-only-undo) ;; suspend-frame
(keymap-global-set "C-S-z"   #'undo-fu-only-redo) 
(keymap-global-set "C-v"     #'yank) ;;  scroll-up
(keymap-global-set "C-x C-r" #'eval-print-last-sexp)
(keymap-global-set "C-s"     #'isearch-forward-regexp)
(keymap-global-set "C-r"     #'isearch-backward-regexp)
(keymap-global-set "C-M-r"   #'query-replace-regexp)
you are viewing a single comment's thread
view the rest of the comments
[–] konqueror321@alien.top 1 points 1 year ago (1 children)

The command C-h k should describe what function or command is bound to. Hold control and push "h", release both and push "k", then enter the key combination you want to evaluate, in your case "S-c".

I'm not an emacs expert but perhaps one will come along!

[–] DeinOnkelFred@alien.top 1 points 1 year ago

Nope. I know the Emacs help system­ it's one of Emacs' killer features, IMHO.

The "key" in C-h k is of course shift+c, but this never makes it through as such. Everytime this glitch in the matrix occurs, shift+c (s-c) gets echoe back to me in the echo area as "C-"

Ofc I restarted Emacs and everything is hunky-dory once more… until next time.

Also, I should have said that I am running a self-compiled 30.0.5, so I guess this may be a legit bug. It just seems so odd and random