unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: emacs-devel@gnu.org
Subject: Re: Setting point
Date: Sat, 14 Apr 2018 00:24:03 +0200	[thread overview]
Message-ID: <87woxawxrw.fsf@mouse.gnus.org> (raw)
In-Reply-To: <jwvk1tau5hu.fsf-monnier+gmane.emacs.devel@gnu.org> (Stefan Monnier's message of "Fri, 13 Apr 2018 18:14:29 -0400")

Stefan Monnier <monnier@iro.umontreal.ca> writes:

> switch-to-buffer-preserve-window-point was introduced mainly so that if
> you have a buffer displayed in 2 windows or more, switching to some
> other buffer and back will get you to the original point instead of
> moving you to one of the points of one of the other windows displaying
> that buffer.

Hm...  I see.  That does sound useful.  But here the buffer isn't
displayed that way, so...

> BTW, I'm not sure exactly what is the circumstance where you want Gnus
> to do that, but maybe a better solution is to move point at another
> moment, i.e. either before *Group* is un-displayed, or after *Group* is
> re-displayed.  E.g. instead of moving point to the next group when
> I leave a group, Gnus could move point to the next group just before
> entering the group (at which point *Group* is still displayed).

Yes, that's what Gnus does now, but it didn't do it on all "exit group"
commands, so things got a bit confused.  This happened to work before
because Emacs left the point alone after it had been set, but stopped
working some years ago.

But I think I've fixed the remaining commands now, so I was mostly just
curious about how this was supposed to work.  

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no



  reply	other threads:[~2018-04-13 22:24 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-04-13 19:56 Setting point Lars Ingebrigtsen
2018-04-13 20:32 ` Eli Zaretskii
2018-04-13 20:39   ` Lars Ingebrigtsen
2018-04-13 20:41     ` Lars Ingebrigtsen
2018-04-13 21:40     ` Stefan Monnier
2018-04-13 21:52       ` Lars Ingebrigtsen
2018-04-13 22:14         ` Stefan Monnier
2018-04-13 22:24           ` Lars Ingebrigtsen [this message]
2018-04-14  6:17     ` Eli Zaretskii

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=87woxawxrw.fsf@mouse.gnus.org \
    --to=larsi@gnus.org \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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).