all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Michael Brand <michael.ch.brand@gmail.com>
Cc: 13466@debbugs.gnu.org
Subject: bug#13466: find-file-noselect scrolls current buffer
Date: Wed, 16 Jan 2013 18:10:22 -0500	[thread overview]
Message-ID: <jwvzk08d9da.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <CALn3zogUkkY6mE9VnAaRK1JmJWuHhzQNXdGP0S9GAkOej4N6AQ@mail.gmail.com> (Michael Brand's message of "Wed, 16 Jan 2013 19:27:56 +0100")

> $ yes | nl | head -999 > /tmp/n
> $ cp /tmp/n /tmp/m.txt
> $ emacs -q /tmp/n
> M-: (scroll-up)
> M-: (add-hook 'text-mode-hook 'end-of-buffer)
> M-: (find-file-noselect "/tmp/m.txt")

The problem is end-of-buffer, which affects the selected-window, even if
it does not display the current-buffer.  Of course, its docstring says
not to use it from Lisp, so we could argue it's not quite a bug.
I.e. use

  M-: (add-hook 'text-mode-hook (lambda () (goto-char (point-max))))


-- Stefan





  reply	other threads:[~2013-01-16 23:10 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-16 18:27 bug#13466: find-file-noselect scrolls current buffer Michael Brand
2013-01-16 23:10 ` Stefan Monnier [this message]
2013-01-17 18:44   ` Michael Brand

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=jwvzk08d9da.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=13466@debbugs.gnu.org \
    --cc=michael.ch.brand@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.