GNU bug report logs - #44080
27.1; Display behavior of overlays `after-string` in resizable minibuffer frames

Previous Next

Package: emacs;

Reported by: Clemens <clemens.radermacher <at> posteo.de>

Date: Mon, 19 Oct 2020 18:40:02 UTC

Severity: normal

Found in version 27.1

Done: Clemens <clemens.radermacher <at> posteo.de>

Bug is archived. No further changes may be made.

Full log


Message #23 received at 44080 <at> debbugs.gnu.org (full text, mbox):

From: Clemens <clemens.radermacher <at> posteo.de>
To: martin rudalics <rudalics <at> gmx.at>, Eli Zaretskii <eliz <at> gnu.org>
Cc: 44080 <at> debbugs.gnu.org
Subject: Re: bug#44080: 27.1; Display behavior of overlays `after-string` in
 resizable minibuffer frames
Date: Tue, 20 Oct 2020 19:02:00 +0200
On the other hand if you think it is reasonable to do this in minibuffer 
frames by default you could also change the current behavior in place to 
avoid adding another option. I can't imagine a scenario this would break 
some other use case but who knows...For now I will recommend users to 
use the following workaround:

(define-advice fit-frame-to-buffer (:around (f &rest args) 
dont-skip-ws-for-mini-frame)
  (cl-letf (((symbol-function #'window-text-pixel-size)
             (lambda (win from to &rest args)
               (apply #'window-text-pixel-size
                      (append (list win from (if (and 
(window-minibuffer-p win) (eq t to)) nil to) args))))))
    (apply f args)))


BTW, the completion frameworks I was referring to are called selectrum 
and icomplete-vertical in case you were interested.






This bug report was last modified 4 years and 205 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.