From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Florian Lindner Newsgroups: gmane.emacs.help Subject: What is a word? Date: Tue, 12 May 2015 21:55:44 +0200 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7Bit X-Trace: ger.gmane.org 1431460580 10895 80.91.229.3 (12 May 2015 19:56:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 12 May 2015 19:56:20 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue May 12 21:56:14 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YsGHl-0001H0-S8 for geh-help-gnu-emacs@m.gmane.org; Tue, 12 May 2015 21:56:14 +0200 Original-Received: from localhost ([::1]:44865 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YsGHl-0007uF-CE for geh-help-gnu-emacs@m.gmane.org; Tue, 12 May 2015 15:56:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55956) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YsGHa-0007uA-5Q for help-gnu-emacs@gnu.org; Tue, 12 May 2015 15:56:03 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YsGHW-0003F4-48 for help-gnu-emacs@gnu.org; Tue, 12 May 2015 15:56:02 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:53563) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YsGHV-0003Eq-TO for help-gnu-emacs@gnu.org; Tue, 12 May 2015 15:55:58 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1YsGHU-00018b-Dm for help-gnu-emacs@gnu.org; Tue, 12 May 2015 21:55:56 +0200 Original-Received: from hsi-kbw-046-005-022-029.hsi8.kabel-badenwuerttemberg.de ([46.5.22.29]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 12 May 2015 21:55:56 +0200 Original-Received: from mailinglists by hsi-kbw-046-005-022-029.hsi8.kabel-badenwuerttemberg.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 12 May 2015 21:55:56 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 35 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: hsi-kbw-046-005-022-029.hsi8.kabel-badenwuerttemberg.de User-Agent: KNode/4.14.8 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:104423 Archived-At: 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