emacs-circe / circe

Circe, a Client for IRC in Emacs
GNU General Public License v3.0
395 stars 51 forks source link

backward-kill-word should be limited by current line. #349

Closed sarg closed 5 years ago

sarg commented 5 years ago

When I type non-alphabetic symbol at the beginning of input line I can't delete it with backward-kill-word.

To reproduce: enter @ then C-w.

> @<C-w>

Get error: kill-region: Text is read-only: #<buffer irc.freenode.net:6667>

wasamasa commented 5 years ago

The only special thing Circe does here is providing lui-kill-to-beginning-of-line, bound to C-c C-u by default. It behaves correctly in this situation, so consider using that instead.

sarg commented 5 years ago

With (setq circe-prompt-string (concat "> " (propertize "!aa!" 'invisible t))) C-w behaves correctly. Consider making it a default.

wasamasa commented 5 years ago

That's just bonkers. Consider writing a custom kill command that respects the beginning of the line.