I have try this variable, It can make a smaller frame, but when I use this frame to show a buffer
and use fit-frame-to-buffer to adjust frame's size. the adjusted frame will show two blank line's space.
I have try set mini-height to 2, but no effect,  can mode-line's space not be removed?





在 2017-12-07 10:35:50,"jun" <netjune@163.com> 写道:
Maybe you can bind the variable window-min-height to 2.




At 2017-12-07 08:04:12, "tumashu" <tumashu@163.com> wrote:
Hello,
      Emacs26's child-frame feature is very useful. I have created a candadite menu of
chinese input method with its help, and find that it is much fast than popup-el's menu
and comparable with minibuffer.

the only problem I faced it that:  I only need show 2 lines with child-frame while its mini
size is show 4 lines,  anyone suggest how to deal with this problem?

---------------
(setq my-child-frame
      (let ((after-make-frame-functions nil))
        (make-frame
         `((parent-frame . ,(window-frame))
           (no-accept-focus . t)
           (min-width  . t)
           (min-height . t)
           (border-width . 0)
           (internal-border-width . 0)
           (vertical-scroll-bars . nil)
           (horizontal-scroll-bars . nil)
           (left-fringe . 10)
           (right-fringe . 0)
           (menu-bar-lines . 0)
           (tool-bar-lines . 0)
           (line-spacing . 0)
           (unsplittable . t)
           (no-other-frame . t)
           ;;(undecorated . t)
           (undecorated . nil)
           (visibility . t)
           (cursor-type . nil)
           (minibuffer . nil)
           (width . 50)
           (height . 1)
           (no-special-glyphs . t)))))

(let ((window (frame-root-window my-child-frame)))
  (set-window-parameter window 'mode-line-format 'none)
  (set-window-parameter window 'header-line-format 'none))
--------------