Re: Manipulating keymaps
Stefan Monnier <[email protected]> Thu, 18 Jun 2026 15:31:08 -0400
| Newsgroups | gmane.emacs.help |
|---|---|
| Message-ID | <[email protected]> |
> $ emacs -Q lorem-ipsum > > ; This time the file is opened using mode "Shell-script[bash]" and > ; key "M-q" is bound to "prog-fill-reindent-defun". Now change the > ; file's contents to > > #! /usr/bin/bash > # > # lorem ipsum, dolor sit amet consectetur adipisci velit, ONE, TWO, THREE, sed eius modi > # tempora incidunt, ut labore et dolore magnam aliquam. > > ; Again place the cursor on the "#" character preceding "lorem", en- > ; ter "C-<blank> <down> <down> C-u M-q" to again re-format these two > ; lines, BUT NOTHING HAPPENS, the two lines don't change. However, > ; if you again place the cursor on the "#" character preceding "lo- > ; rem" and enter "C-<blank> <down> <down> C-u M-x fill-region" the > ; two lines WILL BE re-formatted. And that's what I want to happen. Looks like a plain bug to me. I recommend you `M-x report-emacs-bug` with the above description (tho I don't have a "blank" key, so I used the SPC key instead; also be careful with the `<down>` steps because depending on line-wrapping it gets you to different places and IME it changes the behavior significantly). === Stefan