From: Kevin Rodgers <ihs_4664@yahoo.com>
Subject: Re: Inconsistent behavior of `current-word'
Date: Mon, 23 Jun 2003 09:58:02 -0600 [thread overview]
Message-ID: <3EF7238A.5010903@yahoo.com> (raw)
In-Reply-To: mailman.8426.1056302913.21513.bug-gnu-emacs@gnu.org
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>
next parent reply other threads:[~2003-06-23 15:58 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.8426.1056302913.21513.bug-gnu-emacs@gnu.org>
2003-06-23 15:58 ` Kevin Rodgers [this message]
2003-06-22 17:20 Inconsistent behavior of `current-word' Emilio Lopes
2003-06-23 19:02 ` Richard Stallman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3EF7238A.5010903@yahoo.com \
--to=ihs_4664@yahoo.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).