Open gagbo opened 3 years ago
Hi Gerry,
Thanks, this is a good idea. Yes, I think having a custom option variable for each of the needed arguments to frameset-restore
makes sense. Then users who need to change them for certain uses could bind the variables in a wrapping command, as you said.
Hello,
How would you augment the
burly-open-url
entrypoint somehow with the key values fromframeset-restore
at least ? I’m open to make the PR for it if we can agree on the plan.My use case : I’d like to
reuse-frames
when I open a burly frames URL, so that when I open the URL I don’t have a new frame appearing, but instead my current frame is replaced with the URL. Imagine that I open the URL directly fromemacs-dashboard
when I start Emacs, so I really just want to reuse the frame I just opened.https://github.com/emacs-mirror/emacs/blob/3af9e84ff59811734dcbb5d55e04e1fdb7051e77/lisp/frameset.el#L1139-L1143
I don’t know yet if I’d want to pass extra keys or not, as I didn’t play a lot with the function for now. But it’d be nice to control a little more how the frame is opened. I thought about :
burly-
custom variables that would be used throughout, with some default values. I think it’s the easiest way, and matches the "style" ofburly-frameset-filter-alist
et al. But the issue becomes about "how do I override the defaults for 1 call ?"; and I think the only way to deal with it would be tolet-bind
the variables in a wrapping function, which is fine for me.I hope I’m clear enough, and have a nice day, Gerry