unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: "João Távora" <joaotavora@gmail.com>
To: Sean Whitton <spwhitton@spwhitton.name>
Cc: 61943@debbugs.gnu.org, juri@linkov.net
Subject: bug#61943: 29.0.60; icomplete--in-region-setup should activate icomplete-fido-mode-map too
Date: Tue, 21 Mar 2023 23:40:50 +0000	[thread overview]
Message-ID: <CALDnm51-76UyfMH2=7ZpM0y+OFay+5Fh8rYwdF1J+C2SOYobKw@mail.gmail.com> (raw)
In-Reply-To: <87y1npg3o5.fsf@melete.silentflame.com>

On Tue, Mar 21, 2023 at 10:06 PM Sean Whitton <spwhitton@spwhitton.name> wrote:
>
> Hello João,
>
> On Sat 04 Mar 2023 at 01:44PM -07, Sean Whitton wrote:
>
> > On Sat 04 Mar 2023 at 11:30AM GMT, João Távora wrote:
> >
> >> Yes, Sean, please report an Emacs -Q recipe for what you are trying
> >> to get working.
> >
> > Alright, how about this:
> >
> > (setq icomplete-in-buffer t)
> > (fido-mode 1)
> > M-x eshell
> > touch foobarbaz
> > C-x C-f fbb => matches the file
> > C-g
> > type "ls fbb"
> >
> > TAB => No matches
> > C-g
> > (setq completion-styles '(flex))
> > TAB => matches the file & expands
> >
> > but with fido-mode you shouldn't need to set completion-styles like this.
> >
> > (In Eshell TAB is completion-at-point and C-M-i is something else.)
>
> May I ask whether you've had a chance to look into this yet?

Yes you may, but no, I haven't.  Icomplete and Fido and cousins,
it's true.  But icomplete-in-buffer wasn't around (at least wasn't
in any way functional) when Fido was born.  So I don't have
any plans of integrating this part of icomplete in Fido, because
it's not really how I envision Fido being used for non-minibuffer
completion.

I have other plans for a future fido-in-buffer where
the feedback overlay -- in horizontal or vertical form -- shows
in the echo area instead.

That said, if a simple patch to make icomplete-in-buffer work with
fido-mode can be achieved, I have no problem reviewing it.
As you suggested, it could be as simple as integrating
icomplete--fido-mode-setup into icomplete--in-region-setup.
But that is relatively tricky as whatever variables are set
when entering this mode but be properly reset when leaving it.
Doing this elegantly might not be hard, but it's not trivial
either.

João





  reply	other threads:[~2023-03-21 23:40 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-03 18:18 bug#61943: 29.0.60; icomplete--in-region-setup should activate icomplete-fido-mode-map too Sean Whitton
2023-03-03 20:26 ` João Távora
2023-03-04  2:13   ` Sean Whitton
2023-03-04  2:35 ` Sean Whitton
2023-03-04 11:30   ` João Távora
2023-03-04 18:52     ` Juri Linkov
2023-03-04 19:04       ` João Távora
2023-03-04 19:14         ` Juri Linkov
2023-03-04 20:44     ` Sean Whitton
2023-03-21 22:06       ` Sean Whitton
2023-03-21 23:40         ` João Távora [this message]
2023-03-22 17:25           ` Sean Whitton
2023-03-22 18:43             ` João Távora
2023-03-23 19:13               ` Sean Whitton

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to='CALDnm51-76UyfMH2=7ZpM0y+OFay+5Fh8rYwdF1J+C2SOYobKw@mail.gmail.com' \
    --to=joaotavora@gmail.com \
    --cc=61943@debbugs.gnu.org \
    --cc=juri@linkov.net \
    --cc=spwhitton@spwhitton.name \
    /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 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).