emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Support "\n" in icomplete-separator


From: Gregory Heytings
Subject: Re: [PATCH] Support "\n" in icomplete-separator
Date: Wed, 11 Nov 2020 17:37:07 +0000
User-agent: Alpine 2.22 (NEB 394 2020-01-19)


Alas, it is practically impossible to create a text that you can be sure will fit / be displayed entirely in the minibuffer window.

I think the core of the argument is that the prompt should fit on a single line. The problematic cases with icomplete-vertical only occur when the prompt itself spans multiple lines, but a prompt that spans multiple lines is already a problem, regardless of icomplete-mode, because there are setups where the minibuffer is only made of one line and is not allowed to grow.

That's the reason why "poor redisplay when prompt > 1 line" is a low-priority problem: the better solution is to shorten the prompt.


Hmmm... no, the problematic cases also occur for example when the prompt and the initial input span multiple lines. I'll send the recipe one more time:

(let (w bd)
  (setq w 60)
  (setq bd (concat (temporary-file-directory) (make-string w ?a) "/"))
  (dolist (d '("a" "b" "c" "d" "e")) (make-directory (concat bd d) t))
  (setq default-directory bd)
  (set-frame-height nil 20)
  (set-frame-width nil (+ (length bd) 10))
  (icomplete-mode)
  (setq icomplete-separator "\n")
  (call-interactively 'insert-file))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]