GNU bug report logs -
#67514
30.0.50; completion preview symbol length calculation should use point
Previous Next
Reported by: Herman, Géza <geza.herman <at> gmail.com>
Date: Tue, 28 Nov 2023 20:41:02 UTC
Severity: normal
Tags: notabug
Found in version 30.0.50
Done: Eshel Yaron <me <at> eshelyaron.com>
Bug is archived. No further changes may be made.
Full log
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
I checked out completion-preview, and so far I like it. There is a
thing which maybe can be improved (so this is not a bug report, just a
suggestion): it's how completion-preview-require-minimum-symbol-length
calculates the length. Currently it just returns the length of the
symbol under the cursor. I think it would be better to use the length
of the part that actually will be used for completion, because if the
point is inside a word, then it should only consider the part between
the symbol start end the point.
I mean, completion-preview-require-minimum-symbol-length should look
something like this:
(let ((bounds (bounds-of-thing-at-point 'symbol)))
(and bounds (<= completion-preview-minimum-symbol-length
(- (point) (car bounds)))))
This bug report was last modified 1 year and 230 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.