* Inconsistent behavior of `current-word'
@ 2003-06-22 17:20 Emilio Lopes
2003-06-23 19:02 ` Richard Stallman
0 siblings, 1 reply; 3+ messages in thread
From: Emilio Lopes @ 2003-06-22 17:20 UTC (permalink / raw)
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
Emilio
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Inconsistent behavior of `current-word'
[not found] <mailman.8426.1056302913.21513.bug-gnu-emacs@gnu.org>
@ 2003-06-23 15:58 ` Kevin Rodgers
0 siblings, 0 replies; 3+ messages in thread
From: Kevin Rodgers @ 2003-06-23 15:58 UTC (permalink / raw)
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>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Inconsistent behavior of `current-word'
2003-06-22 17:20 Inconsistent behavior of `current-word' Emilio Lopes
@ 2003-06-23 19:02 ` Richard Stallman
0 siblings, 0 replies; 3+ messages in thread
From: Richard Stallman @ 2003-06-23 19:02 UTC (permalink / raw)
Cc: bug-gnu-emacs
current-word actually finds a symbol rather than a word.
Since a number of programs use it already,
I decided to document this rather than change it.
Thanks for pointing this out.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2003-06-23 19:02 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-06-22 17:20 Inconsistent behavior of `current-word' Emilio Lopes
2003-06-23 19:02 ` Richard Stallman
[not found] <mailman.8426.1056302913.21513.bug-gnu-emacs@gnu.org>
2003-06-23 15:58 ` Kevin Rodgers
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.