unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Trying to understand 'icomplete-in-buffer'
@ 2021-07-01 22:55 Gabriel
  2021-07-02  0:43 ` Stefan Monnier
  0 siblings, 1 reply; 4+ messages in thread
From: Gabriel @ 2021-07-01 22:55 UTC (permalink / raw)
  To: emacs-devel

Hi,

I am trying to understand the variable 'icomplete-in-buffer' in
lisp/icomplete.el.

It's a defvar, but users continues to set this variable. I believe it's
due to a lack of documentation or due to a lack of double-dash to mark
it as internal. Some examples:

[1] https://www.reddit.com/r/emacs/comments/fswt7c/using_icomplete_vertically/
[2] https://www.reddit.com/r/emacs/comments/ftq4pq/making_icomplete_more_modern/
[3] https://emacs.stackexchange.com/questions/63340/disable-icomplete-with-emacs-find-file

The bug bug#41805 was opened because of this problem, and closed because
it was a defvar, but there was no clarification regarding the use of
this variable.

Looking at the code, it was introduced in commit 504a03813b (8 years
ago). There are only two references for this variable in the emacs
source tree in the original commit and today: 1) the variable
declaration with a nil value and 2) a condition on 'icomplete-mode' to
add the the function 'icomplete--in-region-setup' to hook
'completion-in-region-mode-hook'. I could not find any external package
that uses this variable.

I tried many approaches to use this variable in combination with
'completion-at-point', but in all cases I got either no results or a
hook error.

Any help is welcome.

Regards,
Gabriel














^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-07-04 21:23 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-01 22:55 Trying to understand 'icomplete-in-buffer' Gabriel
2021-07-02  0:43 ` Stefan Monnier
2021-07-04 15:43   ` Gabriel
2021-07-04 21:23     ` Stefan Monnier

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).