Closed shipmints closed 3 weeks ago
From: shipmints @.***> Date: Sun, 11 Aug 2024 12:01:54 -0700
[... 11 lines elided]
My suggestion is that either they're all listed twice, once for the alias, and once for the real function (I use only the real functions, for example), or add a test via
function-alias-p
if any of their resolved function names appear inpulsar-pulse-functions
. Considering how oftenpost-command-hook
gets called, I'd opt for the most runtime-efficient option, and perhaps advise that list be kept to a minimum.
I think it is better for us to refine the code internally so that it does the right thing. This will be easier for us but also better for the user who will not need to list the aliases as well.
Do you want to send a patch or pull request for this? I am happy to merge it.
Thank you for another fine package.
You are welcome!
-- Protesilaos Stavrou https://protesilaos.com
Hi, @protesilaos, let me know if there's anything else we need to do with this.
I could not review this earlier. Did it now, thanks! Let's close this and keep the conversation in the pull request.
Function aliases are the kind of thing might trip up new users. The core
tab-bar
package commands, listed below next to their convenience aliases, do not trigger pulsing while their listed aliases do. Command handling viathis-command
does not resolve function aliases on its own.My suggestion is that either they're all listed twice, once for the convenience alias, and once for the real function, or add a test via
function-alias-p
if any of their resolved function names appear inpulsar-pulse-functions
. Considering how oftenpost-command-hook
gets called, I'd opt for the most runtime-efficient option.Thank you for another fine package.