all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Proper use of `deactivate-mark'?
@ 2014-02-13 17:19 Thorsten Jolitz
  2014-02-13 17:28 ` Stefan Monnier
  0 siblings, 1 reply; 7+ messages in thread
From: Thorsten Jolitz @ 2014-02-13 17:19 UTC (permalink / raw)
  To: help-gnu-emacs


Hi List, 

in a function I switch from buffer A to buffer B, mark the
thing-at-point, do something with it, conditional on

  ,--------------------
  | (and
  |  (use-region-p) ...
  `--------------------


, then call `(deactivate-mark)' at the end of the function and switch
back to buffer A again.

But the next time I switch to buffer B, the mark that was region-end
before seems to be still active - the region between that mark and the
actual point position is highlighted also I did not set any new mark
again. 

Isn't that the appropriate use of `deactivate-mark'?
How can I make sure that no mark is active anymore when I'm done in
buffer B and switch back to buffer A?

-- 
cheers,
Thorsten





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

end of thread, other threads:[~2014-02-14  6:51 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-13 17:19 Proper use of `deactivate-mark'? Thorsten Jolitz
2014-02-13 17:28 ` Stefan Monnier
2014-02-13 17:59   ` Thorsten Jolitz
2014-02-13 18:39     ` Michael Heerdegen
     [not found]   ` <mailman.14992.1392314356.10748.help-gnu-emacs@gnu.org>
2014-02-13 18:07     ` Barry Margolin
2014-02-13 18:52       ` Thorsten Jolitz
2014-02-14  6:51       ` Kevin Rodgers

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.