From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Yuwei Tian Newsgroups: gmane.emacs.bugs Subject: bug#59547: 28.2; The bottom border is not displayed when setting the pixel height of a child frame smaller than 1 line Date: Fri, 25 Nov 2022 00:31:39 +0800 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25541"; mail-complaints-to="usenet@ciao.gmane.io" To: 59547@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Nov 24 17:32:29 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oyF9J-0006Re-Mu for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 24 Nov 2022 17:32:29 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oyF8u-0003qg-Gb; Thu, 24 Nov 2022 11:32:04 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oyF8s-0003qW-Vb for bug-gnu-emacs@gnu.org; Thu, 24 Nov 2022 11:32:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oyF8s-0004a8-2a for bug-gnu-emacs@gnu.org; Thu, 24 Nov 2022 11:32:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oyF8r-0001i8-Pc for bug-gnu-emacs@gnu.org; Thu, 24 Nov 2022 11:32:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Yuwei Tian Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 24 Nov 2022 16:32:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 59547 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.16693075206565 (code B ref -1); Thu, 24 Nov 2022 16:32:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 24 Nov 2022 16:32:00 +0000 Original-Received: from localhost ([127.0.0.1]:59880 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oyF8p-0001hp-Ha for submit@debbugs.gnu.org; Thu, 24 Nov 2022 11:32:00 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:55090) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oyF8n-0001hh-R2 for submit@debbugs.gnu.org; Thu, 24 Nov 2022 11:31:58 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oyF8n-0003qB-M9 for bug-gnu-emacs@gnu.org; Thu, 24 Nov 2022 11:31:57 -0500 Original-Received: from mail-lf1-x136.google.com ([2a00:1450:4864:20::136]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oyF8l-0004Y4-M2 for bug-gnu-emacs@gnu.org; Thu, 24 Nov 2022 11:31:57 -0500 Original-Received: by mail-lf1-x136.google.com with SMTP id j16so3216303lfe.12 for ; Thu, 24 Nov 2022 08:31:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=O/2BIIoFtoYhyHCufIshhYWpVhZCv2D/0U3A8cgxQhc=; b=FDvzmKpmF05FSeCzo6K2N+2TQ/dIs7cnKXY3AHtMXph5HwNvvhQlSQeKGxEBkV5mbG zJ5QbaDiKNOklvhK/bJcjh6l75Q90Kvde7zZ72UfKHPDdk44OQHr4C2A9Bhfo0vL1bAi V6/Kyk4njXOxRmVpJDIzun/JCslL/EVyLyfr1+C8RINJ8guJ72CZhRN0H5qHxxV78LYa 0dBXxmiu3TZ3xVWnGULh+QaadJdW4LMocmHHx8SNS69cmZr8TThRDyuoXLEe3BUBEsUz UTNJYGu2qKVUQOxwFn7DIuGq7IvmLUNTwrSvgqpLLizMorLBanLcoCdBDsGAKyQRp/xL MU+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=O/2BIIoFtoYhyHCufIshhYWpVhZCv2D/0U3A8cgxQhc=; b=LutWUEDvU9kNhQm4xagJ7iFKXLKYm7hkVv0o8zTKKbk3pRhOHioofX04tqGruE+Mrp IjG0oRtN2JQTY9EbuB53AfqRrCnrx4BKMM0rW89JEgfAyUY6PL5VUdYPLhBACJiIuqMt Z7V/xTgrxJJa9wJ1JQYdbbrzLEBLoiqoe6JRQByFG+Iu73CPpl46fysjD5VFO9zAJJgu +pQuGTlg6dPVj9hAB5exNm7cMgdtXcCU3Iv6GWe2RwGmIaB6Z+5YdVKePCNxEUevf1af qvHOfE5DSUmKeYn8qmm99HPuoxi3p0VR5cZg4YCaOMSkOtadyV41IGZZ96fP91ddBSbT OXHQ== X-Gm-Message-State: ANoB5pkvTbhDmz7xmLxYMqUFcc2O3p3RqBcMl20Xy3zVFfFZvqaEQLf4 YAbSlKAIs8cii/NiI8sUuz/uNyt5rCul+XnHIZczXwexV8I= X-Google-Smtp-Source: AA0mqf4gdABxhotwIsFvlE3Ct9QzX69vzdkKSRgl2XFm0QTl0TXGoCcH+V3bq32tqg8Gg0cL1Ric0LZ9trM8QP+WgVk= X-Received: by 2002:a05:6512:3b12:b0:4b4:686b:4f7 with SMTP id f18-20020a0565123b1200b004b4686b04f7mr4839435lfv.256.1669307511034; Thu, 24 Nov 2022 08:31:51 -0800 (PST) Received-SPF: pass client-ip=2a00:1450:4864:20::136; envelope-from=fishtai0@gmail.com; helo=mail-lf1-x136.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:248881 Archived-At: Start Emacs from 'Emacs -Q' and make a child frame with the following code: (let ((window-min-height 1) (window-min-width 1)) (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) (child-frame-border-width . 1) (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) (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)) (set-face-background 'child-frame-border "red" my-child-frame) (set-window-buffer (frame-root-window my-child-frame) (get-buffer-create "*foo*")) (with-current-buffer "*foo*" (erase-buffer) (insert "line 1\n")) (fit-frame-to-buffer my-child-frame) (let ((window-min-height 0) (window-safe-min-height 0)) (set-frame-size my-child-frame (frame-pixel-width my-child-frame) (floor (* 0.5 (frame-pixel-height my-child-frame))) t))) The bottom border of the child frame is not displayed. Try to resize the child frame again: (let ((window-min-height 0) (window-safe-min-height 0)) (set-frame-size my-child-frame 50 8 t)) And select other window, then the bottom border of the child frame appears. This behavior seems to be platform dependent, but it is indeed problematic. It also seems to have problems on Emacs 28, Linux/X11. In GNU Emacs 28.2 (build 1, x86_64-apple-darwin22.1.0, NS appkit-2299.00 Version 13.0.1 (Build 22A400)) of 2022-11-18 built on fishtai0-macmini.local Windowing system distributor 'Apple', version 10.3.2299 System Description: macOS 13.0.1 Configured using: 'configure --disable-dependency-tracking --disable-silent-rules --enable-locallisppath=/usr/local/share/emacs/site-lisp --infodir=/usr/local/Cellar/emacs-plus@28/28.2/share/info/emacs --prefix=/usr/local/Cellar/emacs-plus@28/28.2 --with-xml2 --with-gnutls --without-dbus --without-imagemagick --with-modules --with-rsvg --with-ns --disable-ns-self-contained 'CFLAGS=-Os -w -pipe -march=nehalem -mmacosx-version-min=13 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk -DFD_SETSIZE=10000 -DDARWIN_UNLIMITED_SELECT' 'CPPFLAGS=-I/usr/local/opt/icu4c/include -I/usr/local/opt/openssl@1.1/include -I/usr/local/opt/readline/include -F/usr/local/Frameworks -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk' 'LDFLAGS=-L/usr/local/opt/icu4c/lib -L/usr/local/opt/openssl@1.1/lib -L/usr/local/opt/readline/lib -L/usr/local/lib -F/usr/local/Frameworks -Wl,-headerpad_max_install_names -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk'' Configured features: ACL GIF GLIB GMP GNUTLS JPEG JSON LCMS2 LIBXML2 MODULES NOTIFY KQUEUE NS PDUMPER PNG RSVG THREADS TIFF TOOLKIT_SCROLL_BARS XIM ZLIB Important settings: value of $LC_ALL: en_US.UTF-8 value of $LC_CTYPE: UTF-8 value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: ELisp/d Minor modes in effect: tooltip-mode: t global-eldoc-mode: t eldoc-mode: t show-paren-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t indent-tabs-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs rfc822 mml mml-sec epa derived epg rfc6068 epg-config gnus-util rmail rmail-loaddefs auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache json map text-property-search time-date subr-x seq byte-opt gv bytecomp byte-compile cconv mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader cl-loaddefs cl-lib sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils iso-transl tooltip eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/ns-win ns-win ucs-normalize mule-util term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice button loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads kqueue cocoa ns lcms2 multi-tty make-network-process emacs) Memory information: ((conses 16 53479 11176) (symbols 48 6556 1) (strings 32 18558 2150) (string-bytes 1 622619) (vectors 16 13162) (vector-slots 8 191879 9585) (floats 8 25 191) (intervals 56 508 34) (buffers 992 14))