From unknown Fri Jun 20 07:14:49 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#60966 <60966@debbugs.gnu.org> To: bug#60966 <60966@debbugs.gnu.org> Subject: Status: 30.0.50; Emacs -nw on msys2 is not clearing the terminal Reply-To: bug#60966 <60966@debbugs.gnu.org> Date: Fri, 20 Jun 2025 14:14:49 +0000 retitle 60966 30.0.50; Emacs -nw on msys2 is not clearing the terminal reassign 60966 emacs submitter 60966 Ergus severity 60966 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Fri Jan 20 11:40:38 2023 Received: (at submit) by debbugs.gnu.org; 20 Jan 2023 16:40:38 +0000 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 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 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 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 qUAffIojOXuFDqjYmfA0VdZbxkT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dWiV8lEiCxKf.kAlOzf1WC. 2BorKP7uIM6kmEgA1LkTaKurKcub8m4zPyuIXrrGcaQGxfkcABuj0R02xzVzzoU40r4mncbSWc5W WerObZcnVBuTHW9rLgv95MxN33066aIXzpxIMw4BAgYGyqC2DO3.nIPnDQpdKK7tPMfUKJhqrhwZ rMDJcE3gD7TYzFD4X5gVvFzrpLzcJhuxoCoVim6ww5vvhT1fECrFdWwAMe9UsxWcffkuWVtx8mRg qTwloeFm6Ikwi2EPCdH.4gfaE61qfLOsBK3LUAj8J4mhveKxMBmQhN.Qg3jiPpk4lUovVc1Hb.ob H1E_36NqpHkTaIsYipvwyD9ESeN18mZtK82r1YbnO4Uhku9CCZH1NuryKqwtyldTcai4tX3lFNSF AadTuDoMJggvsZ8P6LGacWe7jZO8fxF_aLXz03ILl5LaCa8qDALhHPDtmpl9Jl5O_ONDFJKhq25H xA_KlD3NyK0byBjY_yd2dB0jVHXxe.FMANDYsJ9Obv9RmWSxSLnHRuWmQuRSeFlqKzyrXtMC4PHa M36AVwgxD.htRmAAdsv65HROJjYjm0HwSMUQU1Nj_JvTe81Mwlj.4ldv3cU.VKJC6wevWPBTfiIz SFN2P3stfpQ4OaejEoL5vN2vTFbI4QciUs65R1eM8SrxEUZN.m1UaMYk548lSJm0_jfyFD3cvs1F W229en.ZVZUvsqvQbSmXFjzwRZZv9HhP69yoMViZRFBGHn7ST35PxjWDGwGt7WAQPwmCqN71O418 4deir4gylfAdA3LkcU_PBOmvRcFyVu0_cTSrsmGZ_vCRscS2pmhQGJnp5qc2Th0wZo7RWk3tnNaZ Qs8SqbgMe1ZXJWpEx077fHW7HAlqZTCRlgUeITe8E_Pur0eRpMubyBnVZ5Z_mWprH0KG2Y8cbui6 4kPaX0ejDU.szAF29k9eAAC6MjmZFfBg8Qk_X7fTjC._dZvwJpByE2PEqIpD6AMsXy2Oqj46U7g- - X-Sonic-MF: 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 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) From: Ergus To: bug-gnu-emacs@gnu.org Subject: 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> MIME-Version: 1.0 Content-Type: text/plain References: <87v8l1p3bi.fsf.ref@aol.com> X-Mailer: WebService/1.1.21062 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.aol Content-Length: 8380 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-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) 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)) From debbugs-submit-bounces@debbugs.gnu.org Fri Jan 20 14:17:26 2023 Received: (at 60966) by debbugs.gnu.org; 20 Jan 2023 19:17:27 +0000 Received: from localhost ([127.0.0.1]:47129 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pIwtC-0005vr-KZ for submit@debbugs.gnu.org; Fri, 20 Jan 2023 14:17:26 -0500 Received: from eggs.gnu.org ([209.51.188.92]:52780) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pIwtA-0005ve-OM for 60966@debbugs.gnu.org; Fri, 20 Jan 2023 14:17:25 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pIwst-0002L7-V7; Fri, 20 Jan 2023 14:17:19 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=6DCFSTweQ4PfA08qW6uRjpYQtSlsYJ+OnmUUm/S9Dwc=; b=NSlQx03G1fpa vlreeob1j4P60kDiuAQQp/bB09fH9mEJdyJlP4M5Du9Mb/agNqpMsmOFBBi+Oa40GLLAQKKEo3F44 6VQF5SPJsUZ76dAMJPK6/t6n5q23al/E79HtwEvjAtnOVjGbJCiNYnDZI5I2MGF62uOY2ej2rnBSl 7sa/0nVOCWiNi5m8ZYuo2ysrDk/XkM1ezq9vDgJhleZjs5T/3eOHiZwHOtYRdX4381rtkVufD+bH1 ETDKR97KHBHS8HJddmeF8wC/9ZMJGG9t4RkNUp4WSwDDuzfBB48NMaTvGyKkCH/+EEjBvmK+M9XPW 6+wQsTWAddzPJwt4yZ6wpw==; Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pIwsr-0001hO-Sf; Fri, 20 Jan 2023 14:17:06 -0500 Date: Fri, 20 Jan 2023 21:17:07 +0200 Message-Id: <83lelxm2x8.fsf@gnu.org> From: Eli Zaretskii To: Ergus In-Reply-To: <87v8l1p3bi.fsf@aol.com> (bug-gnu-emacs@gnu.org) Subject: Re: bug#60966: 30.0.50; Emacs -nw on msys2 is not clearing the terminal References: <87v8l1p3bi.fsf.ref@aol.com> <87v8l1p3bi.fsf@aol.com> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 60966 Cc: 60966@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > Date: Fri, 20 Jan 2023 17:40:17 +0100 > From: Ergus via "Bug reports for GNU Emacs, > the Swiss army knife of text editors" > > 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. What is "the terminal" from which you invoke "emacs -nw"? You should invoke it from cmd.exe (a.k.a. "Command Prompt") window, not from the MSYS2 mintty terminal. > 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. Emacs isn't that badly broken on Windows, including in -nw sessions. You should invoke it as a native Windows application, from the Command Prompt window, not as an MSYS2 application. From debbugs-submit-bounces@debbugs.gnu.org Mon Jan 23 17:45:29 2023 Received: (at 60966) by debbugs.gnu.org; 23 Jan 2023 22:45:29 +0000 Received: from localhost ([127.0.0.1]:55541 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pK5ZA-0003sq-ID for submit@debbugs.gnu.org; Mon, 23 Jan 2023 17:45:29 -0500 Received: from sonic312-21.consmr.mail.bf2.yahoo.com ([74.6.128.83]:34974) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pK5Z8-0003sW-6J for 60966@debbugs.gnu.org; Mon, 23 Jan 2023 17:45:26 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aol.com; s=a2048; t=1674513918; bh=eo1RYIBAUiy4B0RNhZ8Pjd2SzcLWWbsJYSEyWz6c/Uk=; h=Date:From:To:Cc:In-Reply-To:References:Subject:From:Subject:Reply-To; b=EEEfVDGxWQci5S7lMaWyFo4liSa9F+C5UiY4eXd0tzl1hiO1tLuNXKYU84fpiQSB+lN63l9rh/KTnInpP7De9dZM8viAHIWYILMp6snd+5Djs2bQCP82taZe/aZCcNI2Yqp/Jawxu2436L2r8IeBa9yCY3RCOZibGlPynvrS8pcheZ9FisfvURGIwxgUPTvVH3zyHtd7w0Xf5YObyldXiHKpeCzA6tN8nx9cUCK22o/Hb3z8gAkUvXOxVx8gnq70WIt8GGjIWXqpf0a8j3sGcbXbplLD7UFzOCoYVPC66ed+L/KGFG5aYgooEMcWmhpI+VbCH9uAba4m938n4Z6nrA== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1674513918; bh=eeEx2GyF/G8tl8HBHJN7/sLoT3wNlOsrctXfRKEZVxB=; h=X-Sonic-MF:Date:From:To:Subject:From:Subject; b=pjEdVBz/otrqVXFerhsglcXlcnVOYUDZzYbArtBp8W1Efm4tIp/4ZnYunDAVq1CogUpjSdhpcJVunopBpxb9laAAHSQ6Ok8zEgG9/VhSt8N7UsIycvXcVEhAHcSZo+RjJ2vvFDiHJCmolIDT6Jcl+ODkHp2Dn5LHedQW5dL45c4HWRfXsHnX11QXdW/rcCcxuAS1XD4Yps+c6qiAgDYKpME/fwaos5VIg0zksOyLfqPyA1dlhWUrOfIZXYLb71iCYELlvfOnT7VmdzabtR8r1mCfuUaySxvF8y5WVZ075U5wxpVA6rivz6Gt4xQ7PxhUwOL9oKDUJ0XYrodK6j67Mg== X-YMail-OSG: n2.XFwAVM1kNk2IX.8SsgwT41AO3NbcmWL2ssFvveKt.GXCiptEbQwSYimR1Hsn ReL_XV.Y3CeaB.rGLV87EvduclYlqjKdMRfVdUCeWljqioQ9p5gkRmHO_JMsIPqj68TSPw1sWuAm SXKXfxOo3GS8HrihdKRxK0_cruTrQkAWyzlna5wuo55d2nJxx2HUSLxtN_wBzvC.RpnctnYrnkkK eDAmQWyRcVCHqKUe7ZojD7YCjJVEVm7nKvs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YRQrfbcQXziWZiPVM1syjh5vdmnUeIUgny5d.zRF9rSImb Gc68XjLpPGOZ_ZP4k3JisvUlsx24E_NQ9v4riZ0NV6alawFttMcfnj0VTybN210xgnZvDz2tDsjx vd2y2m89W_8yYUxByOqfe0iE42amfIeZpAThg6BZ5GEv9yUC0u6.ViQf6jiyZBFT0y0zZCU7v4_t OSWhY5GnXIzRZDS5Yiby0kaUtQ6R8rujykAzQVWx_kLsQnnYSVPKolUOU2b3dBJzObLgwoE2o6DQ HIr8N9eTtLsoBJMp75nKBrFpDjAmU5oeY0diGfWrOOwoPb3KHLiohIsgetcVVXnsP8W6mwTy9o3L c7Kot_a6YjGmEzVPgDxyKafQCsGwKWeSxiis8F3232tehRw.TmO73SN.J2iatGmS1Ty8.5d71ZnQ _wx.ek_DZbeuwBGmoMRF9XEhApd81CLjppmUmTJ.5YRdDM7fYo8CVzNxsL6w._rr3TEYLDsg0_QP 7MQccFP3DxvR8eGRtAE.1J_r3j77JbRvb8W8n5hxMPm99p.Y.IXP2qCHNPX0vKVdXsViw2riUUZN PcZpIzpK9bFRnaJ7nKE0zKa6siaEKnTEiDMfej0zGMhxbTKoaIj9eRzBjS0T2TTkgkPMwYvGRgbZ ejD39DaSmXNPHyZ5Lv1d6kYRyEg5QaGdNfP6qDs33ljuKPPTWeZGGdIu89fb6xbt7dGXOjSzT_Dt 45h87RWFITnEXZJJ7viqfhEwluc2.agzqoDZ5gBr8olIGv1u42W7RU.0AqIKg7GEo1UE3h3Rtiv. MdYi1k.llOMLPJhQZ1jTB1WcE4gnVZ4BW2ap3ZJlzCH1aQuclKIVNwtQ01RKddxmRwKf0L9wFWmS 2Tm0nmn9shA4TepOt256GbRAB1HruRGeLqQ8RXvsc3jFw11AZqYtSaNccCuLa_NgIeBRB_EtSEQ- - X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic312.consmr.mail.bf2.yahoo.com with HTTP; Mon, 23 Jan 2023 22:45:18 +0000 Date: Mon, 23 Jan 2023 22:45:15 +0000 (UTC) From: Ergus To: Eli Zaretskii Message-ID: <163867763.625356.1674513915222@mail.yahoo.com> In-Reply-To: <83lelxm2x8.fsf@gnu.org> References: <87v8l1p3bi.fsf.ref@aol.com> <87v8l1p3bi.fsf@aol.com> <83lelxm2x8.fsf@gnu.org> Subject: Re: bug#60966: 30.0.50; Emacs -nw on msys2 is not clearing the terminal MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_625355_1018060105.1674513915220" X-Mailer: WebService/1.1.21096 AolMailNorrin Content-Length: 8751 X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 60966 Cc: "60966@debbugs.gnu.org" <60966@debbugs.gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) ------=_Part_625355_1018060105.1674513915220 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi Eli: Thanks, now I understand the problem... it is a bit weird, but OK. Today I also tried the nt/INSTALL.64 steps and somehow I got an issue about= #include : No such file or directory. I repeated the steps in the guide carefully but I only get the same error a= fter make. --------------------------------- In file included from ../src/config.h 3043 ../../source/lib/../src/conf_post.h:38:11: fatal error: ms-w32.h: No such f= ile or directory=C2=A0 =C2=A038 | # include =C2=A0 =C2=A0 =C2=A0 = =C2=A0 |compilation terminated ---------------------------------- Any idea? I am using the mingw64 terminal to build as the guide says... so = maybe there is anything wrong in my envirnment? Thanks in advance,Ergus On Friday, January 20, 2023 at 08:17:23 PM GMT+1, Eli Zaretskii wrote: =20 =20 > Date: Fri, 20 Jan 2023 17:40:17 +0100 > From:=C2=A0 Ergus via "Bug reports for GNU Emacs, >=C2=A0 the Swiss army knife of text editors" >=20 > Very recently I have built emacs on MS-Win...10 (please don't ask >=C2=A0 why). I used msys2 and followed this guide which seems to be very c= lear >=C2=A0 and simple: >=20 > https://gist.github.com/nauhygon/f3b44f51b34e89bc54f8 >=20 > 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) >=20 > However, when I tried: >=20 > emacs -nw -Q >=20 > I found that emacs was not clearing the terminal on startup. What is "the terminal" from which you invoke "emacs -nw"?=C2=A0 You should invoke it from cmd.exe (a.k.a. "Command Prompt") window, not from the MSYS2 mintty terminal. > 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. >=20 > Moving the cursor down (off the screen) the screen scrolls the file > content, but the old text stays fix. >=20 > 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? >=20 > All this was with the current master and the emacs-29 branch. Emacs isn't that badly broken on Windows, including in -nw sessions. You should invoke it as a native Windows application, from the Command Prompt window, not as an MSYS2 application. =20 ------=_Part_625355_1018060105.1674513915220 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi Eli:

Thanks, now I understand the= problem... it is a bit weird, but OK.

Today I also tried= the nt/INSTALL.64 steps and somehow I got an issue about #include <ms-w= 32.h>: No such file or directory.

I repeated the steps= in the guide carefully but I only get the same error after make.

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

In file incl= uded from ../src/config.h 3043
=
../../source/lib/../src/co= nf_post.h:38:11: fatal error: ms-w32.h: No such file or directory
   38 | # include <ms-w32.h= >
       = ; |
compilation terminated

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

Any idea= ? I am using the mingw64 terminal to build as the guide says... so maybe th= ere is anything wrong in my envirnment?

Thanks in advan= ce,
Ergus

<= div>

=20
=20
On Friday, January 20, 2023 at 08:17:23 PM GMT+1, Eli Z= aretskii <eliz@gnu.org> wrote:


> Date: Fri, 20 Jan 2023 17:40:17 = +0100
> From:  Ergus via "Bug reports for GNU Ema= cs,
>  the Swiss army knife of text editors" <= bug-gnu-emacs@gnu.org>
>
> Very recently I have built emacs on MS-Win...10 (please d= on'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 installatio= n, everything seemed
> correctly. runemacs.exe works a= s expected... and in gui it works fine (a
> bit slow t= o start... but maybe that is not so important now)
> <= br clear=3D"none">> However, when I tried:
>
> emacs -nw -Q
>
&g= t; I found that emacs was not clearing the terminal on startup.

What is "the terminal" from which you invoke "ema= cs -nw"?  You should
invoke it from cmd.exe (a.k.a. = "Command Prompt") window, not from the
MSYS2 mintty termi= nal.

> So, emacs is apparently starting c= orrectly (status-line is visible
> and cursos), but th= e previous text is still on the screen
> overlapping w= ith 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 th= e 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 re= covered to it's previous
> status right?
>
> All this was with the current master and = the emacs-29 branch.


Emacs isn't= that badly broken on Windows, including in -nw sessions.
You should invoke it as a native Windows application, from the Command
Prompt window, not as an MSYS2 application.

------=_Part_625355_1018060105.1674513915220-- From debbugs-submit-bounces@debbugs.gnu.org Tue Jan 24 08:16:43 2023 Received: (at 60966) by debbugs.gnu.org; 24 Jan 2023 13:16:43 +0000 Received: from localhost ([127.0.0.1]:56126 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pKJAJ-0004Pl-2c for submit@debbugs.gnu.org; Tue, 24 Jan 2023 08:16:43 -0500 Received: from eggs.gnu.org ([209.51.188.92]:56704) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pKJAG-0004PW-Pb for 60966@debbugs.gnu.org; Tue, 24 Jan 2023 08:16:41 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pKJAB-0004ED-8A; Tue, 24 Jan 2023 08:16:35 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=sTDYZrgioZD/YExb/h+5D1/MCfQfm0P8uMw1dTSBTDg=; b=NQ/Er1epndM5 AFHYM41kP7x6XbpnYge+IHyo0dcVH+3jaxyY59Q/aaFkht5wZbTHMKB8kyfZTJgiQD+N4GqX03Zcy +cy+f9R2IGdAMzsnVBrK4DKJJCSStN+dD8s9m6gjvoOXy0u5sPu0HO/iVqJ0XsF576QjTPSIhEWw8 ezuoqNQ3qY4nZXc44SyR1c/GtKHM6Ji7H3eETWtvtlgJCkZqdX106C/wuytHixCdvBFXwm93TtAj6 twaKP0eXneyap17fBL5PkDYqRSumA+Rq1NltT5Y8GUCtNdRUhWQYNAymem8R5E5GJypIWPmjQ/5Ep A+chyMX5CjiqFtCxQ5nuog==; Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pKJAA-0001S8-Hf; Tue, 24 Jan 2023 08:16:34 -0500 Date: Tue, 24 Jan 2023 15:16:46 +0200 Message-Id: <83sfg0gji9.fsf@gnu.org> From: Eli Zaretskii To: Ergus In-Reply-To: <163867763.625356.1674513915222@mail.yahoo.com> (message from Ergus on Mon, 23 Jan 2023 22:45:15 +0000 (UTC)) Subject: Re: bug#60966: 30.0.50; Emacs -nw on msys2 is not clearing the terminal References: <87v8l1p3bi.fsf.ref@aol.com> <87v8l1p3bi.fsf@aol.com> <83lelxm2x8.fsf@gnu.org> <163867763.625356.1674513915222@mail.yahoo.com> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 60966 Cc: 60966@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > Date: Mon, 23 Jan 2023 22:45:15 +0000 (UTC) > From: Ergus > Cc: "60966@debbugs.gnu.org" <60966@debbugs.gnu.org> > > Thanks, now I understand the problem... it is a bit weird, but OK. Please tell what you understood and what you think is weird. I'd like to make sure there's no misunderstanding here. > Today I also tried the nt/INSTALL.64 steps and somehow I got an issue about #include : No > such file or directory. > > I repeated the steps in the guide carefully but I only get the same error after make. > > --------------------------------- > > In file included from ../src/config.h 3043 > > ../../source/lib/../src/conf_post.h:38:11: fatal error: ms-w32.h: No such file or directory > 38 | # include > | > compilation terminated Please show the full compilation command, it sounds like some compiler switches might be missing. You can request display of full commands during the build if you say make V=1 The configure script arranges for MinGW builds to add the -I../nt/inc option to the compilation command line, which is where the ms-w32.h header lives. > Any idea? I am using the mingw64 terminal to build as the guide says... so maybe there is anything wrong in > my envirnment? If the above doesn't help, tell me how you configured the build: which configure command you used and in whether your build is in the source directory or outside of it. Also, if you previously did another build in the same tree, you need to clean the tree ("make extraclean"). From debbugs-submit-bounces@debbugs.gnu.org Tue Jan 24 10:24:43 2023 Received: (at 60966) by debbugs.gnu.org; 24 Jan 2023 15:24:43 +0000 Received: from localhost ([127.0.0.1]:57424 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pKLAB-0007xD-3Q for submit@debbugs.gnu.org; Tue, 24 Jan 2023 10:24:43 -0500 Received: from sonic316-11.consmr.mail.bf2.yahoo.com ([74.6.130.121]:38909) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pKLA9-0007wy-BQ for 60966@debbugs.gnu.org; Tue, 24 Jan 2023 10:24:41 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aol.com; s=a2048; t=1674573874; bh=xsSW7jGQ92z89MZ8mrr0UeH+nkpoby6nSidb7KctYXA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From:Subject:Reply-To; b=lirW/x5MNW296WBPsZujf3EAb6/TQDBEEyeGuarJ/NjLMw8rMe+V7lv5qe/FH/9vM/qHFA0bUrM6Z3OhtzWVvbX6Y66wI/VQQQA/jnSXbMVgYm2Hx3IeeBAIiUu+/gQh5pdsZkNrwnpocC3uWq1H0eV9hkY9zYI1PjFTcsj2IKx20AEnS/309SQdJMTWojWif9X6Bd3VghrMwrhpv2/rt58RvPxEL35WSN4X/oGXwUHRZoQhdQv80MOq93J68wumeGq6DtJk6P3AQMVMVlPUsoRkBri7jeFYE8Am9zpU9O/YeA8MNzjQwTtOe9Ko1s3khz5LgX5aafbRef1E8OSfUg== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1674573874; bh=ZTWt4x5nrR0MciVtLuXA6ybs0rgdHG3l+5tQxCLkl98=; h=X-Sonic-MF:Date:From:To:Subject:From:Subject; b=fL7yu7t2DKpSDHPTjeCWT5+ouG8F01GADMNEMuXAJ8+TgTnm0BJj2OR9iuqw9gi/ydXl5x03A0p6gl2u0rBP92XBK+hjImdf6aZ5Vq7nH3TnGfshb9YEG6ha9Mb/hR7iZILtiy1zh7du5AXvwl4TOq8lZi07PdDw+sjbF/9J9vVERP2iePTbv4f6QSec7rUzqDil+fjavsuxpnA9NSknBWupaKCrsxpwQCbDBcB4ClDvZzLvcEhtkFbMlQGDV50/g+IUM0OBbn6u3T2g3+HDiHAX7R6yCVF63znGrZy4KuLr6IxKtvh4Gh6V+HUDurazKRmO8nkEKH0yXe9Xi6uhVA== X-YMail-OSG: D1wc7bkVM1m4PO70POSFqoSaZtAoU5z4z35br.mwz1bzbeTkKaeGwNpGi0SYSse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5aao7YiERYAjZSSVZm0tAH9W2MieB3jO3eZZBw4ezdRDya BDg-- X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic316.consmr.mail.bf2.yahoo.com with HTTP; Tue, 24 Jan 2023 15:24:34 +0000 Received: by hermes--production-ir2-6bd6c4cd5f-tswtd (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 3a660490f257e66e5f8034c66b5ebe61; Tue, 24 Jan 2023 15:24:31 +0000 (UTC) Date: Tue, 24 Jan 2023 16:24:29 +0100 From: Ergus To: Eli Zaretskii Subject: Re: bug#60966: 30.0.50; Emacs -nw on msys2 is not clearing the terminal Message-ID: <20230124152429.7ihf3y5naana7khr@Ergus> References: <87v8l1p3bi.fsf.ref@aol.com> <87v8l1p3bi.fsf@aol.com> <83lelxm2x8.fsf@gnu.org> <163867763.625356.1674513915222@mail.yahoo.com> <83sfg0gji9.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <83sfg0gji9.fsf@gnu.org> X-Mailer: WebService/1.1.21096 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.aol Content-Length: 2478 X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 60966 Cc: 60966@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) On Tue, Jan 24, 2023 at 03:16:46PM +0200, Eli Zaretskii wrote: >> Date: Mon, 23 Jan 2023 22:45:15 +0000 (UTC) >> From: Ergus >> Cc: "60966@debbugs.gnu.org" <60966@debbugs.gnu.org> >> >> Thanks, now I understand the problem... it is a bit weird, but OK. > >Please tell what you understood and what you think is weird. I'd like >to make sure there's no misunderstanding here. > Hi Eli: It is just a bit weird that emacs shouldn't be called from within the msys terminal, maybe a warning message or something may help here. It is not terrible, just a bit confusing. >> Today I also tried the nt/INSTALL.64 steps and somehow I got an issue about #include : No >> such file or directory. >> >> I repeated the steps in the guide carefully but I only get the same error after make. >> >> --------------------------------- >> >> In file included from ../src/config.h 3043 >> >> ../../source/lib/../src/conf_post.h:38:11: fatal error: ms-w32.h: No such file or directory >> 38 | # include >> | >> compilation terminated > >Please show the full compilation command, it sounds like some compiler >switches might be missing. You can request display of full commands >during the build if you say > > make V=1 > >The configure script arranges for MinGW builds to add the -I../nt/inc >option to the compilation command line, which is where the ms-w32.h >header lives. I tried this and I see that the -I line is added correctly, but the directory where I am building is inside 'Documents and Settings' which has spaces and I don't see any quote or \ escape. gcc -c -mtune=generic -DUSE_CRT_DLL=1 -I /c/Documents and Settings/T008593/Downloads/emacs/build/../source/nt/inc -mtune=generic -MMD -MF deps/fingerprint.d -MP -g3 -O2 -gdwarf-2 -I. -I../src -I../../source/lib -I../../source/lib/../src -DGL_COMPILE_CRYPTO_STREAM -o fingerprint.o ../../source/lib/fingerprint.c So, probably is this the problem?? >> Any idea? I am using the mingw64 terminal to build as the guide says... so maybe there is anything wrong in >> my envirnment? > >If the above doesn't help, tell me how you configured the build: which >configure command you used and in whether your build is in the source >directory or outside of it. Also, if you previously did another build >in the same tree, you need to clean the tree ("make extraclean"). Just to mention, the build is outside of sources. I made all the clean as usual like on GNU/Linux. Thanks, Ergus From debbugs-submit-bounces@debbugs.gnu.org Tue Jan 24 11:57:51 2023 Received: (at 60966) by debbugs.gnu.org; 24 Jan 2023 16:57:51 +0000 Received: from localhost ([127.0.0.1]:57463 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pKMcI-0001pN-OW for submit@debbugs.gnu.org; Tue, 24 Jan 2023 11:57:50 -0500 Received: from eggs.gnu.org ([209.51.188.92]:42882) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pKMcG-0001p6-PD for 60966@debbugs.gnu.org; Tue, 24 Jan 2023 11:57:49 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pKMcB-0002Po-9s; Tue, 24 Jan 2023 11:57:43 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=boUSHBT8rQC++IIoMnXVINpmv7s+fCFZkr1Ff+iMQEU=; b=qcwFjy9f2UTd ijImK7K+8vtEUEjOLrKMo5pMs8LxhoR7qlo8M7+/6220C6qB07OtIdK9jyQtVx/iS8ezDUc+jGkby ldSNoU/uvQSZcL/MzERdeAq6xjCyxhlmiqor+M3RHisAgBb+YROb2aiEmZ9J0a0k3DD8wodeaObgy ipGtVEyBAQVKe8bMovr6D73HEaGyax7cCWy113kegtO+aEZMH4FBReM1iP5C/g9pPhEy4MN4zg1Xy wmoxoILxUdRx0yFceFjFKb9Bqwgf+N5YTP8pfODO5NaBWseZJGp8ME94LiyaRNVw+Bzf/Jt1RmPDn ZbbrQ5n6SO3qSd7hG7xqdA==; Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pKMcA-00065w-NF; Tue, 24 Jan 2023 11:57:43 -0500 Date: Tue, 24 Jan 2023 18:57:54 +0200 Message-Id: <83mt67hnu5.fsf@gnu.org> From: Eli Zaretskii To: Ergus In-Reply-To: <20230124152429.7ihf3y5naana7khr@Ergus> (message from Ergus on Tue, 24 Jan 2023 16:24:29 +0100) Subject: Re: bug#60966: 30.0.50; Emacs -nw on msys2 is not clearing the terminal References: <87v8l1p3bi.fsf.ref@aol.com> <87v8l1p3bi.fsf@aol.com> <83lelxm2x8.fsf@gnu.org> <163867763.625356.1674513915222@mail.yahoo.com> <83sfg0gji9.fsf@gnu.org> <20230124152429.7ihf3y5naana7khr@Ergus> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 60966 Cc: 60966@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > Date: Tue, 24 Jan 2023 16:24:29 +0100 > From: Ergus > Cc: 60966@debbugs.gnu.org > > It is just a bit weird that emacs shouldn't be called from within the > msys terminal, maybe a warning message or something may help here. It is > not terrible, just a bit confusing. Maybe you should ask mintty developers to look into this? No one never asked Emacs to support mintty on Windows. But then almost no one uses the -nw sessions on Windows (why would you want to?). > gcc -c -mtune=generic -DUSE_CRT_DLL=1 -I /c/Documents and > Settings/T008593/Downloads/emacs/build/../source/nt/inc -mtune=generic > -MMD -MF deps/fingerprint.d -MP -g3 -O2 -gdwarf-2 -I. -I../src > -I../../source/lib -I../../source/lib/../src -DGL_COMPILE_CRYPTO_STREAM > -o fingerprint.o ../../source/lib/fingerprint.c > > So, probably is this the problem?? Yes. Feel free to suggest a patch for configure.ac that would quote the names. Better yet, don't build Emacs inside directories with whitespace in their names ;-) From debbugs-submit-bounces@debbugs.gnu.org Tue Jan 31 11:55:38 2023 Received: (at 60966) by debbugs.gnu.org; 31 Jan 2023 16:55:39 +0000 Received: from localhost ([127.0.0.1]:54846 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pMtv0-0005CM-Cl for submit@debbugs.gnu.org; Tue, 31 Jan 2023 11:55:38 -0500 Received: from sonic315-13.consmr.mail.bf2.yahoo.com ([74.6.134.123]:33682) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pMtuu-0005C3-J8 for 60966@debbugs.gnu.org; Tue, 31 Jan 2023 11:55:37 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aol.com; s=a2048; t=1675184127; bh=bar0yCD/5Cry7ljSAZkzt+N35AROcyXb2xGVbB8CUW8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From:Subject:Reply-To; b=G8+TVGSkOSgalAGhRc2N0mScM/8YLVFgYOh73CwL20Wf6Wu3ZLMqzAcjz5US+hfI3jUhFD40Cg3gAbbaADLBzSCg25Ldsfr80BYJaiCWSn9Gd324mH6gKx8sEeEhj89UQVqlybBIC2lvcfld/DadXCjGIoZJ3aEOj5zRW7dGGJe+NAc+Aiv3oNHCAKXX9rItZ95jWLObbm6lFuO261BrTvUM6TfmrWLoD+f+HgM8WrDtiyt7SEslsQ0CbN+BIXaxDaQPnBVYIpFP/Lcg0R/cSvlZr86cTUF/2WUo5NrVjHDh11/VwxveuEQ+78EzEITwC/7sPklEifRVBqYT6yBn2Q== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1675184127; bh=GhhSS2d/yBMCx9Yc5oBhqb8dQyqfMirolIjxVLpgHxK=; h=X-Sonic-MF:Date:From:To:Subject:From:Subject; b=pVNE/wPXYS7MVZrCzEjVBMKR5qegZLmJRvGpw7/URZwZTy5fd/uft4Jn67TMUyjCS/zdCbGZe0R0OV6glvYwFroSGwpN2wMKKJYO7Kncy6ar/ZLACHO//B6MiBkzh7IsOO3VCaKILWXrzdIZoP4JZpZaD0Y5z57i/Vhvx89r1vNadEMy+bquBqoWR8L8PEtAQGVBwggTrB+9imTaC6c5ab1zCGadtEL1dYZo/o1O7SZmXxeEW5r1IdOmcj4jr59fjHaLuf8ogVa8lfTpnOqhJoaSEZUVMSx9m592K+nWHLioM1FmMleY8BlbkLgYoNta7t65G2gF/A4D+j5YLJLn5Q== X-YMail-OSG: 5kFFmWQVM1m18nVePE9jImlcAbrnyR1o0Rt6fREsRHhhoDOOwLt7UGvUQgaUtMg s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A ne0Q12vFPsFcxwXqdIQgjMNLJb6qzl7ylAwXmgDwKGmAXjWnzHIctHEIF7HpP_tEeBHsn3tUXDgm t X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic315.consmr.mail.bf2.yahoo.com with HTTP; Tue, 31 Jan 2023 16:55:27 +0000 Received: by hermes--production-ir2-65c64dfd66-wgvcl (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 429ce81e74ae664bef656f4df7e14f9a; Tue, 31 Jan 2023 16:55:24 +0000 (UTC) Date: Tue, 31 Jan 2023 17:55:22 +0100 From: Ergus To: Eli Zaretskii Subject: Re: bug#60966: 30.0.50; Emacs -nw on msys2 is not clearing the terminal Message-ID: <20230131165522.wb4guuchczzlpni5@Ergus> References: <87v8l1p3bi.fsf.ref@aol.com> <87v8l1p3bi.fsf@aol.com> <83lelxm2x8.fsf@gnu.org> <163867763.625356.1674513915222@mail.yahoo.com> <83sfg0gji9.fsf@gnu.org> <20230124152429.7ihf3y5naana7khr@Ergus> <83mt67hnu5.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <83mt67hnu5.fsf@gnu.org> X-Mailer: WebService/1.1.21123 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.aol Content-Length: 3986 X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 60966 Cc: 60966@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hi Eli: 1) I think you can close this issue or just add a comment about it somewhere in the documentation... So, it is done from my side. (If I get some time I will try to fix the build system script, but not now) 2) I have another issue because rgrep + MS-Windows does not work for me, I try to use it like usual, but I get this: ---------------------------------------- -*- mode: grep; default-directory: "e:/Repository/" -*- Grep started at Tue Jan 31 17:25:49 find -H . -type d "(" -path "*/SCCS" -o -path "*/RCS" -o -path "*/CVS" -o -path "*/MCVS" -o -path "*/.src" -o -path "*/.svn" -o -path "*/.git" -o -path "*/.hg" -o -path "*/.bzr" -o -path "*/_MTN" -o -path "*/_darcs" -o -path "*/{arch}" ")" -prune -o ^"^!^" -type d "(" -name ".#*" -o -name "*.o" -o -name "*~" -o -name "*.bin" -o -name "*.bak" -o -name "*.obj" -o -name "*.map" -o -name "*.ico" -o -name "*.pif" -o -name "*.lnk" -o -name "*.a" -o -name "*.ln" -o -name "*.blg" -o -name "*.bbl" -o -name "*.dll" -o -name "*.drv" -o -name "*.vxd" -o -name "*.386" -o -name "*.elc" -o -name "*.lof" -o -name "*.glo" -o -name "*.idx" -o -name "*.lot" -o -name "*.fmt" -o -name "*.tfm" -o -name "*.class" -o -name "*.fas" -o -name "*.lib" -o -name "*.mem" -o -name "*.x86f" -o -name "*.sparcf" -o -name "*.dfsl" -o -name "*.pfsl" -o -name "*.d64fsl" -o -name "*.p64fsl" -o -name "*.lx64fsl" -o -name "*.lx32fsl" -o -name "*.dx64fsl" -o -name "*.dx32fsl" -o -name "*.fx64fsl" -o -name "*.fx32fsl" -o -name "*.sx64fsl" -o -name "*.sx32fsl" -o -name "*.wx64fsl" -o -name "*.wx32fsl" -o -name "*.fasl" -o -name "*.ufsl" -o -name "*.fsl" -o -name "*.dxl" -o -name "*.lo" -o -name "*.la" -o -name "*.gmo" -o -name "*.mo" -o -name "*.toc" -o -name "*.aux" -o -name "*.cp" -o -name "*.fn" -o -name "*.ky" -o -name "*.pg" -o -name "*.tp" -o -name "*.vr" -o -name "*.cps" -o -name "*.fns" -o -name "*.kys" -o -name "*.pgs" -o -name "*.tps" -o -name "*.vrs" -o -name "*.pyc" -o -name "*.pyo" ")" -prune -o -type f "(" -iname "*" ")" -exec grep --color=always -i -nH --null -e "protoc" "{}" ";" FIND: Parameter format not correct Grep exited abnormally with code 2 at Tue Jan 31 17:25:49 ------------------------ I tried this simplified version of the command from the msys-mingw64 terminal and it actually does not work. find -H . -type d "(" -path "*/.git" ")" -prune -o type -f "(" -iname "*" ")" -exec grep -e "protoc" "{}" ";" Is this a known issue for you? Else, I can open a new issue if you prefer. 3) Is it there a clean way I could migrate one emacs installation (packages in the elpa directory) between machines? Because the machine I am using now does not have access to internet from the terminal (the system has some ldap proxy); so, emacs cannot access elpa/melpa or github to download any package. Is there some tool in emacs intended for this purpose? Thanks in advance, And sorry for the bother Ergus On Tue, Jan 24, 2023 at 06:57:54PM +0200, Eli Zaretskii wrote: >> Date: Tue, 24 Jan 2023 16:24:29 +0100 >> From: Ergus >> Cc: 60966@debbugs.gnu.org >> >> It is just a bit weird that emacs shouldn't be called from within the >> msys terminal, maybe a warning message or something may help here. It is >> not terrible, just a bit confusing. > >Maybe you should ask mintty developers to look into this? No one >never asked Emacs to support mintty on Windows. But then almost no >one uses the -nw sessions on Windows (why would you want to?). > >> gcc -c -mtune=generic -DUSE_CRT_DLL=1 -I /c/Documents and >> Settings/T008593/Downloads/emacs/build/../source/nt/inc -mtune=generic >> -MMD -MF deps/fingerprint.d -MP -g3 -O2 -gdwarf-2 -I. -I../src >> -I../../source/lib -I../../source/lib/../src -DGL_COMPILE_CRYPTO_STREAM >> -o fingerprint.o ../../source/lib/fingerprint.c >> >> So, probably is this the problem?? > >Yes. Feel free to suggest a patch for configure.ac that would quote >the names. Better yet, don't build Emacs inside directories with >whitespace in their names ;-) From debbugs-submit-bounces@debbugs.gnu.org Tue Jan 31 13:05:11 2023 Received: (at 60966-done) by debbugs.gnu.org; 31 Jan 2023 18:05:11 +0000 Received: from localhost ([127.0.0.1]:54953 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pMv0I-00072b-PY for submit@debbugs.gnu.org; Tue, 31 Jan 2023 13:05:11 -0500 Received: from eggs.gnu.org ([209.51.188.92]:53886) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pMv0G-00072N-Ns for 60966-done@debbugs.gnu.org; Tue, 31 Jan 2023 13:05:09 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pMv0B-0001I6-Bp; Tue, 31 Jan 2023 13:05:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=0hsv+nOYmCXBTVeNNCumDwYkS09Tr4Rgz8t5gvWdrpw=; b=fHXlkFQ8fTP8 zqUSOeAml4tK78EXV/OmHtUqh7dhc2jwCmfYab9kzX9yomz1x0SHIStDJrX82EkUeMmH/ypb3TqcL Ql19LN+6tt6lUFx02L0Q6EiAEmRE8Yw1sIR1j1Ud1yk2scFpB9Gt/oRE0pxGOLYaUhKEKG3R32Nyf jEMS9hRxcTqALBHAYkJIN3N4d6ExK4ek7iBxlsyaKBNm1HVQrYEgJ4S6zz4ueFYnzpwdkJmmgyG6b gW5L4lahZfvHr69NqXXXF/bTbnEBR+ezsO+jhEKXAyOWJDIcy7UKwS9e+A5ZoO2Tj/Xok7aSly0XN 3c1GlaoWg83y8+382SK1uQ==; Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pMv03-0002p1-Kj; Tue, 31 Jan 2023 13:05:02 -0500 Date: Tue, 31 Jan 2023 20:04:52 +0200 Message-Id: <83v8km1sxn.fsf@gnu.org> From: Eli Zaretskii To: Ergus In-Reply-To: <20230131165522.wb4guuchczzlpni5@Ergus> (message from Ergus on Tue, 31 Jan 2023 17:55:22 +0100) Subject: Re: bug#60966: 30.0.50; Emacs -nw on msys2 is not clearing the terminal References: <87v8l1p3bi.fsf.ref@aol.com> <87v8l1p3bi.fsf@aol.com> <83lelxm2x8.fsf@gnu.org> <163867763.625356.1674513915222@mail.yahoo.com> <83sfg0gji9.fsf@gnu.org> <20230124152429.7ihf3y5naana7khr@Ergus> <83mt67hnu5.fsf@gnu.org> <20230131165522.wb4guuchczzlpni5@Ergus> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 60966-done Cc: 60966-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > Date: Tue, 31 Jan 2023 17:55:22 +0100 > From: Ergus > Cc: 60966@debbugs.gnu.org > > I think you can close this issue or just add a comment about it > somewhere in the documentation... > > So, it is done from my side. (If I get some time I will try to fix the > build system script, but not now) OK, closing. > I have another issue because rgrep + MS-Windows does not work for me, I > try to use it like usual, but I get this: > > ---------------------------------------- > > -*- mode: grep; default-directory: "e:/Repository/" -*- > Grep started at Tue Jan 31 17:25:49 > > find -H . -type d "(" -path "*/SCCS" -o -path "*/RCS" -o -path "*/CVS" > -o -path "*/MCVS" -o -path "*/.src" -o -path "*/.svn" -o -path "*/.git" > -o -path "*/.hg" -o -path "*/.bzr" -o -path "*/_MTN" -o -path "*/_darcs" > -o -path "*/{arch}" ")" -prune -o ^"^!^" -type d "(" -name ".#*" -o > -name "*.o" -o -name "*~" -o -name "*.bin" -o -name "*.bak" -o -name > "*.obj" -o -name "*.map" -o -name "*.ico" -o -name "*.pif" -o -name > "*.lnk" -o -name "*.a" -o -name "*.ln" -o -name "*.blg" -o -name "*.bbl" > -o -name "*.dll" -o -name "*.drv" -o -name "*.vxd" -o -name "*.386" -o > -name "*.elc" -o -name "*.lof" -o -name "*.glo" -o -name "*.idx" -o > -name "*.lot" -o -name "*.fmt" -o -name "*.tfm" -o -name "*.class" -o > -name "*.fas" -o -name "*.lib" -o -name "*.mem" -o -name "*.x86f" -o > -name "*.sparcf" -o -name "*.dfsl" -o -name "*.pfsl" -o -name "*.d64fsl" > -o -name "*.p64fsl" -o -name "*.lx64fsl" -o -name "*.lx32fsl" -o -name > "*.dx64fsl" -o -name "*.dx32fsl" -o -name "*.fx64fsl" -o -name > "*.fx32fsl" -o -name "*.sx64fsl" -o -name "*.sx32fsl" -o -name > "*.wx64fsl" -o -name "*.wx32fsl" -o -name "*.fasl" -o -name "*.ufsl" -o > -name "*.fsl" -o -name "*.dxl" -o -name "*.lo" -o -name "*.la" -o -name > "*.gmo" -o -name "*.mo" -o -name "*.toc" -o -name "*.aux" -o -name > "*.cp" -o -name "*.fn" -o -name "*.ky" -o -name "*.pg" -o -name "*.tp" > -o -name "*.vr" -o -name "*.cps" -o -name "*.fns" -o -name "*.kys" -o > -name "*.pgs" -o -name "*.tps" -o -name "*.vrs" -o -name "*.pyc" -o > -name "*.pyo" ")" -prune -o -type f "(" -iname "*" ")" -exec grep > --color=always -i -nH --null -e "protoc" "{}" ";" > > FIND: Parameter format not correct This is find.exe which comes with Windows, and is an entirely different program. You need to tweak your PATH so that the ported GNU find.exe from MinGW64 is found before the Windows one. > 3) Is it there a clean way I could migrate one emacs installation > (packages in the elpa directory) between machines? Because the machine I > am using now does not have access to internet from the terminal (the > system has some ldap proxy); so, emacs cannot access elpa/melpa or > github to download any package. Just prepare an archive and then unpack it on the other machine. It should work. From unknown Fri Jun 20 07:14:49 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 01 Mar 2023 12:24:09 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator