unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* How to create a small child-frame which only show two lines
@ 2017-12-07  0:04 tumashu
  2017-12-07  2:35 ` jun
  2017-12-07  9:27 ` How " martin rudalics
  0 siblings, 2 replies; 23+ messages in thread
From: tumashu @ 2017-12-07  0:04 UTC (permalink / raw)
  To: emacs-devel@gnu.org, tumashu@163.com


[-- Attachment #1.1: Type: text/plain, Size: 1403 bytes --]

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))

--------------

[-- Attachment #1.2: Type: text/html, Size: 2949 bytes --]

[-- Attachment #2: child-frame-usage.png --]
[-- Type: image/png, Size: 9282 bytes --]

^ permalink raw reply	[flat|nested] 23+ messages in thread

end of thread, other threads:[~2018-01-07  2:56 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-12-07  0:04 How to create a small child-frame which only show two lines tumashu
2017-12-07  2:35 ` jun
2017-12-07  2:45   ` tumashu
2017-12-07  9:27 ` How " martin rudalics
2017-12-08 10:12   ` martin rudalics
2017-12-08 12:05     ` tumashu
2017-12-09 10:35       ` martin rudalics
2017-12-11  0:21         ` tumashu
2017-12-11  6:42           ` martin rudalics
2017-12-11  8:29             ` tumashu
2017-12-11 15:29               ` Eli Zaretskii
2017-12-12  0:43                 ` tumashu
2017-12-12  3:22                   ` Stefan Monnier
2017-12-12  8:56                     ` martin rudalics
2017-12-12 16:26                   ` Eli Zaretskii
2017-12-12 16:48                     ` Stefan Monnier
2017-12-12 17:19                       ` Eli Zaretskii
2018-01-07  2:56                 ` Feng Shu
2017-12-12  8:56               ` martin rudalics
2017-12-12 12:19                 ` Feng Shu
2017-12-12 17:05                 ` Eli Zaretskii
2017-12-13  8:50                   ` martin rudalics
2018-01-06 10:42                 ` Feng Shu

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).