[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Inconsistent behavior of `current-word'

From: Kevin Rodgers
Subject: Re: Inconsistent behavior of `current-word'
Date: Mon, 23 Jun 2003 09:58:02 -0600
User-agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv: Gecko/20020406 Netscape6/6.2.2

Emilio Lopes wrote:

Start Emacs and type the following in the "*scratch*"


[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.

<a href="mailto:&lt;kevin.rodgers&#64;ihs.com&gt;";>Kevin Rodgers</a>

reply via email to

[Prev in Thread] Current Thread [Next in Thread]