unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Stephen J. Turnbull" <stephen@xemacs.org>
To: "Andreas Röhler" <andreas.roehler@online.de>
Cc: emacs-devel@gnu.org
Subject: Re: mark-word
Date: Thu, 15 Nov 2007 02:24:30 +0900	[thread overview]
Message-ID: <873av84u5t.fsf@uwakimon.sk.tsukuba.ac.jp> (raw)
In-Reply-To: <200711141227.44672.andreas.roehler@online.de>

Andreas Röhler writes:

 > What about this?
 > 
 > (defun mark-word-at-point ()
 >   " "
 >   (interactive)
 >   (beginning-of-thing 'word)
 >   (push-mark nil nil t)
 >   (end-of-thing 'word))

The name is not descriptive of how it differs from `mark-word';
`mark-word' already has "at point" semantics.  Point and mark should
end up in the opposite order, for compatibility with `mark-paragraph'.
Also, I suspect that you'd be surprised by the result in this context:

    foo bar baz?  -!-quux.

With point at -!- I would expect "quux" to be highlighted, but your
function gives "baz".

  reply	other threads:[~2007-11-14 17:24 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-14  7:35 mark-word Andreas Röhler
2007-11-14  8:11 ` mark-word Stephen J. Turnbull
2007-11-14  8:26   ` mark-word David Kastrup
2007-11-14 11:27     ` mark-word Andreas Röhler
2007-11-14 17:24       ` Stephen J. Turnbull [this message]
2007-11-14 19:07         ` mark-word Lennart Borgman (gmail)
2007-11-15  0:33           ` mark-word Miles Bader
2007-11-15  8:40             ` mark-word Lennart Borgman (gmail)
2007-11-15  9:18               ` mark-word Miles Bader
2007-11-15 13:52                 ` mark-word Lennart Borgman (gmail)
2007-11-15 10:04               ` mark-word Andreas Röhler
2007-11-14 17:02     ` mark-word Stephen J. Turnbull
2007-11-14  8:37   ` mark-word Leo
2007-11-14 16:35     ` mark-word Stephen J. Turnbull
2007-11-15  3:07     ` mark-word 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=873av84u5t.fsf@uwakimon.sk.tsukuba.ac.jp \
    --to=stephen@xemacs.org \
    --cc=andreas.roehler@online.de \
    --cc=emacs-devel@gnu.org \
    /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).