From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kevin Rodgers Newsgroups: gmane.emacs.bugs Subject: Re: Inconsistent behavior of `current-word' Date: Mon, 23 Jun 2003 09:58:02 -0600 Sender: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Message-ID: <3EF7238A.5010903@yahoo.com> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1056383883 16396 80.91.224.249 (23 Jun 2003 15:58:03 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 23 Jun 2003 15:58:03 +0000 (UTC) Original-X-From: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jun 23 17:58:00 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19UThf-0004FV-00 for ; Mon, 23 Jun 2003 17:57:59 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19UThP-0007DN-WA for gnu-bug-gnu-emacs@m.gmane.org; Mon, 23 Jun 2003 11:57:44 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20) id 19UThJ-0006v3-AK for bug-gnu-emacs@prep.ai.mit.edu; Mon, 23 Jun 2003 11:57:37 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20) id 19UTh6-0006a8-Gb for bug-gnu-emacs@prep.ai.mit.edu; Mon, 23 Jun 2003 11:57:25 -0400 Original-Received: from chx400.switch.ch ([130.59.10.2]) by monty-python.gnu.org with esmtp (Exim 4.20) id 19UTgs-0005yg-6I for bug-gnu-emacs@prep.ai.mit.edu; Mon, 23 Jun 2003 11:57:10 -0400 Original-Received: from mail.fu-berlin.de ([160.45.11.165]) by chx400.switch.ch with esmtp (Exim 3.20 #1) id 19UTgp-0001Dc-00 for gnu-emacs-bug@moderators.isc.org; Mon, 23 Jun 2003 17:57:07 +0200 Original-Received: by mail.fu-berlin.de (Smail3.2.0.98) from Curry.ZEDAT.FU-Berlin.DE (160.45.10.36) with esmtp id ; Mon, 23 Jun 2003 17:57:06 +0200 (MEST) Original-Received: by Curry.ZEDAT.FU-Berlin.DE (Smail3.2.0.98) from news.fu-berlin.de with bsmtp id ; Mon, 23 Jun 2003 17:57:06 +0200 (MEST) Original-To: gnu-emacs-bug@moderators.isc.org Original-Path: 170.207.51.80!not-for-mail Original-Newsgroups: gnu.emacs.bug Original-Lines: 28 X-Orig-NNTP-Posting-Host: 170.207.51.80 X-Orig-X-Trace: fu-berlin.de 1056383826 27160835 170.207.51.80 (16 [82742]) User-Agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:0.9.4.1) Gecko/20020406 Netscape6/6.2.2 X-Accept-Language: en-us X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Bug reports for GNU Emacs, the Swiss army knife of text editors List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.bugs:5376 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:5376 Emilio Lopes wrote: > Start Emacs and type the following in the "*scratch*" > buffer: > > Diesel-Motor* > > [The asterisk represents point position] > > `current-word)' returns "Diesel-Motor" although all other > word-related commands (`backward-word', `capitalize-word' > etc.) I've tested return "Motor" only. > > A look at the current syntax table shows that `-' is not a > word component: > > - .. / _ which means: symbol And a look at lisp/simple.el shows that current-word includes both word and symbol constituent characters. I agree that this is a bug, and think that a separate current-symbol function should be defined (or an optional SYMBOL arg to current-word) for callers that want the current behavior of current-word. -- Kevin Rodgers