all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Gabriel <gabriel376@hotmail.com>
To: emacs-devel@gnu.org
Subject: Trying to understand 'icomplete-in-buffer'
Date: Thu, 01 Jul 2021 19:55:38 -0300	[thread overview]
Message-ID: <CH2PR01MB58797E9D5125280A25C7D64E8B009@CH2PR01MB5879.prod.exchangelabs.com> (raw)

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














             reply	other threads:[~2021-07-01 22:55 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-01 22:55 Gabriel [this message]
2021-07-02  0:43 ` Trying to understand 'icomplete-in-buffer' Stefan Monnier
2021-07-04 15:43   ` Gabriel
2021-07-04 21:23     ` Stefan Monnier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CH2PR01MB58797E9D5125280A25C7D64E8B009@CH2PR01MB5879.prod.exchangelabs.com \
    --to=gabriel376@hotmail.com \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.