[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: "Staying in the same place"
From: |
Stefan Monnier |
Subject: |
Re: "Staying in the same place" |
Date: |
Mon, 04 Apr 2016 14:36:59 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) |
>> 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)?
For the current discussion the part that saves bookmarks is
not important.
The important part is that you can build a "bookmark object" which should
contain enough data to reproduce the current buffer&position.
> 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?
You might be able to do that, but what I was proposing was not to let
users use the bookmark functionality, but simply to have a default
special-mode-revert-buffer function which would do something along
the lines of:
(defun special-mode-revert-function ()
(let ((here (funcall bookmark-make-record-function)))
(erase-buffer)
(bookmark-goback here)))
-- Stefan
- "Staying in the same place", Lars Magne Ingebrigtsen, 2016/04/04
- Re: "Staying in the same place", Lars Magne Ingebrigtsen, 2016/04/04
- Re: "Staying in the same place", Stefan Monnier, 2016/04/04
- Re: "Staying in the same place", Lars Magne Ingebrigtsen, 2016/04/04
- Re: "Staying in the same place",
Stefan Monnier <=
- Re: "Staying in the same place", Lars Magne Ingebrigtsen, 2016/04/04
- Re: "Staying in the same place", Karl Fogel, 2016/04/04
- Re: "Staying in the same place", Lars Magne Ingebrigtsen, 2016/04/04
- Re: "Staying in the same place", Karl Fogel, 2016/04/04
- Re: "Staying in the same place", Lars Magne Ingebrigtsen, 2016/04/04
- Re: "Staying in the same place", John Wiegley, 2016/04/04
- RE: "Staying in the same place", Drew Adams, 2016/04/04