From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Tomas Hlavaty Newsgroups: gmane.emacs.bugs Subject: bug#41737: 26.3; (window-text-pixel-size) in console Date: Sat, 06 Jun 2020 14:47:14 +0200 Message-ID: <87a71g1hv1.fsf@logand.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="33993"; mail-complaints-to="usenet@ciao.gmane.io" To: 41737@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jun 06 17:47:11 2020 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 1jhb2N-0008jS-Gu for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 06 Jun 2020 17:47:11 +0200 Original-Received: from localhost ([::1]:36088 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jhb2M-0000x0-4t for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 06 Jun 2020 11:47:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49398) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jhb2E-0000wo-Ev for bug-gnu-emacs@gnu.org; Sat, 06 Jun 2020 11:47:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:40775) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jhb2E-0006iU-4t for bug-gnu-emacs@gnu.org; Sat, 06 Jun 2020 11:47:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jhb2E-0003P9-2p for bug-gnu-emacs@gnu.org; Sat, 06 Jun 2020 11:47:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Tomas Hlavaty Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 06 Jun 2020 15:47:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 41737 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.159145840813061 (code B ref -1); Sat, 06 Jun 2020 15:47:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 6 Jun 2020 15:46:48 +0000 Original-Received: from localhost ([127.0.0.1]:52321 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jhb1z-0003Oa-JD for submit@debbugs.gnu.org; Sat, 06 Jun 2020 11:46:48 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:50942) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jhYEL-0002sk-2n for submit@debbugs.gnu.org; Sat, 06 Jun 2020 08:47:21 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36726) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jhYEK-0000YL-PM for bug-gnu-emacs@gnu.org; Sat, 06 Jun 2020 08:47:20 -0400 Original-Received: from logand.com ([37.48.87.44]:37444) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jhYEJ-0002ue-7g for bug-gnu-emacs@gnu.org; Sat, 06 Jun 2020 08:47:20 -0400 Original-Received: by logand.com (Postfix, from userid 1001) id 038BE1ACD9A; Sat, 6 Jun 2020 14:47:16 +0200 (CEST) X-Mailer: emacs 26.3 (via feedmail 11-beta-1 I) Received-SPF: pass client-ip=37.48.87.44; envelope-from=tom@logand.com; helo=logand.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/06/06 08:47:17 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-Mailman-Approved-At: Sat, 06 Jun 2020 11:46:46 -0400 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" Xref: news.gmane.io gmane.emacs.bugs:181620 Archived-At: Hi, (window-text-pixel-size) in console seems to be wrong. The width seems to the width of the (visible) window. The height seems to be number of lines in a file. However, when evaluated in notmuch thread, the cdr of the return value is a number which I cannot interpret (it is not number of lines in the buffer and it is now height of the visible window). Return the size of the text of WINDOW=E2=80=99s buffer in pixels. WINDOW must be a live window and defaults to the selected one. The return value is a cons of the maximum pixel-width of any text line and the maximum pixel-height of all text lines. I suppose that pixel in console is one character. the maximum pixel-width of any text line but this does not seem to be true. I have file with long line but it still returns number of visible columns. maximum pixel-height of all text lines It is not clean, what does that mean and the returned number doesn't seem to be useful for anything. Thanks, Tomas In GNU Emacs 26.3 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.10) Recent messages: Mark set Making completion list... (96 . 218) next-line: End of buffer [7 times] Mark set Quit Mark set Quit Mark set C-x C-g is undefined Configured using: 'configure --prefix=3D/nix/store/qc9ipxcjcf33izlavkbj3jsqvwfcf602-emacs-26.3 --disable-build-details --with-modules --with-x-toolkit=3Dgtk3 --with-xft CFLAGS=3D-DMAC_OS_X_VERSION_MAX_ALLOWED=3D101200' Configured features: XPM JPEG TIFF GIF PNG RSVG SOUND DBUS GSETTINGS GLIB NOTIFY LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM MODULES THREADS LIBSYSTEMD Important settings: value of $EMACSLOADPATH: /nix/store/bp2z6hf7yxcsygrr1pblbid3i9lh065v-emac= s-packages-deps/share/emacs/site-lisp: value of $LC_MONETARY: en_GB.UTF-8 value of $LC_NUMERIC: en_GB.UTF-8 value of $LC_TIME: en_GB.UTF-8 value of $LANG: en_GB.UTF-8 value of $XMODIFIERS: @im=3Dfcitx locale-coding-system: utf-8-unix Major mode: notmuch-show Minor modes in effect: gpm-mouse-mode: t global-magit-file-mode: t magit-auto-revert-mode: t global-git-commit-mode: t async-bytecomp-package-mode: t shell-dirtrack-mode: t diff-auto-refine-mode: t show-paren-mode: t tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t buffer-read-only: t column-number-mode: t line-number-mode: t visual-line-mode: t transient-mark-mode: t Load-path shadows: /run/current-system/sw/share/emacs/site-lisp/password-store hides /nix/stor= e/bp2z6hf7yxcsygrr1pblbid3i9lh065v-emacs-packages-deps/share/emacs/site-lis= p/elpa/password-store-20190929.1627/password-store /nix/store/bp2z6hf7yxcsygrr1pblbid3i9lh065v-emacs-packages-deps/share/emacs= /site-lisp/site-start hides /nix/store/qc9ipxcjcf33izlavkbj3jsqvwfcf602-ema= cs-26.3/share/emacs/site-lisp/site-start /nix/store/bp2z6hf7yxcsygrr1pblbid3i9lh065v-emacs-packages-deps/share/emacs= /site-lisp/elpa/auth-source-pass-20191126.1242/auth-source-pass hides /nix/= store/qc9ipxcjcf33izlavkbj3jsqvwfcf602-emacs-26.3/share/emacs/26.3/lisp/aut= h-source-pass /nix/store/bp2z6hf7yxcsygrr1pblbid3i9lh065v-emacs-packages-deps/share/emacs= /site-lisp/elpa/let-alist-1.0.6/let-alist hides /nix/store/qc9ipxcjcf33izla= vkbj3jsqvwfcf602-emacs-26.3/share/emacs/26.3/lisp/emacs-lisp/let-alist Features: (shadow emacsbug vc-git network-stream starttls url-http tls gnutls url-gw nsm url-cache url-auth mailalias sendmail feedmail sort gnus-alias mail-extr mule-util misearch multi-isearch notmuch-jump t-mouse term/linux elec-pair finder-inf info pdf printing ps-print ps-print-loaddefs ps-def lpr unoffice framebuffer hydra lv dumb-jump popup f s elfeed-show elfeed-search magit-bookmark bookmark elfeed-csv elfeed elfeed-curl elfeed-log elfeed-db elfeed-lib xml-query email-eww cltl clhs notmuch hl-line notmuch-hello notmuch-tree notmuch-show notmuch-print notmuch-crypto notmuch-mua notmuch-message notmuch-draft notmuch-maildir-fcc notmuch-address notmuch-company notmuch-parser notmuch-wash coolj notmuch-query goto-addr icalendar diary-lib diary-loaddefs notmuch-tag notmuch-lib notmuch-compat mm-view mml-smime smime dig eww-lnum eww mm-url gnus nnheader wid-edit url-queue url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util mailcap shr svg xml dom magit-submodule magit-obsolete magit-blame magit-stash magit-reflog magit-bisect magit-push magit-pull magit-fetch magit-clone magit-remote magit-commit magit-sequence magit-notes magit-worktree magit-tag magit-merge magit-branch magit-reset magit-files magit-refs magit-status magit package url-handlers url-parse auth-source url-vars magit-repos magit-apply magit-wip magit-log which-func imenu magit-diff smerge-mode magit-core magit-autorevert autorevert filenotify magit-margin magit-transient magit-process magit-mode git-commit transient magit-git magit-section magit-utils crm log-edit message rmc puny dired dired-loaddefs rfc822 mml mml-sec password-cache epa derived epg epg-config gnus-util rmail rmail-loaddefs mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 mm-util ietf-drums mail-prsvr mailabbrev mail-utils gmm-utils mailheader pcvs-util add-log with-editor cl-extra help-mode async-bytecomp async shell server subr-x dash diff-mode ob-ledger org-element avl-tree generator org org-macro org-footnote org-pcomplete pcomplete org-list org-faces org-entities org-version ob-emacs-lisp ob ob-tangle org-src ob-ref ob-lob ob-table ob-keys ob-exp ob-comint ob-core ob-eval org-compat org-macs org-loaddefs format-spec find-func cal-menu calendar cal-loaddefs paredit edmacro kmacro slime-asdf grep slime-fancy slime-trace-dialog slime-fontifying-fu slime-package-fu slime-references slime-compiler-notes-tree advice slime-scratch slime-presentations bridge slime-macrostep macrostep slime-mdot-fu slime-enclosing-context slime-fancy-trace slime-fancy-inspector slime-fuzzy slime-c-p-c slime-autodoc slime-editing-commands slime-repl slime-parse slime compile etags xref cl-seq project eieio eieio-core eieio-loaddefs arc-mode archive-mode noutline outline easymenu pp comint ansi-color ring hyperspec thingatpt browse-url slime-autoloads picolisp tsm easy-mmode cl-macs cl time-date paren cus-start cus-load seq byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib disp-table tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame 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 charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads dbusbind inotify dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 351465 36274) (symbols 48 43865 6) (miscs 40 3116 3771) (strings 32 115935 3694) (string-bytes 1 4549539) (vectors 16 43596) (vector-slots 8 821982 19876) (floats 8 398 374) (intervals 56 4673 304) (buffers 992 21))