all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Stephen J. Turnbull" <stephen@xemacs.org>
To: "Andreas Röhler" <andreas.roehler@online.de>
Cc: Stefan Monnier <monnier@IRO.UMontreal.CA>, emacs-devel@gnu.org
Subject: Re: window-configurations and marks
Date: Sun, 27 Apr 2014 00:22:20 +0900	[thread overview]
Message-ID: <87k3acnmj7.fsf@uwakimon.sk.tsukuba.ac.jp> (raw)
In-Reply-To: <535BA2EA.5050801@online.de>

Hi, Andreas!

Andreas Röhler writes:

 > Best way is to clean up the core-functions.
 > 
 > For example have a look at "mark". Its docstring says:
 > 
 > "Return this buffer's mark value as integer, or nil if never set.
 > 
 > In Transient Mark mode, this function signals an error if
 > the mark is not active.  However, if `mark-even-if-inactive' is non-nil,
 > or the argument FORCE is non-nil, it disregards whether the mark
 > is active, and returns an integer or nil in the usual way."
 > 
 > IMO only the first line/feature is reasonable.
 > The remaining stuff belongs to commands making use of it, not here
 > - nil or point is all needed.

One can argue naming (eg, the current function should be named
`active-mark' and `mark' should just return the mark as an integer or
nil).  However there's good reason for factoring out the behavior
relying on Transient Mark mode, because that is behavior chosen by the
user that should be implemented consistently across mark-using commands.

I personally prefer the spellings `(mark)' and `(mark t)' to
`(active-mark)' and `(mark)', because users who enable t-m-m expect it
to affect all uses of the mark.  Therefore the "easier to write" name
should be used for the function affected by t-m-m.

I agree that `mark-even-if-inactive' is an ugly hack give the FORCE
argument.





      reply	other threads:[~2014-04-26 15:22 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-24 13:15 window-configurations and marks Stefan Monnier
2014-04-26 12:13 ` Andreas Röhler
2014-04-26 15:22   ` Stephen J. Turnbull [this message]

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87k3acnmj7.fsf@uwakimon.sk.tsukuba.ac.jp \
    --to=stephen@xemacs.org \
    --cc=andreas.roehler@online.de \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@IRO.UMontreal.CA \
    /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 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.