Replies: 17 comments
-
Can you explain a bit more about that? I don't understand the concept of "resuming" something that hasn't been made or defined yet. For example, if you haven't booted up your PC yet, you can't "resume" it; you have to "suspend" it to sleep mode first. Or for a more general concept of an activity, the idea of resuming something implies that it had previously existed and been active. I don't understand the idea that resuming something is the same as creating it.
Yeah, I think that would be a reasonable change. The prefix argument could still be used to update its default state without prompting. Thanks. |
Beta Was this translation helpful? Give feedback.
-
I think of it like switch to buffer. Existing buffer? Here you go. New buffer mentioned? Happy to make that for you. In this way a 2 command interface is quite possible.
Perhaps my confusion here is between "switch to" and "resume" activity. To me those are redundant. Imagine if you had a different command to create a non-existing buffer vs. switching to one that exists. Inconvenient. |
Beta Was this translation helpful? Give feedback.
-
So I guess
Yes, the reason I added |
Beta Was this translation helpful? Give feedback.
-
I see, so "switch" is for the "active sub-list of possible activities". That makes good sense (in fact it explains what being an "-active" activity means I guess). If I "switch" to a non-existent activity, I'd just expect to be asked if I'd like to create that as a new activity using the current set of buffers/windows etc, since this is so how so many "switch to this" things work in emacs. As in |
Beta Was this translation helpful? Give feedback.
-
Yeah, maybe we'll do that. |
Beta Was this translation helpful? Give feedback.
-
v0.5 has a number of changes now, and I'm still not sure what the best thing to do about these ideas is, so I'm extending this issue to v0.6. Please continue to offer feedback as you have it. Thanks. |
Beta Was this translation helpful? Give feedback.
-
OK. I still grope around to re-save the default state when I want to update it. A I don't always know I want to update the default state before I call For me, the key verbs are One more idea if you don't like prompting or extra commands: what about having a prefix key to |
Beta Was this translation helpful? Give feedback.
-
I'm considering an "update" command, but I'm not sure about the name. What if
They are related, yes, but I don't like that idea, because it would mean that the prefix argument would invert the command from loading a state to saving a state, which I think could be confusing. |
Beta Was this translation helpful? Give feedback.
-
Re: memorability. How about just A couple of thoughts on the prefix-arg behavior of Instead of throwing a
you could prompt for confirmation: |
Beta Was this translation helpful? Give feedback.
-
I think |
Beta Was this translation helpful? Give feedback.
-
I suggested renaming In any case the prefix-arg behavior of |
Beta Was this translation helpful? Give feedback.
-
I suppose my theory about about the That's why I thought about changing the name to I feel like it could also reduce some confusion about whether the command would switch to a new frame/tab: since it doesn't necessarily denote "newness," it could make sense to define an activity as the current frame/tab's configuration. But this is the hard part, because we all have different ideas about what these words should mean in these contexts based on our varied experiences.
I wish we could get by without having to make a command just to redefine an activity's default state. I'm trying to follow Emacs's idioms as much as I can, and if one thinks of, e.g. files, there's not one command to write a file for the first time and a separate command to overwrite it--there's just By that logic, I should use So here's another idea, partially regurgitated but modified according to feedback: What if |
Beta Was this translation helpful? Give feedback.
-
And I’ve used a switch-to-buffer analogy (where new if not existing is builtin). Maybe none of these is perfectly apt.
Sounds like a winner to me. |
Beta Was this translation helpful? Give feedback.
-
PS: if you want to keep the command landscape as small as possible, |
Beta Was this translation helpful? Give feedback.
-
Are you suggesting to remove |
Beta Was this translation helpful? Give feedback.
-
I'd do it the other way around: |
Beta Was this translation helpful? Give feedback.
-
Ok, I'll think about it. |
Beta Was this translation helpful? Give feedback.
-
I instinctively expected to be able to make a new activity if I enter a new name with
activities-resume
(possibly with a y/n prompt). And if Iactivity-new
and re-use an existing name, I'd expect to be prompted y/n to update the default saved value of that known activity.Beta Was this translation helpful? Give feedback.
All reactions