|
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:0.9.4.1) Gecko/20020406 Netscape6/6.2.2 |
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. -- <a href="mailto:<kevin.rodgers@ihs.com>">Kevin Rodgers</a>
[Prev in Thread] | Current Thread | [Next in Thread] |