From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ergus via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#60966: 30.0.50; Emacs -nw on msys2 is not clearing the terminal Date: Fri, 20 Jan 2023 17:40:17 +0100 Message-ID: <87v8l1p3bi.fsf@aol.com> References: <87v8l1p3bi.fsf.ref@aol.com> Reply-To: Ergus Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24428"; mail-complaints-to="usenet@ciao.gmane.io" To: 60966@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jan 20 17:41:31 2023 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 1pIuSH-0006CS-Ow for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 20 Jan 2023 17:41:30 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pIuRx-0007kG-U3; Fri, 20 Jan 2023 11:41:09 -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 1pIuRr-0007jy-SM for bug-gnu-emacs@gnu.org; Fri, 20 Jan 2023 11:41:05 -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 1pIuRq-00066u-PX for bug-gnu-emacs@gnu.org; Fri, 20 Jan 2023 11:41:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pIuRq-0001jW-L9 for bug-gnu-emacs@gnu.org; Fri, 20 Jan 2023 11:41:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Ergus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 20 Jan 2023 16:41:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 60966 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.16742328386620 (code B ref -1); Fri, 20 Jan 2023 16:41:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 20 Jan 2023 16:40:38 +0000 Original-Received: from localhost ([127.0.0.1]:46971 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pIuRR-0001if-T4 for submit@debbugs.gnu.org; Fri, 20 Jan 2023 11:40:38 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:45512) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pIuRQ-0001iX-53 for submit@debbugs.gnu.org; Fri, 20 Jan 2023 11:40:36 -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 1pIuRP-0007i5-T0 for bug-gnu-emacs@gnu.org; Fri, 20 Jan 2023 11:40:35 -0500 Original-Received: from sonic305-2.consmr.mail.bf2.yahoo.com ([74.6.133.41]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pIuRL-0005vl-TJ for bug-gnu-emacs@gnu.org; Fri, 20 Jan 2023 11:40:34 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aol.com; s=a2048; t=1674232828; bh=mUT2xnmt3Cn0k2qKw8VIu0Hgw77I5ZXwGNUPVkfcOUs=; h=From:To:Cc:Subject:Date:References:From:Subject:Reply-To; b=MpbTEDxr1YSExsBAPXr1bZ4ZXtmbT1bHiZJgwKLplsaBOF4gliBSaSCK028rBlojRVYdwUp4x/ze8gccu04pnlyPCJJcUYRwZBN5PIzmQwPdoN1P5W0GgXJ4FBLmY64MlGjPLIHQkI6X17bypVokGM6Xx8OLFNZNeiO1Zn9ppni3ACOR8RBm0GZV9gT5cpSjWpGtaHQ1MXwTKftCi6bymT+lqMH01/Kpm3Y4IEWxm4+qi4gB79v5Vi5Iq4653u+Pe1mrIJ/WDZ5oWyiiYdW2lnrgAEQLFMshDiGH204KfXS/lipstNJNWeeYsdYSbpVW9RqrbVC+Bq+3klzSGp1mxg== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1674232828; bh=A8sWI12dJ78NyLR3vZn7QxJlZ6xEZsv+8sWC0KHdARp=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=R6g237zALxwJsHpBdAIS9dI+rJSqzFEAlldEN+9YAiQwc5pfz2U7fEipWONTbuATNm38xfeaV4XLXsoo04do/pBMXtPPvpkhui4NItMf8/mAONym/DoEbb//NwVnBfLNSK5jCQ8z6l7yvD/7BMPLDsJH0zRg2dmtAY/UqHYQMmPCcKJz2fSH8XM3WD6cx2DdOGebtSdg2dNW5vnp2KZDbWLNu0x8mmUHBWTXzhMOaQXdA438Z6MROaTrADQxuj6mI5uhStt34rxylHtOnDAn2FGJAD9gcSdEmza4U1dfAid2TvzIox8/lI1P4QRZSjnHWrSltS97A8JYCaZJntQfOA== X-YMail-OSG: 7z312TIVM1ljQo_7JQ1hU2VlHT_WwloIz50dd438nk0SZO_HufFWKXe2okz6Q1_ KXnGE8hqeQBBYvQgtXyGQuVDh40Hs0OD51KrqFLUcYdOp05hCIu.mFScMDGYUm9LHrlVY5NeAhRs qUAffIojOXuFDqjYmfA0VdZbxkTuPnaC.BCZ5bgIOXK3789NsFzKIST92uepqxY40rzt2HXumMfs kP3NrsE0wvGusifBt.tTkbhH5cEDvpNMEgE6N6aszHKNkL1UHtQ5YxGmuDFzI1u_bHXYEPVK0NKw VQZw99u.HAwqx9F8tvnOw.AlpLDXkVbJWQifXngxtGti2Uwb66LRJJ2rcIXJ553mSWMNqj5jeHxn zVR2_s0vlJ8HTPOqRftPllca2GRQRQSaL84OobIXZPX_enGmgByPDLcKRNCxStjVDtgKEv3was.V R6i95AiWZ.CJzuUQ1a7kJgczerMhBGYT3HRpvmoL0A3WNX.fQQYHDGn_ZA9jzpOK4sYYtxJx_8A1 rHhFDhtYH.3UsjAnuIpCcck5AWqDtNtib784JqNxqOatmkZMQd9Pqsb43eD9Rumq9_Q_ys59FwLu 4oOvCXxx1es6x0yARYS30el7UD2rlCn_nT7HK0x7mL3mBw0ExxGyYjGSXjRTJzdEbItu0CCp7foC s773eRJcBUesIuhs0XHoz53VRX7hjjNvMI3a.ZOdVG8U5QAAW8LpFh1u2NPhrLnX5rO2.npZnRWU L_pij5KUMcpOP14nWkq4C_vinRgKkl684JPcZSuAOALErBJpZ0UmY1xQhqVfNZk9qesY_ZAPZCoe 8n0vJuG3IFI280QajJYetvKPvkNRMrRoXxb_Eddi.Q X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic305.consmr.mail.bf2.yahoo.com with HTTP; Fri, 20 Jan 2023 16:40:28 +0000 Original-Received: by hermes--production-ir2-6bd6c4cd5f-5lt5n (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID ce2f7097186e2a24f76be493afcd5241; Fri, 20 Jan 2023 16:40:23 +0000 (UTC) X-Mailer: WebService/1.1.21062 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.aol Received-SPF: pass client-ip=74.6.133.41; envelope-from=spacibba@aol.com; helo=sonic305-2.consmr.mail.bf2.yahoo.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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_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:253786 Archived-At: Hi: Very recently I have built emacs on MS-Win...10 (please don't ask why). I used msys2 and followed this guide which seems to be very clear and simple: https://gist.github.com/nauhygon/f3b44f51b34e89bc54f8 After the build and installation, everything seemed correctly. runemacs.exe works as expected... and in gui it works fine (a bit slow to start... but maybe that is not so important now) However, when I tried: emacs -nw -Q I found that emacs was not clearing the terminal on startup. So, emacs is apparently starting correctly (status-line is visible and cursos), but the previous text is still on the screen overlapping with emacs and making it unusable. If opening a file, the file content is inserted bellow the old text, truncating the head of the file, but the cursor can move up to the top. Moving the cursor down (off the screen) the screen scrolls the file content, but the old text stays fix. After C-x C-c, emacs exists "correctly" but in this case the terminal is actually cleared (Like C-l usually do). Which somehow is not intended, because the terminal is expected to be recovered to it's previous status right? All this was with the current master and the emacs-29 branch. (I report this from a different emacs, so ignore the rest of the auto-inserted information) In GNU Emacs 30.0.50 (build 7, x86_64-pc-linux-gnu, GTK+ Version 3.24.36, cairo version 1.17.6) of 2023-01-05 built on Ergus Repository revision: 15fc7b3cde92e420f48dfe188251e6af4d832af5 Repository branch: master System Description: Arch Linux Configured using: 'configure --prefix=/home/ergo/.local/ --with-mailutils --with-json --with-x-toolkit=gtk3 --with-xft --with-modules --with-cairo --with-harfbuzz --with-native-compilation '--program-transform-name=s/^ctags$/ctags.emacs/'' Configured features: ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG JSON LCMS2 LIBSYSTEMD LIBXML2 MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER WEBP X11 XDBE XIM XINPUT2 XPM GTK3 ZLIB Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: global-auto-revert-mode: t electric-pair-mode: t flyspell-mode: t company-mode: t flycheck-mode: t diff-hl-margin-mode: t gtags-mode: t repeat-mode: t xterm-mouse-mode: t xclip-mode: t override-global-mode: t winner-mode: t save-place-mode: t delete-selection-mode: t savehist-mode: t global-display-fill-column-indicator-mode: t display-fill-column-indicator-mode: t global-display-line-numbers-mode: t display-line-numbers-mode: t which-key-mode: t eldoc-mode: t show-paren-mode: t mouse-wheel-mode: t file-name-shadow-mode: t context-menu-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t size-indication-mode: t column-number-mode: t line-number-mode: t indent-tabs-mode: t transient-mark-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t Load-path shadows: /mnt/casa/gits/emacs_clones/gtags-mode/gtags-mode hides /home/ergo/.config/emacs/elpa/gtags-mode-1.0/gtags-mode /home/ergo/.config/emacs/elpa/transient-20230107.1528/transient hides /home/ergo/.local/share/emacs/30.0.50/lisp/transient Features: (shadow sort mail-extr emacsbug message mailcap yank-media puny rfc822 mml mml-sec epa derived epg rfc6068 epg-config gnus-util text-property-search time-date mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils autorevert filenotify ffap thingatpt url-parse auth-source password-cache url-vars elec-pair flyspell-correct flyspell ispell company-semantic company-template company-capf company flycheck ansi-color json map find-func dash pcase diff-hl-margin diff-hl-dired dired-x dired dired-loaddefs diff-hl log-view pcvs-util vc-dir ewoc vc vc-dispatcher diff-mode cape compat comp comp-cstr warnings icons rx gtags-mode subr-x files-x xref project term/tmux term/xterm xterm init repeat xt-mouse xclip edmacro kmacro use-package-bind-key bind-key simple-16-theme winner ring saveplace delsel savehist easy-mmode display-fill-column-indicator display-line-numbers diminish which-key cl-extra help-mode use-package-diminish use-package-core disp-table info dumb-jump-autoloads highlight-indent-guides-autoloads company-lua-autoloads systemd-autoloads yasnippet-snippets-autoloads vundo-autoloads sudo-edit-autoloads cuda-mode-autoloads nginx-mode-autoloads crdt-autoloads company-auctex-autoloads groovy-mode-autoloads flycheck-rust-autoloads string-inflection-autoloads company-c-headers-autoloads protobuf-mode-autoloads lice-autoloads lorem-ipsum-autoloads nasm-mode-autoloads web-mode-autoloads caml-autoloads popup-autoloads magit-autoloads cmake-mode-autoloads company-nginx-autoloads d-mode-autoloads i3wm-config-mode-autoloads languagetool-autoloads request-autoloads ssh-config-mode-autoloads move-dup-autoloads clang-format-autoloads esup-autoloads dired-sidebar-autoloads gnuplot-autoloads phi-search-autoloads better-shell-autoloads fancy-compilation-autoloads arduino-cli-mode-autoloads flycheck-julia-autoloads which-key-autoloads evil-collection-autoloads annalist-autoloads multiple-cursors-autoloads ibuffer-sidebar-autoloads cape-autoloads git-commit-autoloads with-editor-autoloads pkgbuild-mode-autoloads neotree-autoloads modern-cpp-font-lock-autoloads company-reftex-autoloads dired-subtree-autoloads dired-hacks-utils-autoloads git-modes-autoloads flymake-nasm-autoloads arduino-mode-autoloads ede/auto eieio-base cl-seq eieio byte-opt bytecomp byte-compile eieio-core cl-macs gv cl-loaddefs cl-lib sphinx-mode-autoloads f-autoloads diff-hl-autoloads lua-mode-autoloads gtags-mode-autoloads mutt-mode-autoloads xclip-autoloads diminish-autoloads imenu-list-autoloads paradox-autoloads avy-zap-autoloads nftables-mode-autoloads csv-mode-autoloads ibuffer-vc-autoloads objed-autoloads iedit-autoloads vterm-toggle-autoloads avy-autoloads git-timemachine-autoloads transient-autoloads vterm-autoloads auctex-autoloads tex-site slime-autoloads emamux-autoloads flymake-quickdef-autoloads ibuffer-project-autoloads julia-mode-autoloads haskell-mode-autoloads shell-command+-autoloads notmuch-autoloads e2ansi-autoloads face-explorer-autoloads flycheck-autoloads tree-sitter-langs-autoloads tree-sitter-autoloads tsc-autoloads pkg-info-autoloads flx-autoloads opencl-mode-autoloads ptemplate-templates-autoloads ptemplate-autoloads yasnippet-autoloads company-web-autoloads web-completion-data-autoloads ibuffer-tramp-autoloads debbugs-autoloads cobol-mode-autoloads company-autoloads macrostep-autoloads flyspell-correct-autoloads epl-autoloads deadgrep-autoloads spinner-autoloads s-autoloads evil-autoloads goto-chg-autoloads vdiff-autoloads hydra-autoloads lv-autoloads magit-section-autoloads dash-autoloads compat-autoloads early-init rmc iso-transl tooltip cconv eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode 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 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 nadvice seq simple cl-generic indonesian philippine 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 abbrev obarray oclosure cl-preloaded button loaddefs theme-loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget keymap hashtable-print-readable backquote threads dbusbind inotify lcms2 dynamic-setting system-font-setting font-render-setting cairo move-toolbar gtk x-toolkit xinput2 x multi-tty make-network-process native-compile emacs) Memory information: ((conses 16 200641 35160) (symbols 48 15619 0) (strings 32 50917 7549) (string-bytes 1 1785762) (vectors 16 27252) (vector-slots 8 498229 36899) (floats 8 114 1017) (intervals 56 948 0) (buffers 984 12))