[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: mark-word
From: |
Stephen J. Turnbull |
Subject: |
Re: mark-word |
Date: |
Thu, 15 Nov 2007 02:24:30 +0900 |
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".
- mark-word, Andreas Röhler, 2007/11/14
- mark-word, Stephen J. Turnbull, 2007/11/14
- Re: mark-word, Leo, 2007/11/14
- Re: mark-word, David Kastrup, 2007/11/14
- Re: mark-word, Andreas Röhler, 2007/11/14
- Re: mark-word,
Stephen J. Turnbull <=
- Re: mark-word, Lennart Borgman (gmail), 2007/11/14
- Re: mark-word, Miles Bader, 2007/11/14
- Re: mark-word, Lennart Borgman (gmail), 2007/11/15
- Re: mark-word, Miles Bader, 2007/11/15
- Re: mark-word, Lennart Borgman (gmail), 2007/11/15
- Re: mark-word, Andreas Röhler, 2007/11/15
- Re: mark-word, Stephen J. Turnbull, 2007/11/14