From: Lars Magne Ingebrigtsen <larsi@gnus.org>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: emacs-devel@gnu.org
Subject: Re: "Staying in the same place"
Date: Mon, 04 Apr 2016 20:19:58 +0200 [thread overview]
Message-ID: <m3mvp9nsmp.fsf@gnus.org> (raw)
In-Reply-To: <jwv7fgd1r7w.fsf-monnier+gmane.emacs.devel@gnu.org> (Stefan Monnier's message of "Mon, 04 Apr 2016 08:51:47 -0400")
Stefan Monnier <monnier@iro.umontreal.ca> writes:
> I think it'd good to think of such solutions in the context of bookmarks
> as well.
Hm... interesting...
I know next to nothing about Emacs bookmarking. How are bookmarks
stored (for special mode buffers)?
> I don't think it can be done with the current bookmark data, tho.
> IIRC there were 2 main reasons:
> - You need to be able to distinguish the case "go back to bookmark in
> a new buffer" and "go back to bookmark in the current buffer".
> - You probably want to distinguish between the case where you want to
> revert/refresh, and the case where it's OK to just jump to some
> spot in some existing buffer.
I'm trying to envision how this would work from a UX point of view.
Let's say you're trying to do some "-Wall" cleanups in emacs/src, and
you've gotten halfway down the list of things you're able to clean up,
so you set a bookmark there. Then the next time you compile something
in that directory, then point moves to around that point?
>> (The reason I'm thinking about this is that I was thinking about what
>> would be necessary to make `g' in compilation buffers remain in "the
>> same place". Which is useful when you're trying to weed out compilation
>> warnings.)
>
> Oohh.. that's yet another step up in complexity since in that case you
> can't "go back" right away, you first have to wait for the process to
> send enough data.
Yes, it's an added wrinkle, but I think it should be possible to
handle. I made a first stab at it in the recently reverted `r'/`l'
code, and it seemed to be kinda nice, even if the implementation wasn't
very general.
> But yes, that would be great (I'd particularly appreciate it in
> *vc-diff*).
Indeed, staying in the "same place" in *vc-diff* would be very nice.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
next prev parent reply other threads:[~2016-04-04 18:19 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-04 5:40 "Staying in the same place" Lars Magne Ingebrigtsen
2016-04-04 6:09 ` Lars Magne Ingebrigtsen
2016-04-04 7:28 ` Daniel McClanahan
2016-04-04 12:51 ` Stefan Monnier
2016-04-04 18:19 ` Lars Magne Ingebrigtsen [this message]
2016-04-04 18:36 ` Stefan Monnier
2016-04-04 18:42 ` Lars Magne Ingebrigtsen
2016-04-04 19:25 ` Karl Fogel
2016-04-04 19:43 ` Lars Magne Ingebrigtsen
2016-04-04 19:49 ` Karl Fogel
2016-04-04 19:52 ` Lars Magne Ingebrigtsen
2016-04-04 23:21 ` John Wiegley
2016-04-05 0:36 ` Drew Adams
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=m3mvp9nsmp.fsf@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).