all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Emacs recentres point in buffer if it is moved anywhere -- annoying!
@ 2015-02-17 18:03 purpleblues13
  2015-02-18  2:19 ` Robert Thorpe
       [not found] ` <mailman.293.1424225957.31049.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 5+ messages in thread
From: purpleblues13 @ 2015-02-17 18:03 UTC (permalink / raw)
  To: help-gnu-emacs

Hi,

I have Emacs 24.4, running on OS X Mavericks.

I am encountering a very annoying problem which is that Emacs automatically recentres the point after every single movement. The is a small delay (ranges from about 0.5 secs to 3 secs), and then it jumps, just as if I had pressed C-l. I cannot find anything about this through google searches; no variables or minor modes, etc.

Weirdly, it usually doesn't happen. I can have Emacs open for ages without this annoying behaviour, then suddenly it just starts happening. I have no idea why. I have tried to restart and isolate all the commands I am entering, but I have not been able to work out what could possibly be causing it.

I can provide my init.el if necessary.

Many thanks,
David.


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

* Re: Emacs recentres point in buffer if it is moved anywhere -- annoying!
  2015-02-17 18:03 Emacs recentres point in buffer if it is moved anywhere -- annoying! purpleblues13
@ 2015-02-18  2:19 ` Robert Thorpe
       [not found] ` <mailman.293.1424225957.31049.help-gnu-emacs@gnu.org>
  1 sibling, 0 replies; 5+ messages in thread
From: Robert Thorpe @ 2015-02-18  2:19 UTC (permalink / raw)
  To: purpleblues13; +Cc: help-gnu-emacs

purpleblues13@gmail.com writes:
> I have Emacs 24.4, running on OS X Mavericks.
>
> I am encountering a very annoying problem which is that Emacs automatically recentres the point after every single movement. The is a small delay (ranges from about 0.5 secs to 3 secs), and then it jumps, just as if I had pressed C-l. I cannot find anything about this through google searches; no variables or minor modes, etc.
>
> Weirdly, it usually doesn't happen. I can have Emacs open for ages without this annoying behaviour, then suddenly it just starts happening. I have no idea why. I have tried to restart and isolate all the commands I am entering, but I have not been able to work out what could possibly be causing it.
>
> I can provide my init.el if necessary.

I expect this is caused by auto-reverting a buffer-list.  There's a bug
there, I understand it has been fixed now though.

BR,
Robert Thorpe



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

* Re: Emacs recentres point in buffer if it is moved anywhere -- annoying!
       [not found] ` <mailman.293.1424225957.31049.help-gnu-emacs@gnu.org>
@ 2015-02-18 14:05   ` David Vaughan
  2015-02-18 14:17     ` David Vaughan
  0 siblings, 1 reply; 5+ messages in thread
From: David Vaughan @ 2015-02-18 14:05 UTC (permalink / raw)
  To: gnu.emacs.help; +Cc: help-gnu-emacs

Where has it been fixed? I have the newest stable version. Is there a
temporary hack to fix it?

Many thanks,
David.

On Wed, Feb 18, 2015 at 2:19 AM, Robert Thorpe <
rt@robertthorpeconsulting.com> wrote:

> purpleblues13@gmail.com writes:
> > I have Emacs 24.4, running on OS X Mavericks.
> >
> > I am encountering a very annoying problem which is that Emacs
> automatically recentres the point after every single movement. The is a
> small delay (ranges from about 0.5 secs to 3 secs), and then it jumps, just
> as if I had pressed C-l. I cannot find anything about this through google
> searches; no variables or minor modes, etc.
> >
> > Weirdly, it usually doesn't happen. I can have Emacs open for ages
> without this annoying behaviour, then suddenly it just starts happening. I
> have no idea why. I have tried to restart and isolate all the commands I am
> entering, but I have not been able to work out what could possibly be
> causing it.
> >
> > I can provide my init.el if necessary.
>
> I expect this is caused by auto-reverting a buffer-list.  There's a bug
> there, I understand it has been fixed now though.
>
> BR,
> Robert Thorpe
>
>


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

* Re: Emacs recentres point in buffer if it is moved anywhere -- annoying!
  2015-02-18 14:05   ` David Vaughan
@ 2015-02-18 14:17     ` David Vaughan
  2015-02-19 17:49       ` Robert Thorpe
  0 siblings, 1 reply; 5+ messages in thread
From: David Vaughan @ 2015-02-18 14:17 UTC (permalink / raw)
  To: gnu.emacs.help; +Cc: help-gnu-emacs

It seems that:

(setq global-auto-revert-non-file-buffers nil)

has fixed it. (Previously I was setting that to 't'.)

On Wed, Feb 18, 2015 at 2:05 PM, David Vaughan <purpleblues13@gmail.com>
wrote:

> Where has it been fixed? I have the newest stable version. Is there a
> temporary hack to fix it?
>
> Many thanks,
> David.
>
> On Wed, Feb 18, 2015 at 2:19 AM, Robert Thorpe <
> rt@robertthorpeconsulting.com> wrote:
>
>> purpleblues13@gmail.com writes:
>> > I have Emacs 24.4, running on OS X Mavericks.
>> >
>> > I am encountering a very annoying problem which is that Emacs
>> automatically recentres the point after every single movement. The is a
>> small delay (ranges from about 0.5 secs to 3 secs), and then it jumps, just
>> as if I had pressed C-l. I cannot find anything about this through google
>> searches; no variables or minor modes, etc.
>> >
>> > Weirdly, it usually doesn't happen. I can have Emacs open for ages
>> without this annoying behaviour, then suddenly it just starts happening. I
>> have no idea why. I have tried to restart and isolate all the commands I am
>> entering, but I have not been able to work out what could possibly be
>> causing it.
>> >
>> > I can provide my init.el if necessary.
>>
>> I expect this is caused by auto-reverting a buffer-list.  There's a bug
>> there, I understand it has been fixed now though.
>>
>> BR,
>> Robert Thorpe
>>
>>
>


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

* Re: Emacs recentres point in buffer if it is moved anywhere -- annoying!
  2015-02-18 14:17     ` David Vaughan
@ 2015-02-19 17:49       ` Robert Thorpe
  0 siblings, 0 replies; 5+ messages in thread
From: Robert Thorpe @ 2015-02-19 17:49 UTC (permalink / raw)
  To: David Vaughan; +Cc: help-gnu-emacs

David Vaughan <purpleblues13@gmail.com> writes:

> It seems that:
>
> (setq global-auto-revert-non-file-buffers nil)
>
> has fixed it. (Previously I was setting that to 't'.)

Yes, it's auto-reverting buffer-lists specifically that triggers this
bug.  You can auto-revert other types of non-file buffer safely AFAIK.

The following diff was sent by Nicolas Richard in June 2014 to
emacs-devel.  I don't know why this isn't fixed in Emacs 24.4.  That
said I haven't tried it, I've just disabled auto-reverting.

diff --git a/lisp/emacs-lisp/tabulated-list.el b/lisp/emacs-lisp/tabulated-list.el
index d0d71dd..dd1166f 100644
--- a/lisp/emacs-lisp/tabulated-list.el
+++ b/lisp/emacs-lisp/tabulated-list.el
@@ -323,7 +323,9 @@ to the entry with the same ID element as the current line."
     (if saved-pt
 	(progn (goto-char saved-pt)
 	       (move-to-column saved-col)
-	       (recenter))
+	       (when (eq (window-buffer (selected-window))
+                         (current-buffer))
+                 (recenter)))
       (goto-char (point-min)))))
 
 (defun tabulated-list-print-entry (id cols)

BR,
Robert Thorpe



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

end of thread, other threads:[~2015-02-19 17:49 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-17 18:03 Emacs recentres point in buffer if it is moved anywhere -- annoying! purpleblues13
2015-02-18  2:19 ` Robert Thorpe
     [not found] ` <mailman.293.1424225957.31049.help-gnu-emacs@gnu.org>
2015-02-18 14:05   ` David Vaughan
2015-02-18 14:17     ` David Vaughan
2015-02-19 17:49       ` Robert Thorpe

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.