From unknown Sat Jun 14 14:27:03 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#44634 <44634@debbugs.gnu.org> To: bug#44634 <44634@debbugs.gnu.org> Subject: Status: 28.0.50; ansi-term, term, observing not withdrawing when editing with emacsclient within Reply-To: bug#44634 <44634@debbugs.gnu.org> Date: Sat, 14 Jun 2025 21:27:03 +0000 retitle 44634 28.0.50; ansi-term, term, observing not withdrawing when edit= ing with emacsclient within reassign 44634 emacs submitter 44634 Jean Louis severity 44634 minor thanks From debbugs-submit-bounces@debbugs.gnu.org Sat Nov 14 07:53:24 2020 Received: (at submit) by debbugs.gnu.org; 14 Nov 2020 12:53:25 +0000 Received: from localhost ([127.0.0.1]:50040 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kdv3U-0003ju-Gr for submit@debbugs.gnu.org; Sat, 14 Nov 2020 07:53:24 -0500 Received: from lists.gnu.org ([209.51.188.17]:42934) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kdv3S-0003jm-RJ for submit@debbugs.gnu.org; Sat, 14 Nov 2020 07:53:23 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:52756) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kdv3S-0003OZ-J0 for bug-gnu-emacs@gnu.org; Sat, 14 Nov 2020 07:53:22 -0500 Received: from static.rcdrun.com ([95.85.24.50]:39833) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kdv3Q-0007F9-Al for bug-gnu-emacs@gnu.org; Sat, 14 Nov 2020 07:53:22 -0500 Received: from localhost ([::ffff:41.202.241.56]) (AUTH: PLAIN admin, TLS: TLS1.2,256bits,ECDHE_RSA_AES_256_GCM_SHA384) by static.rcdrun.com with ESMTPSA id 00000000002C0004.000000005FAFD33D.000060C3; Sat, 14 Nov 2020 12:53:17 +0000 From: Jean Louis To: bug-gnu-emacs@gnu.org Subject: 28.0.50; ansi-term, term, observing not withdrawing when editing with emacsclient within X-Hashcash: 1:20:201114:bug-gnu-emacs@gnu.org::1gM7cExH9DonPuHz:000000000000000000000000000000000000000034+P Date: Sat, 14 Nov 2020 15:53:09 +0300 Message-ID: <868sb49k22.fsf@protected.rcdrun.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=95.85.24.50; envelope-from=admin@protected.rcdrun.com; helo=static.rcdrun.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/11/14 07:23:50 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.249, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.0 (+) 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.1 (--) I am observing various lacks of redrawing the screen in ansi-term and term Setup is following: - M-x server-start - M-x ansi-term - $ mutt - :set editor=3Demacsclient When I then edit files with emacsclient within the term or ansi-term editing take place in one frame. When I then finish the process of editing, I am returning to frame. Then on the frame happens something, or maybe it does not withdraw. First I was thinking it is mutt that does not redraw the screen. I have observed if I use editor as "emacsclient -c" to create new frame and then return to screen, this of course does not happen. Then I have observed that if it does happen that terminal is not redrawn, all what I have to do is go to one buffer right or left with windmove, and when I go back the screen is then redrawn and visible. Kevin, author of Mutt, says: It seems likely that whatever you have `$editor` set to is not waiting for the editing process to finish before exiting. Perhaps, just as a test, try setting $editor to 'vim' or 'nano' or something. Please see reference: https://gitlab.com/muttmua/mutt/-/issues/298#note_445792721 This does not happen always, it happens about 30% of times. It takes place in term, ansi-term and also in outside package and dynamic module vterm. It is happening only when I use emacsclient within the Emacs terminal to edit. Another related issue maybe that ansi-term with text adjusted starts behaving weird. It does not update maybe number of rows or columns correctly. In GNU Emacs 28.0.50 (build 1, x86_64-pc-linux-gnu, X toolkit, cairo version 1.14.8, Xaw3d scroll bars) of 2020-11-14 built on protected.rcdrun.com Repository revision: 31f94e4b1c3dc201646ec436d3e2c477f784ed21 Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.11907000 System Description: Hyperbola GNU/Linux-libre Configured using: 'configure --prefix=3D/package/text/emacs-2020-11-14 --with-modules --with-x-toolkit=3Dlucid' Configured features: XAW3D XPM JPEG TIFF GIF PNG RSVG CAIRO SOUND GPM DBUS GSETTINGS GLIB NOTIFY INOTIFY ACL GNUTLS LIBXML2 FREETYPE HARFBUZZ M17N_FLT LIBOTF ZLIB TOOLKIT_SCROLL_BARS LUCID X11 XDBE XIM MODULES THREADS JSON PDUMPER LCMS2 Important settings: value of $LC_ALL: en_US.UTF-8 value of $LANG: de_DE.UTF-8 value of $XMODIFIERS: @im=3Dexwm-xim locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t global-eldoc-mode: t eldoc-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 transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort hashcash mail-extr emacsbug message rmc puny dired dired-loaddefs rfc822 mml easymenu mml-sec epa derived epg 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 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 tab-bar menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu 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 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 dbusbind inotify lcms2 dynamic-setting system-font-setting font-render-setting cairo x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 55423 10048) (symbols 48 7305 0) (strings 32 20247 2104) (string-bytes 1 648118) (vectors 16 12915) (vector-slots 8 223911 18144) (floats 8 26 25) (intervals 56 239 0) (buffers 992 11)) --=20 Thanks, Jean Louis =E2=8E=94 =CE=BB =F0=9F=84=AF =F0=9D=8D=84 =F0=9D=8C=A1 =F0=9D=8C=9A