Add functions to restore custom buffer bookmark properties#56
Add functions to restore custom buffer bookmark properties#56shipmints wants to merge 3 commits into
Conversation
This is better than our custom code.
- New defcustoms 'bufferlo-bookmark-buffer-locals', 'bufferlo-bookmark-buffer-handler-functions'. - New defuns 'bufferlo-bookmark-map-function-buffer-locals', 'bufferlo-bookmark-buffer-handler-buffer-locals', 'bufferlo-bookmark-map-function-text-scale-mode-amount', 'bufferlo-bookmark-buffer-handler-text-scale-mode-amount'. - Update documentation.
5e517fc to
7b34bd7
Compare
|
I suppose the configuration of these two features could be simplified like we handle ibuffer integration. The hooks need to be installed in pairs so we could automate this. Nobody will want to have only half the hooks installed, right? |
|
Done. |
|
Flo, should I merge this or do you have anything outstanding? |
florommel
left a comment
There was a problem hiding this comment.
Just a nit, bufferlo-bookmark-buffer-locals and bufferlo-bookmark-text-scale-mode-amount seem to be flipped in the README's code examples.
|
|
||
| #+begin_src emacs-lisp | ||
| ;; To persist text-scale-mode-amount | ||
| (setq bufferlo-bookmark-buffer-locals t) |
There was a problem hiding this comment.
This should be bufferlo-bookmark-text-scale-mode-amount, right?
|
|
||
| #+begin_src emacs-lisp | ||
| ;; To persist buffer-local variables | ||
| (setq bufferlo-bookmark-text-scale-mode-amount t) |
There was a problem hiding this comment.
and this should be bufferlo-bookmark-buffer-locals
There was a problem hiding this comment.
Looks like they are flipped, yep.
|
I also think that we don't need e2cf46e anymore. PS: Great stuff, I just discovered the power of this.. now I can persist my symbol overlays with: |
Yes, sorry I was not precise; we still need it, of course. What I wanted to say is that this behavior is already on main. And you are right this has nothing to do with buffer locals. e2cf46e is just listed in the commits for this PR. But anyways, do you agree with the rebased branch? I use it and it works. |
Seems fine to my eye, though I didn't test it because you did 👍 Not sure how e2cf46e got all mixed up in there but if it's in main, we're good. I'll adopt the main main once this is merged in. I can make some time to look at the Emacs 31 improvements this week. |
'bufferlo-bookmark-buffer-handler-functions'.
'bufferlo-bookmark-buffer-handler-buffer-locals',
'bufferlo-bookmark-map-function-text-scale-mode-amount',
'bufferlo-bookmark-buffer-handler-text-scale-mode-amount'.