GNU bug report logs -
#41879
28.0.50; [Patch]: Add project-switch-to-buffer in project.el
Previous Next
Reported by: Theodor Thornhill <theo <at> thornhill.no>
Date: Mon, 15 Jun 2020 17:52:01 UTC
Severity: normal
Tags: patch
Found in version 28.0.50
Done: Dmitry Gutov <dgutov <at> yandex.ru>
Bug is archived. No further changes may be made.
Full log
Message #106 received at 41879 <at> debbugs.gnu.org (full text, mbox):
> Hi Theodor,
Hi!
> Please take a look at the attached patch.
That's very cool! I was sitting right now doing something similar, but you beat me to it. Sorry for not getting to it faster - life happened :)
I was struggling a little with the default buffer part, which you solved by kinda not solving it. I was trying to determine in some way what buffer would be reasonable to offer as default value if that predicate fails. Maybe it is best to just return nil there as you do.
Maybe just one thing. Eli addressed the docstring in one of the other functions as being a little ambiguous. Maybe update it to something like:
"Switch to an open buffer in the current project."
In addition, maybe adding a small comment above the default value predicate, explaining the relation to the undocumentet structure used in this function. Or not, maybe it is clear enough given the preceeding comment.
Thank you for bringing this up - and fixing it!
Theo
This bug report was last modified 4 years and 333 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.