unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* What is a word?
@ 2015-05-12 19:55 Florian Lindner
  2015-05-12 20:01 ` Eli Zaretskii
  0 siblings, 1 reply; 3+ messages in thread
From: Florian Lindner @ 2015-05-12 19:55 UTC (permalink / raw)
  To: help-gnu-emacs

Hello,

ofter I find it, that the emacs function acting on a word not behave like I 
expect.

I'm not sure if the definiton of a word is major-mode dependent?

Talking about kill-word, forward-word and alike.

Example, | represents cursor position, shell-script mode:

cd $BASE| -> backward-kill-word cd $|
;; what I expected

cd $| -> backward-kill-word -> |
;; not what I expected, rather expected only the $, with or without the 
whitespace between cd, same for "cd .."

Very much disturbing I find, is killing over linebreaks (python-mode):

    |])
        return True

above being remains from previous kills, | is still cursor. kill-word does:

    | True

In generell the word functions are too greedy.

I don't know if I want to try to change that... Is there a quick fix?

But want to know what's emacs model of a word and what's wrong with mine.

Best Regards,
Florian




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-05-12 20:26 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-12 19:55 What is a word? Florian Lindner
2015-05-12 20:01 ` Eli Zaretskii
2015-05-12 20:26   ` Jorge A. Alfaro-Murillo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).