unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Inconsistency over point motion between mark-* commands
@ 2008-03-27 14:12 Chong Yidong
  2008-03-29  3:59 ` Stefan Monnier
  0 siblings, 1 reply; 2+ messages in thread
From: Chong Yidong @ 2008-03-27 14:12 UTC (permalink / raw)
  To: emacs-devel

C-M-SPC (mark-sexp) sets the mark at the end of the current sexp,
without moving point.  C-M-h (mark-defun) sets the mark at the end of
the current defun, and moves point to the beginning of the defun.

Similarly, mark-page, mark-paragraph, and mark-whole-buffer all move
point; mark-word does not move point.

mark-end-of-sentence does not move point, which is appropriate
considering its name.

Does anyone know if there is a rationale for this inconsistency?




^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Inconsistency over point motion between mark-* commands
  2008-03-27 14:12 Inconsistency over point motion between mark-* commands Chong Yidong
@ 2008-03-29  3:59 ` Stefan Monnier
  0 siblings, 0 replies; 2+ messages in thread
From: Stefan Monnier @ 2008-03-29  3:59 UTC (permalink / raw)
  To: Chong Yidong; +Cc: emacs-devel

> C-M-SPC (mark-sexp) sets the mark at the end of the current sexp,
> without moving point.  C-M-h (mark-defun) sets the mark at the end of
> the current defun, and moves point to the beginning of the defun.

> Similarly, mark-page, mark-paragraph, and mark-whole-buffer all move
> point; mark-word does not move point.

> mark-end-of-sentence does not move point, which is appropriate
> considering its name.

> Does anyone know if there is a rationale for this inconsistency?

It looks like the difference is between "mark surround FOO" and "mark
next FOO".


        Stefan




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-03-29  3:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-27 14:12 Inconsistency over point motion between mark-* commands Chong Yidong
2008-03-29  3:59 ` Stefan Monnier

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).