unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Bob Proulx <bob@proulx.com>
To: Hugh Mayfield <hugh.mayfield@opengroupware.ch>, help-gnu-emacs@gnu.org
Subject: Re: Mark
Date: Fri, 2 Jan 2015 17:15:34 -0700	[thread overview]
Message-ID: <20150102170821311291879@bob.proulx.com> (raw)
In-Reply-To: <54A71BA4.3010709@mousecar.com>

ken wrote:
> Hugh Mayfield wrote:
> > Sorry for newbie question.  After a while, Emacs starts behaving all the
> > time as if I have typed C-SPC.  That is, whenever I move point, the text
> > between point and the previous location of point is highlighted.  How do
> > I disable this, please?  Also, how did I invoke it, so I can avoid the
> > same happening again?  Various web searches and looking at the manual
> > left me none the wiser.
> 
> Yeah, that happens to me too.  That "feature" came into emacs a few years
> ago around the same time that some people wanted emacs to act more like
> Windows.  If there's a way to turn it off, I'd like to know too. All I can
> say is, when you see it happening, do "C-g" to turn  off the highlighting.
> It can happen again.  So you do "C-g" again.  Ad infinitum.

The problem as described by Hugh sounds different from what you say.
What Hugh describes sounds like some type of mode breakage.   What you
describe sounds like transient-mark-mode.

  https://www.gnu.org/software/emacs/manual/html_node/emacs/Mark.html

> What's really bad is if you type a printable character when some area
> (region) is highlighted (which you might miss if the region is offscreen or
> if you're not constantly watching the screen).  Then everything highlighted
> will be replaced by that printable character.  Apparently that's what you're
> supposed to want to happen.  Apparently #2, "C-w" is too much work if you
> want to wipe out a block of text.

Not liking that behavior I always disable transient-mark-mode with the
following in my .emacs file.

  (setq transient-mark-mode nil)

Hugh, Please confirm that it does or does not happen when using -Q and
then when using -q.

  emacs -Q

And then if it is okay check with:

  emacs -q

That first disables all initialization.  The second disables user
initialization but allows system initialization.  It is a way of
debugging which emacs init files are causing what behavior to happen.

If it happens with 'emacs' but not 'emacs -q' then it is something in
your personal emacs init files.  If it happens in 'emacs -q' but not
in 'emacs -Q' then it is something in the system init files, probably
due to a packaging error.  If it is in 'emacs -Q' then it is in the
core emacs somewhere and exists as a valid upstream bug.

Bob



  parent reply	other threads:[~2015-01-03  0:15 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-02 16:55 Mark Hugh Mayfield
2015-01-02 22:28 ` Mark ken
2015-01-02 22:33   ` Mark Dmitry Gutov
2015-01-02 22:49     ` Mark Hugh Mayfield
2015-01-02 23:32     ` Mark ken
2015-01-02 23:38       ` Mark Dmitry Gutov
2015-01-03  0:15   ` Bob Proulx [this message]
2015-01-03 18:27 ` Mark H. Dieter Wilhelm
2015-01-03 18:57   ` Mark Eli Zaretskii
2015-01-03 20:15     ` Mark Charles Millar
2015-01-04 10:34       ` Mark Hugh Mayfield
2015-01-11 16:21         ` Mark Hugh Mayfield
2015-01-11 17:22           ` Mark Yuri Khan
2015-01-11 19:38             ` Mark Charles Millar
2015-01-12  6:14               ` Mark Yuri Khan
2015-01-11 20:02             ` Mark Eli Zaretskii
2015-01-12  6:20               ` Mark Yuri Khan
2015-01-12 13:16                 ` Mark Charles Millar
2015-01-12 14:22                   ` Mark Charles Millar
2015-01-12 16:08                 ` Mark Eli Zaretskii
2015-01-12 16:18                   ` Mark Yuri Khan
2015-01-12 16:31                     ` Mark Eli Zaretskii
2015-01-03 20:20     ` Mark H. Dieter Wilhelm

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=20150102170821311291879@bob.proulx.com \
    --to=bob@proulx.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=hugh.mayfield@opengroupware.ch \
    /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.
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).