all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Robert Thorpe <rt@robertthorpeconsulting.com>
To: David Vaughan <purpleblues13@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Emacs recentres point in buffer if it is moved anywhere -- annoying!
Date: Thu, 19 Feb 2015 17:49:08 +0000	[thread overview]
Message-ID: <877fvdeqqz.fsf@robertthorpeconsulting.com> (raw)
In-Reply-To: <CABHCrvS+N-W6i61FTAN-eG3YBKZN7CTOUZ2qTLVF0xNShq1H8Q@mail.gmail.com> (message from David Vaughan on Wed, 18 Feb 2015 14:17:40 +0000)

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



      reply	other threads:[~2015-02-19 17:49 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [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=877fvdeqqz.fsf@robertthorpeconsulting.com \
    --to=rt@robertthorpeconsulting.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=purpleblues13@gmail.com \
    /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.