From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Anselm Helbig Newsgroups: gmane.emacs.help Subject: Re: forward/backward word with case sensitivity Date: Tue, 28 Jul 2009 10:27:00 +0200 Organization: Freie Universitaet Berlin Message-ID: <87tz0x8b6z.wl%anselm.helbig+news2009@googlemail.com> References: <92744345-13a4-4e5d-8f25-f6c70cd00f3a@i8g2000pro.googlegroups.com> NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1248770797 21367 80.91.229.12 (28 Jul 2009 08:46:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 28 Jul 2009 08:46:37 +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 Jul 28 10:46:30 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MViHY-0004cG-JV for geh-help-gnu-emacs@m.gmane.org; Tue, 28 Jul 2009 10:43:36 +0200 Original-Received: from localhost ([127.0.0.1]:36628 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MViHX-0004f7-HY for geh-help-gnu-emacs@m.gmane.org; Tue, 28 Jul 2009 04:43:35 -0400 Original-Path: news.stanford.edu!headwall.stanford.edu!fu-berlin.de!uni-berlin.de!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 28 Original-X-Trace: news.uni-berlin.de Ru4QDVPUBIa1I2ySL20ktwgNTAT6OB/WsTw7+qq9JAleeLOP6GcJE6RsM2 Cancel-Lock: sha1:t7gHvWkbxJ0kOrhIyGRMMjgAR2Y= In-Reply-To: <92744345-13a4-4e5d-8f25-f6c70cd00f3a@i8g2000pro.googlegroups.com> Mail-Followup-To: anselm.helbig+news2009@googlemail.com Original-Xref: news.stanford.edu gnu.emacs.help:171263 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:66450 Archived-At: Hi! > I'm wondering how to use the case sensitive buffer editing in buffer. > For example, in the kill-word function (M-d), how I can set it to kill > up to the final lower case, not space, comma, etc. as follows: > testFunction() > ^ (Here, M-d) > Function() I'm using c-subword-mode with ruby, to this end I've got this line in my .emacs: (add-hook 'ruby-mode-hook (lambda () (c-subword-mode 1))) You can try it out yourself with M-x subword-mode. This doesn't only affect `kill-word' but changes emacs notion about what a word is in the current buffer, so `forward-word' and `backward-word' are affected as well. HTH, Anselm -- Anselm Helbig mailto:anselm.helbig+news2009@googlemail.com