* Re: master 24a8cc5: Define revert-buffer-function for *Memory Report*
[not found] ` <20210716180547.6398120D13@vcs0.savannah.gnu.org>
@ 2021-07-16 18:17 ` Stefan Monnier
2021-07-17 13:46 ` Lars Ingebrigtsen
0 siblings, 1 reply; 5+ messages in thread
From: Stefan Monnier @ 2021-07-16 18:17 UTC (permalink / raw)
To: emacs-devel; +Cc: Mattias Engdegård
> + (setq-local revert-buffer-function (lambda (_ignore-auto _noconfirm)
> + (memory-report)))
I hope someone will find it in them to tackle the problem of common
"reference" format which can be shared between `revert-buffer-function`,
`bookmark`, `help-xref`, ...
Stefan
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: master 24a8cc5: Define revert-buffer-function for *Memory Report*
2021-07-16 18:17 ` master 24a8cc5: Define revert-buffer-function for *Memory Report* Stefan Monnier
@ 2021-07-17 13:46 ` Lars Ingebrigtsen
2021-07-17 17:58 ` Stefan Monnier
0 siblings, 1 reply; 5+ messages in thread
From: Lars Ingebrigtsen @ 2021-07-17 13:46 UTC (permalink / raw)
To: Stefan Monnier; +Cc: Mattias Engdegård, emacs-devel
Stefan Monnier <monnier@iro.umontreal.ca> writes:
>> + (setq-local revert-buffer-function (lambda (_ignore-auto _noconfirm)
>> + (memory-report)))
>
> I hope someone will find it in them to tackle the problem of common
> "reference" format which can be shared between `revert-buffer-function`,
> `bookmark`, `help-xref`, ...
What problem is that?
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: master 24a8cc5: Define revert-buffer-function for *Memory Report*
2021-07-17 13:46 ` Lars Ingebrigtsen
@ 2021-07-17 17:58 ` Stefan Monnier
2021-07-17 18:57 ` Lars Ingebrigtsen
0 siblings, 1 reply; 5+ messages in thread
From: Stefan Monnier @ 2021-07-17 17:58 UTC (permalink / raw)
To: Lars Ingebrigtsen; +Cc: emacs-devel, Mattias Engdegård
Lars Ingebrigtsen [2021-07-17 15:46:14] wrote:
> Stefan Monnier <monnier@iro.umontreal.ca> writes:
>>> + (setq-local revert-buffer-function (lambda (_ignore-auto _noconfirm)
>>> + (memory-report)))
>>
>> I hope someone will find it in them to tackle the problem of common
>> "reference" format which can be shared between `revert-buffer-function`,
>> `bookmark`, `help-xref`, ...
>
> What problem is that?
The problem that those should all rely on a single piece of information
provided by the mode and it should work for help-xref, for bookmark, for
revert-buffer instead of having to set those separately, each one using
a slightly different representation and calling convention.
Stefan
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: master 24a8cc5: Define revert-buffer-function for *Memory Report*
2021-07-17 17:58 ` Stefan Monnier
@ 2021-07-17 18:57 ` Lars Ingebrigtsen
2021-07-17 21:41 ` Juri Linkov
0 siblings, 1 reply; 5+ messages in thread
From: Lars Ingebrigtsen @ 2021-07-17 18:57 UTC (permalink / raw)
To: Stefan Monnier; +Cc: Mattias Engdegård, emacs-devel
Stefan Monnier <monnier@iro.umontreal.ca> writes:
> The problem that those should all rely on a single piece of information
> provided by the mode and it should work for help-xref, for bookmark, for
> revert-buffer instead of having to set those separately, each one using
> a slightly different representation and calling convention.
Ah, yeah, that's true -- the use cases do overlap somewhat. And it'd be
nice to go able to bookmark more special-mode buffers.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: master 24a8cc5: Define revert-buffer-function for *Memory Report*
2021-07-17 18:57 ` Lars Ingebrigtsen
@ 2021-07-17 21:41 ` Juri Linkov
0 siblings, 0 replies; 5+ messages in thread
From: Juri Linkov @ 2021-07-17 21:41 UTC (permalink / raw)
To: Lars Ingebrigtsen; +Cc: Mattias Engdegård, Stefan Monnier, emacs-devel
>> The problem that those should all rely on a single piece of information
>> provided by the mode and it should work for help-xref, for bookmark, for
>> revert-buffer instead of having to set those separately, each one using
>> a slightly different representation and calling convention.
>
> Ah, yeah, that's true -- the use cases do overlap somewhat. And it'd be
> nice to go able to bookmark more special-mode buffers.
Using revert-buffer-function for bookmarking then is similar to
saving revert-buffer-function to the desktop file
to be able to revisit it after restarting Emacs.
This will remove the need of implementing both hooks:
bookmark-make-record-function and desktop-buffer-mode-handlers.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2021-07-17 21:41 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20210716180545.18190.53427@vcs0.savannah.gnu.org>
[not found] ` <20210716180547.6398120D13@vcs0.savannah.gnu.org>
2021-07-16 18:17 ` master 24a8cc5: Define revert-buffer-function for *Memory Report* Stefan Monnier
2021-07-17 13:46 ` Lars Ingebrigtsen
2021-07-17 17:58 ` Stefan Monnier
2021-07-17 18:57 ` Lars Ingebrigtsen
2021-07-17 21:41 ` Juri Linkov
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.