unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: dan <dan.hitt@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: move-beginning-of-line moves to the very beginning instead of where it should
Date: Wed, 31 Dec 2014 21:01:23 -0800 (PST)	[thread overview]
Message-ID: <1bfd045b-a7a2-47bc-93a9-78704b455d73@googlegroups.com> (raw)
In-Reply-To: <8738c3gugm.fsf@debian.uxu>

Thanks Emanuel and Stefan.

Finally the problem sort of solved itself, and i'm posting just in case somebody else has this problem and is trawling the net for a clue like i was.

Just to recap, the problem was the control-A in the shell (move-beginning-of-line) would quit working for me when using emacs on the mac.  It would always start out working, but after a session was up for some time---an hour to a few days to a few weeks---it would begin misbehaving by going all the way to the beginning of the line, instead of stopping at the end of the shell prompt.

But the problem never happened on ubuntu or any other system.

I tried following some of the very good advice given here about how to debug the elisp code but could not get to the bottom of it.

But then somebody (Juan Leon) yesterday posted the same issue on emacs.stackexchange.com, and somebody else (abo-abo) suggested looking at inhibit-field-text-motion.  And that turned out to be my problem: i had a function which temporarily set that variable to t, but sometimes i interrupted the function---and in those cases (naturally) control-A would quit working properly.  And it never showed up on ubuntu, because on ubuntu i had an alternative to that function.

So thanks again everybody!

dan


      reply	other threads:[~2015-01-01  5:01 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-06  5:19 move-beginning-of-line moves to the very beginning instead of where it should dan
2014-09-06  5:40 ` Emanuel Berg
2014-09-06 18:38   ` dan
2014-09-06 18:53 ` Stefan Monnier
     [not found] ` <mailman.8374.1410029673.1147.help-gnu-emacs@gnu.org>
2014-09-07 18:24   ` Emanuel Berg
2015-01-01  5:01     ` dan [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

  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=1bfd045b-a7a2-47bc-93a9-78704b455d73@googlegroups.com \
    --to=dan.hitt@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /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).