Closed mookid closed 4 years ago
Hi!
I've never used clone-indirect-buffer
interactively. What do you use it for?
I usually use it after mark-defun to make a view of a given buffer, in combination with narrowing. That way, I can get the benefit of narrowing (making a small view of a buffer) while still having access to the whole buffer.
Would it be much of a loss to disable diff-hl in indirect buffers instead?
Well, I can always work around that limitation with an advice, so no big change for me. If you think that the proper fix should be more complex, no problem (but I think that the current state is poor).
shrug If it really improves your experience, please go ahead and make a PR, I'll merge.
No solid promise not to remove this functionality later (I still don't know how feasible it is to support indirect buffers in the long run), but it'll probably stay.
@dgutov I can try to add a test for that, if it makes things easier to maintain (I see no tests currently), unless you do not want tests in the repository.
If you care to add a few tests, that would only be welcome. So far I've been too lazy to do it here, and manual testing was easy enough because the package doesn't offer many options.
(You have done copyright assignment already, right?)
(You have done copyright assignment already, right?)
I do!
Steps:
vc-buffer-sync: Wrong type argument: stringp, nil
with the following backtrace:vc-deduce-fileset: Buffer [...] is not associated with a file
Note that the following path seems to be enough to solve the issue:
edit: this is GNU Emacs 27.0.50 (build 1, x86_64-w64-mingw32) of 2019-11-11