GNU bug report logs -
#49075
(icomplete-vertical-mode 1) not taking effect
Previous Next
Reported by: arvid-harnack <at> lavache.com
Date: Thu, 17 Jun 2021 16:02:02 UTC
Severity: normal
Tags: notabug
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
From: Juri Linkov <juri <at> linkov.net>
To: arvid-harnack <at> lavache.com
Subject: bug#49075: (icomplete-vertical-mode 1) not taking effect
Date: 20/06/2021 01:02:17 Europe/Paris
Cc: Lars Ingebrigtsen <larsi <at> gnus.org>;
49075 <at> debbugs.gnu.org
>>> > Recently, icomplete-vertical-mode was added. But calling
>>> > (icomplete-vertical-mode 1) does not enable vertical completion,
>>> > unless one has called (icomplete-mode 1) first.
>>>
>>> I think that works as designed -- as the doc string says:
>>>
>>> "Toggle vertical candidate display in `icomplete-mode' or `fido-mode'."
>>>
>>> So the mode can't just switch on icomplete-mode by itself, because it
>>> works two different modes.
>>
>> Either icomplete-vertical-mode is a regular user option or icomplete-vertical-mode
>> should enable icomplete-mode too.
>This will require adding separate `fido-vertical-mode'.
I have put forward an alternative plan
--------
Currently (icomplete-mode 1) is necessary. And (icomplete-vertical-mode 1) is relatively new.
Emacs could ditch (icomplete-vertical-mode 1).
Instead, have a variable one can set (such functionality is already being done for completion-style).
Users can just put
(icomplete-mode 1)
(setq icomplete-vertical 1)
--------
To disable, one could use
(setq icomplete-vertical 0)
Moreover one can use negative numbers
(setq icomplete-vertical -1)
--------
To disable icomplete totally, use
(icomplete-mode 0)
--------
In summary there shall be no
(icomplete-vertical-mode 1)
or
(icomplete-vertical-mode 0)
--------
From: Juri Linkov <juri <at> linkov.net>
To: arvid-harnack <at> lavache.com
Subject: bug#49075: (icomplete-vertical-mode 1) not taking effect
Date: 20/06/2021 01:02:17 Europe/Paris
Cc: Lars Ingebrigtsen <larsi <at> gnus.org>;
49075 <at> debbugs.gnu.org
>> > Recently, icomplete-vertical-mode was added. But calling
>> > (icomplete-vertical-mode 1) does not enable vertical completion,
>> > unless one has called (icomplete-mode 1) first.
>>
>> I think that works as designed -- as the doc string says:
>>
>> "Toggle vertical candidate display in `icomplete-mode' or `fido-mode'."
>>
>> So the mode can't just switch on icomplete-mode by itself, because it
>> works two different modes.
>
> Either icomplete-vertical-mode is a regular user option or icomplete-vertical-mode
> should enable icomplete-mode too.
This will require adding separate `fido-vertical-mode'.
[Message part 2 (text/html, inline)]
This bug report was last modified 3 years and 337 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.