From: Florian Lindner <mailinglists@xgm.de>
To: help-gnu-emacs@gnu.org
Subject: What is a word?
Date: Tue, 12 May 2015 21:55:44 +0200 [thread overview]
Message-ID: <mitls0$9od$1@ger.gmane.org> (raw)
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
next reply other threads:[~2015-05-12 19:55 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-12 19:55 Florian Lindner [this message]
2015-05-12 20:01 ` What is a word? Eli Zaretskii
2015-05-12 20:26 ` Jorge A. Alfaro-Murillo
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='mitls0$9od$1@ger.gmane.org' \
--to=mailinglists@xgm.de \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).